CGAL 5.6.1 - Surface Mesh

I/O Functions for the 3D Manufacturing Format (3MF).

Functions

template<typename Point >
bool CGAL::IO::read_3MF (const std::string &filename, std::vector< CGAL::Surface_mesh< Point > > &output)
 extracts the surface meshes from an input 3mf file and appends it to output. More...
 

Function Documentation

◆ read_3MF()

template<typename Point >
bool CGAL::IO::read_3MF ( const std::string &  filename,
std::vector< CGAL::Surface_mesh< Point > > &  output 
)

#include <CGAL/Surface_mesh/IO/3MF.h>

extracts the surface meshes from an input 3mf file and appends it to output.

Template Parameters
PointThe type of the point property of a vertex. There is no requirement on P, besides being default constructible and assignable. In typical use cases it will be a 2D or 3D point type.
Parameters
filenamethe path to the 3mf file
outputa std::vector containing the CGAL::Surface_meshs that will be filled by this function
Returns
true if reading was successful, false otherwise.