CGAL 6.2 - Surface Mesh

Loading...
Searching...
No Matches
Functions
I/O Functions (3MF)
Surface Mesh Reference » I/O Functions

##

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

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

  Point | The 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

  filename | the path to the 3mf file
  output | a `std::vector` containing the `CGAL::Surface_mesh`s that will be filled by this function

Returns
  `true` if reading was successful, `false` otherwise.