|
libMesh
|
A special namespace for wrapping the standard Triangle API, as well as some helper functions for initializing/destroying the structs triangle uses to communicate. More...
Enumerations | |
| enum | IO_Type { INPUT = 0 , OUTPUT = 1 , BOTH = 2 } |
Functions | |
| void | init (triangulateio &t) |
| Initializes the fields of t to nullptr/0 as necessary. | |
| void | destroy (triangulateio &t, IO_Type) |
| Frees any memory which has been dynamically allocated by Triangle. | |
| void | copy_tri_to_mesh (const triangulateio &triangle_data_input, UnstructuredMesh &mesh_output, const ElemType type, const triangulateio *voronoi=nullptr) |
| Copies triangulation data computed by triangle from a triangulateio object to a LibMesh mesh. | |
A special namespace for wrapping the standard Triangle API, as well as some helper functions for initializing/destroying the structs triangle uses to communicate.
Namespace that wraps the Triangle mesh generator's API.
| Enumerator | |
|---|---|
| INPUT | |
| OUTPUT | |
| BOTH | |
Definition at line 57 of file mesh_triangle_wrapper.h.
| void libMesh::TriangleWrapper::copy_tri_to_mesh | ( | const triangulateio & | triangle_data_input, |
| UnstructuredMesh & | mesh_output, | ||
| const ElemType | type, | ||
| const triangulateio * | voronoi = nullptr |
||
| ) |
Copies triangulation data computed by triangle from a triangulateio object to a LibMesh mesh.
This routine is used internally by the MeshTools::Generation::build_delaunay_square(...) and MeshTools::Generation::build_delaunay_square_with_hole(...) routines.
Definition at line 105 of file mesh_triangle_wrapper.C.
References libMesh::MeshBase::add_elem(), libMesh::MeshBase::add_point(), libMesh::BoundaryInfo::add_side(), libMesh::Elem::build(), libMesh::MeshBase::clear(), libMesh::Utility::enum_to_string(), libMesh::UnstructuredMesh::find_neighbors(), libMesh::MeshBase::get_boundary_info(), libMesh::MeshBase::node_ptr(), libMesh::MeshBase::set_mesh_dimension(), libMesh::Elem::set_node(), libMesh::Elem::subdomain_id(), libMesh::TRI3, and libMesh::TRI6.
Referenced by libMesh::TriangleInterface::triangulate().
| void libMesh::TriangleWrapper::destroy | ( | triangulateio & | t, |
| IO_Type | |||
| ) |
Frees any memory which has been dynamically allocated by Triangle.
Referenced by libMesh::TriangleInterface::triangulate().
| void libMesh::TriangleWrapper::init | ( | triangulateio & | t | ) |
Initializes the fields of t to nullptr/0 as necessary.
This is helpful for preventing the access of uninitialized memory when working with C, which has no constructors or destructors.
Referenced by libMesh::TriangleInterface::triangulate().