DGtal
0.6.devel
|
#include <MeshWriter.h>
Static Public Member Functions | |
static bool | export2OFF (std::ostream &out, const MeshFromPoints< TPoint > &aMesh, bool exportColor=false) throw (DGtal::IOException) |
static bool | export2OBJ (std::ostream &out, const MeshFromPoints< TPoint > &aMesh) throw (DGtal::IOException) |
Aim: Export a Mesh (MeshFromPoints object) in different format as OFF and OBJ).
Description of template struct 'MeshWriter'
The exportation can be done automatically according the input file extension with the ">>" operator
Example of typical use: First you have to add the following include files:
Then you create a simple MeshFromPoints object:
Finally you can export directly the MeshFromPoints object:
Definition at line 77 of file MeshWriter.h.
|
inlinestatic |
Export a MeshFromPoints towards a OBJ format.
out,: | the output stream of the exported OBJ object. |
aMesh,: | the MeshFromPoints object to be exported. |
Definition at line 93 of file MeshWriter.ih.
References DGtal::Trace::error(), and DGtal::trace.
Referenced by DGtal::operator>>().
|
inlinestatic |
Export MeshFromPoints towards a OFF format.
out,: | the output stream of the exported OFF object. |
aMesh | the MeshFromPoints object to be exported. |
exportColor | true to export colors (default false). |
Definition at line 47 of file MeshWriter.ih.
References DGtal::Color::alpha(), DGtal::Color::blue(), DGtal::Trace::error(), DGtal::Color::green(), DGtal::Color::red(), and DGtal::trace.
Referenced by DGtal::operator>>().