fw4spl
|
This helper generates a mesh using specified structure (quad or triangle). More...
#include <Mesh.hpp>
Public Types | |
typedef std::map< ::fwDataTools::Point,::fwData::Mesh::Id > | PointsMapType |
Static Public Member Functions | |
static FWTEST_API void | initRand () |
Initialize 'rand' seed. | |
static FWTEST_API void | generateMesh (::fwData::Mesh::sptr mesh) |
Generate a mesh. More... | |
static FWTEST_API void | addQuadMesh (::fwData::Mesh::sptr mesh, PointsMapType &points, size_t nbPointsByEdge=10, float edgeDim=100.) |
Add quad cells in mesh, this method generates synthetic data (two face of a cube). More... | |
static FWTEST_API void | addTriangleMesh (::fwData::Mesh::sptr mesh, PointsMapType &points, size_t nbPointsByEdge=10, float edgeDim=100.) |
Add triangle cells in mesh, this method generates synthetic data (two face of a cube). More... | |
static FWTEST_API void | generateQuadMesh (::fwData::Mesh::sptr mesh) |
Generate a quad mesh. More... | |
static FWTEST_API void | generateTriangleMesh (::fwData::Mesh::sptr mesh) |
Generate a triangle mesh. More... | |
static FWTEST_API void | generateTriangleQuadMesh (::fwData::Mesh::sptr mesh) |
Generate a mesh with quad and triangle cells. More... | |
Static Protected Member Functions | |
static FWTEST_API::fwData::Mesh::Id | addPoint (::fwData::Mesh::PointValueType *pt,::fwDataTools::helper::Mesh::sptr meshHelper, PointsMapType &points) |
This helper generates a mesh using specified structure (quad or triangle).
Definition at line 29 of file tests/fwTest/include/fwTest/generator/Mesh.hpp.
|
static |
Add quad cells in mesh, this method generates synthetic data (two face of a cube).
[out] | mesh | fwData::Mesh Mesh structure to fill with quad cells. |
[in] | points | PointsMapType Point registration map used to not create point which already in mesh buffer. |
[in] | nbPointsByEdge | size_t Number of points by edge. |
[in] | edgeDim | float Edge dimension in 3D world. |
Definition at line 89 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.
Referenced by generateQuadMesh(), and generateTriangleQuadMesh().
|
static |
Add triangle cells in mesh, this method generates synthetic data (two face of a cube).
[out] | mesh | fwData::Mesh Mesh structure to fill with triangle cells. |
[in] | points | PointsMapType Point registration map used to not create point which already in mesh buffer. |
[in] | nbPointsByEdge | size_t Number of points by edge. |
[in] | edgeDim | float Edge dimension in 3D world. |
Definition at line 161 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.
Referenced by generateTriangleMesh(), and generateTriangleQuadMesh().
|
static |
Generate a mesh.
mesh | mesh to generate |
Definition at line 39 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.
References fwDataTools::Mesh::colorizeMeshCells(), fwDataTools::Mesh::colorizeMeshPoints(), fwDataTools::Mesh::generateCellNormals(), fwDataTools::Mesh::generatePointNormals(), generateTriangleMesh(), initRand(), and fwDataTools::Mesh::shakePoint().
Referenced by fwTest::generator::SeriesDB::generateReconstruction().
|
static |
Generate a quad mesh.
[out] | mesh | fwData::Mesh empty mesh structure to fill with quad cells. |
Definition at line 78 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.
References addQuadMesh().
|
static |
Generate a triangle mesh.
[out] | mesh | fwData::Mesh empty mesh structure to fill with triangle cell. |
Definition at line 66 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.
References addTriangleMesh().
Referenced by generateMesh().
|
static |
Generate a mesh with quad and triangle cells.
[out] | mesh | fwData::Mesh empty mesh structure to fill with quad and triangle cells. |
Definition at line 53 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.
References addQuadMesh(), and addTriangleMesh().