Function t8_geometry_cad_new

Function Documentation

t8_geometry_cad_c *t8_geometry_cad_new(const char *fileprefix, const char *name_in)

Create a new cad geometry with a given dimension.

The geometry is currently viable with quad/hex and triangle trees. Tets will be supported soon. The geometry uses as many vertices as the tree type has, as well as additional geometry information, which is extracted from a .brep file. The vertices are saved via the t8_cmesh_set_tree_vertices function. Since the internals of this geometry are finely tuned to the .brep file it is recommended to only use it with the t8_cmesh_from_msh_file function.

Parameters:
  • fileprefix[in] Prefix of a .brep file from which to extract an cad geometry.

  • name_in[in] The name to give this geometry.

Returns:

A pointer to an allocated t8_geometry_cad struct, as if the t8_geometry_cad (std::string fileprefix, std::string name) constructor was called.