|
DGtal
0.6.devel
|
#include <MeshReader.h>
Static Public Member Functions | |
| static bool | importOFFFile (const std::string &filename, DGtal::MeshFromPoints< TPoint > &aMesh, bool invertVertexOrder=false) throw (DGtal::IOException) |
| static bool | importOFSFile (const std::string &filename, DGtal::MeshFromPoints< TPoint > &aMesh, bool invertVertexOrder=false, double scale=1.0) throw (DGtal::IOException) |
Aim: Defined to import OFF and OFS surface mesh. It allows to import a MeshFromPoints object and takes into accouts the optional color faces.
Description of class 'MeshReader'
The importation can be done automatically according the input file extension with the operator <<
Example of typical use: Add these include files:
And automatic import the MeshFromPoints through the filename extension:
Then you can also display the resulting with a Viewer3D:
Definition at line 89 of file MeshReader.h.
|
inlinestatic |
Main method to import OFF meshes file (Geomview Object File Format)
| filename | the file name to import. |
| aMesh,: | (return) the mesh object to be imported. |
| invertVertexOrder,: | used to invert (default value=false) the order of imported points (important for normal orientation). |
Definition at line 52 of file MeshReader.ih.
References DGtal::Trace::error(), and DGtal::trace.
Referenced by DGtal::operator<<().
|
inlinestatic |
Main method to import OFS meshes file (an equivalent of OFF format)
| filename | the file name to import. |
| aMesh,: | (return) the mesh object to be imported. |
| invertVertexOrder,: | used to invert (default value=false) the order of imported points (important for normal orientation). |
| scale,: | used to avoid to display tiny shapes (since OFS shapes are generally included in a 1x1x1 cube) |
Definition at line 182 of file MeshReader.ih.
References DGtal::Trace::error(), and DGtal::trace.
Referenced by DGtal::operator<<().
1.8.1.1