CGAL 6.2 - CGAL and the Boost Graph Library

Loading...
Searching...
No Matches
Functions
3MF I/O Functions
Reference Manual » I/O Functions

##

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).

## 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

  GraphRange | a 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

  filename | the name of the 3mf file to write
  gs | a container of triangle meshes to write. An internal property map for `CGAL::vertex_point_t` must be available for each mesh.
  names | a 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()`