CGAL 5.1 - Surface Mesh
CGAL Namespace Reference

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)
 

Function Documentation

◆ generic_print_surface_mesh()

template<class P , class Writer >
void CGAL::generic_print_surface_mesh ( std::ostream &  out,
const Surface_mesh< P > &  M,
Writer &  writer 
)

group io

◆ read_3mf()

template<typename Point >
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.

Template Parameters
Pointthe Point type of the output meshes.
Parameters
file_namethe path to the 3mf file.
outputa std::vector containing the CGAL::Surface_meshs that will be filled by this function.
Returns
the number of extracted meshes.

◆ read_mesh()

template<typename K >
bool CGAL::read_mesh ( Surface_mesh< K > &  mesh,
const std::string &  filename 
)

◆ read_off()

template<typename K >
bool CGAL::read_off ( Surface_mesh< K > &  mesh,
const std::string &  filename 
)

◆ write_mesh()

template<typename K >
bool CGAL::write_mesh ( const Surface_mesh< K > &  mesh,
const std::string &  filename 
)

◆ write_off()

template<typename K >
bool CGAL::write_off ( const Surface_mesh< K > &  mesh,
const std::string &  filename 
)