Functions
oomph::TriangleHelper Namespace Reference

Helper namespace for triangle meshes. More...

Functions

void clear_triangulateio (TriangulateIO &triangulate_io, const bool &clear_hole_data)
 Clear TriangulateIO structure. More...
 
void initialise_triangulateio (TriangulateIO &triangle_io)
 Initialise TriangulateIO structure. More...
 
TriangulateIO deep_copy_of_triangulateio_representation (TriangulateIO &triangle_io, const bool &quiet)
 Make (partial) deep copy of TriangulateIO object. We only copy those items we need within oomph-lib's adaptation procedures. Warnings are issued if triangulate_io contains data that is not not copied, unless quiet=true;. More...
 
void write_triangulateio_to_polyfile (TriangulateIO &triangle_io, std::ostream &poly_file)
 Write the triangulateio data to disk as a poly file, mainly used for debugging. More...
 
void create_triangulateio_from_polyfiles (const std::string &node_file_name, const std::string &element_file_name, const std::string &poly_file_name, TriangulateIO &triangle_io, bool &use_attributes)
 
void dump_triangulateio (TriangulateIO &triangle_io, std::ostream &dump_file)
 Write all the triangulateio data to disk in a dump file that can then be used to restart simulations. More...
 
void read_triangulateio (std::istream &restart_file, TriangulateIO &triangle_io)
 Read the triangulateio data from a dump file on disk, which can then be used to restart simulations. More...
 

Detailed Description

Helper namespace for triangle meshes.

Function Documentation

void oomph::TriangleHelper::clear_triangulateio ( TriangulateIO &  triangulate_io,
const bool &  clear_hole_data 
)

Clear TriangulateIO structure.

Definition at line 49 of file unstructured_two_d_mesh_geometry_base.cc.

References oomph::TriangulateIO::edgelist, oomph::TriangulateIO::edgemarkerlist, oomph::TriangulateIO::holelist, initialise_triangulateio(), oomph::TriangulateIO::neighborlist, oomph::TriangulateIO::normlist, oomph::TriangulateIO::numberofcorners, oomph::TriangulateIO::numberofedges, oomph::TriangulateIO::numberofholes, oomph::TriangulateIO::numberofpointattributes, oomph::TriangulateIO::numberofpoints, oomph::TriangulateIO::numberofregions, oomph::TriangulateIO::numberofsegments, oomph::TriangulateIO::numberoftriangleattributes, oomph::TriangulateIO::numberoftriangles, oomph::TriangulateIO::pointattributelist, oomph::TriangulateIO::pointlist, oomph::TriangulateIO::pointmarkerlist, oomph::TriangulateIO::regionlist, oomph::TriangulateIO::segmentlist, oomph::TriangulateIO::segmentmarkerlist, oomph::TriangulateIO::trianglearealist, oomph::TriangulateIO::triangleattributelist, and oomph::TriangulateIO::trianglelist.

Referenced by oomph::RefineableTriangleMesh< ELEMENT >::adapt(), oomph::TriangleMeshBase::clear_triangulateio(), oomph::QuadFromTriangleMesh< ELEMENT >::generic_constructor(), oomph::TriangleMesh< ELEMENT >::generic_constructor(), oomph::RefineableTriangleMesh< ELEMENT >::RefineableTriangleMesh(), oomph::TriangleMeshBase::remesh_from_triangulateio(), oomph::TriangleMesh< ELEMENT >::TriangleMesh(), oomph::TriangleMesh< ELEMENT >::~TriangleMesh(), and oomph::TriangleMeshBase::~TriangleMeshBase().

void oomph::TriangleHelper::create_triangulateio_from_polyfiles ( const std::string &  node_file_name,
const std::string &  element_file_name,
const std::string &  poly_file_name,
TriangulateIO &  triangle_io,
bool &  use_attributes 
)
TriangulateIO oomph::TriangleHelper::deep_copy_of_triangulateio_representation ( TriangulateIO &  triangle_io,
const bool &  quiet 
)
void oomph::TriangleHelper::dump_triangulateio ( TriangulateIO &  triangle_io,
std::ostream &  dump_file 
)
void oomph::TriangleHelper::initialise_triangulateio ( TriangulateIO &  triangle_io)

Initialise TriangulateIO structure.

Definition at line 93 of file unstructured_two_d_mesh_geometry_base.cc.

References oomph::TriangulateIO::edgelist, oomph::TriangulateIO::edgemarkerlist, oomph::TriangulateIO::holelist, oomph::TriangulateIO::neighborlist, oomph::TriangulateIO::normlist, oomph::TriangulateIO::numberofcorners, oomph::TriangulateIO::numberofedges, oomph::TriangulateIO::numberofholes, oomph::TriangulateIO::numberofpointattributes, oomph::TriangulateIO::numberofpoints, oomph::TriangulateIO::numberofregions, oomph::TriangulateIO::numberofsegments, oomph::TriangulateIO::numberoftriangleattributes, oomph::TriangulateIO::numberoftriangles, oomph::TriangulateIO::pointattributelist, oomph::TriangulateIO::pointlist, oomph::TriangulateIO::pointmarkerlist, oomph::TriangulateIO::regionlist, oomph::TriangulateIO::segmentlist, oomph::TriangulateIO::segmentmarkerlist, oomph::TriangulateIO::trianglearealist, oomph::TriangulateIO::triangleattributelist, and oomph::TriangulateIO::trianglelist.

Referenced by oomph::TriangleMesh< ELEMENT >::build_triangulateio(), oomph::UnstructuredTwoDMeshGeometryBase::build_triangulateio(), clear_triangulateio(), create_triangulateio_from_polyfiles(), deep_copy_of_triangulateio_representation(), oomph::QuadFromTriangleMesh< ELEMENT >::generic_constructor(), oomph::TriangleMesh< ELEMENT >::generic_constructor(), read_triangulateio(), oomph::RefineableTriangleMesh< ELEMENT >::refine_triangulateio(), oomph::RefineableTriangleMesh< ELEMENT >::RefineableTriangleMesh(), and oomph::TriangleMeshBase::TriangleMeshBase().

void oomph::TriangleHelper::read_triangulateio ( std::istream &  restart_file,
TriangulateIO &  triangle_io 
)
void oomph::TriangleHelper::write_triangulateio_to_polyfile ( TriangulateIO &  triangle_io,
std::ostream &  poly_file 
)