MSDM
 All Classes Namespaces Files Functions Variables Typedefs Pages
Classes | Namespaces | Functions
MatlabPolyhedron.h File Reference

Main conversion functions for Polyhedron between MATLAB and CGAL. More...

#include <CGAL/Polyhedron_incremental_builder_3.h>

Go to the source code of this file.

Classes

class  Utils::polyhedron_builder< HDS >
 Builder class for a triangle surface mesh based on a list of facets and vertices. More...
 

Namespaces

 Utils
 Procedures to convert between MATLAB and CGAL mesh representations.
 

Functions

std::unique_ptr< PolyhedronUtils::MATLAB2Polyhedron (const mxArray *mxV, const mxArray *mxF)
 Conversion from MATLAB mesh representation to CGAL polyhedron representation. More...
 
void Utils::Polyhedron2MATLAB (const Polyhedron &polyhedron, double *points, double *facets)
 Conversion from CGAL polyhedron to a MATLAB-compatible representation of the mesh. More...
 

Detailed Description

Main conversion functions for Polyhedron between MATLAB and CGAL.

Author
Xavier Rolland-Nevière

The MatlabPolyhedron header uses a Polyhedron class, that needs to be typedef prior to including the header. For instance include this header after including another header containing this simple example:

#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
typedef CGAL::Simple_cartesian<double> K;
typedef CGAL::Polyhedron_3<K> Polyhedron;