CGAL 5.1 - Surface Mesh
|
Namespaces | |
collect_garbage_internal | |
Classes | |
class | Surface_mesh |
This class is a data structure that can be used as halfedge data structure or polyhedral surface. It is an alternative to the classes HalfedgeDS and Polyhedron_3 defined in the packages PkgHalfedgeDS and PkgPolyhedron. The main difference is that it is indexed based and not pointer based, and that the mechanism for adding information to vertices, halfedges, edges, and faces is much simpler and done at runtime and not at compile time. When elements are removed, they are only marked as removed, and a garbage collection function must be called to really remove them. More... | |
Functions | |
template<typename Point > | |
int | read_3mf (const std::string &file_name, std::vector< CGAL::Surface_mesh< Point > > &output) |
Extracts the surface meshes from an input 3mf file and appends it to output . More... | |
template<typename K > | |
bool | read_off (Surface_mesh< K > &mesh, const std::string &filename) |
template<typename K > | |
bool | write_off (const Surface_mesh< K > &mesh, const std::string &filename) |
template<typename K > | |
bool | read_mesh (Surface_mesh< K > &mesh, const std::string &filename) |
template<typename K > | |
bool | write_mesh (const Surface_mesh< K > &mesh, const std::string &filename) |
template<class P , class Writer > | |
void | generic_print_surface_mesh (std::ostream &out, const Surface_mesh< P > &M, Writer &writer) |
group io More... | |
template<typename P > | |
bool | write_off (std::ostream &os, const Surface_mesh< P > &sm) |
template<typename P > | |
bool | read_off (std::istream &is, Surface_mesh< P > &sm) |
void CGAL::generic_print_surface_mesh | ( | std::ostream & | out, |
const Surface_mesh< P > & | M, | ||
Writer & | writer | ||
) |
group io
int CGAL::read_3mf | ( | const std::string & | file_name, |
std::vector< CGAL::Surface_mesh< Point > > & | output | ||
) |
Extracts the surface meshes from an input 3mf file and appends it to output
.
Point | the Point type of the output meshes. |
file_name | the path to the 3mf file. |
output | a std::vector containing the CGAL::Surface_mesh s that will be filled by this function. |
bool CGAL::read_mesh | ( | Surface_mesh< K > & | mesh, |
const std::string & | filename | ||
) |
bool CGAL::read_off | ( | Surface_mesh< K > & | mesh, |
const std::string & | filename | ||
) |
bool CGAL::write_mesh | ( | const Surface_mesh< K > & | mesh, |
const std::string & | filename | ||
) |
bool CGAL::write_off | ( | const Surface_mesh< K > & | mesh, |
const std::string & | filename | ||
) |