3D Mesh class
More...
#include <WofMesh.h>
The WofMesh is a 3D triangle mesh.
◆ getPoints()
void GEOM_WOF::WofMesh::getPoints |
( |
std::vector< Point3 * > & |
vPoints | ) |
const |
- Parameters
-
[out] | vPoints | is used to return the vertex pointers |
◆ getTriangles()
void GEOM_WOF::WofMesh::getTriangles |
( |
std::vector< Point3 * > & |
vTriangleCorners | ) |
const |
- Parameters
-
[out] | vTriangleCorners | is used to return the triangles as 3 vertex pointers per triangle. The order of the corners per triangle is counterclockwise. |
◆ getVertexIndexData()
void GEOM_WOF::WofMesh::getVertexIndexData |
( |
std::vector< Point3 * > & |
vVertices, |
|
|
std::vector< int > & |
vCornerIndices |
|
) |
| const |
- Parameters
-
vVertices | [out] The vertices of the WofMesh |
vCornerIndices | [out] Three subsequent indices for each triangle. The indices refer to points in vVertices and thus the index range starts with 0. |
- Note
- There are file formats (e.g., *.obj) where the first index must be 1, not 0! Simply increment the indices by 1 then.
◆ printStatistics()
void GEOM_WOF::WofMesh::printStatistics |
( |
const std::string & |
name | ) |
const |
Prints mesh statistics to stdout
- Parameters
-
name | serves as arbitrary identifier that is also printed to stdout |
◆ writeGeomview_ASCII()
bool GEOM_WOF::WofMesh::writeGeomview_ASCII |
( |
const std::string & |
name | ) |
const |
Writes a file for the Geomview viewer
- Parameters
-
name | [in] is the output filename. |
◆ writePly_ASCII()
bool GEOM_WOF::WofMesh::writePly_ASCII |
( |
const std::string & |
name | ) |
const |
Writes an ASCII PLY file
- Parameters
-
name | [in] is the output filename. |
◆ writePly_BIN()
bool GEOM_WOF::WofMesh::writePly_BIN |
( |
const std::string & |
name | ) |
const |
Writes a binary PLY file
- Parameters
-
name | [in] is the output filename. |
◆ writeStl_ASCII()
bool GEOM_WOF::WofMesh::writeStl_ASCII |
( |
const std::string & |
name | ) |
const |
Writes an ASCII STL file
- Parameters
-
name | [in] is the output filename. |
The documentation for this class was generated from the following file: