CGAL 5.6 - CGAL and the Boost Graph Library

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

Functions

template<typename GraphRange >
bool CGAL::IO::write_3MF (const std::string &filename, const GraphRange &gs, const std::vector< std::string > &names)
 writes the triangle meshes contained in gs into the file filename, using the 3D Manufacturing Format (3MF). More...
 

Function Documentation

◆ write_3MF()

template<typename GraphRange >
bool CGAL::IO::write_3MF ( const std::string &  filename,
const GraphRange &  gs,
const std::vector< std::string > &  names 
)

#include <CGAL/boost/graph/IO/3MF.h>

writes the triangle meshes contained in gs into the file filename, using the 3D Manufacturing Format (3MF).

Template Parameters
GraphRangea model of the concepts RandomAccessContainer and BackInsertionSequence whose value_type is a model of the concepts FaceGraph and HalfedgeListGraph that has only triangle faces.
Parameters
filenamethe name of the 3mf file to write
gsa container of triangle meshes to write. An internal property map for CGAL::vertex_point_t must be available for each mesh.
namesa range of std::string associating a name to each mesh to be written out, which will appear in the output
Returns
true if the writing is successful, false otherwise.
See also
read_3MF()