fw4spl
fwTest::generator::Mesh Class Reference

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)
 

Detailed Description

This helper generates a mesh using specified structure (quad or triangle).

Definition at line 29 of file tests/fwTest/include/fwTest/generator/Mesh.hpp.

Member Function Documentation

void fwTest::generator::Mesh::addQuadMesh ( ::fwData::Mesh::sptr  mesh,
PointsMapType &  points,
size_t  nbPointsByEdge = 10,
float  edgeDim = 100. 
)
static

Add quad cells in mesh, this method generates synthetic data (two face of a cube).

Parameters
[out]meshfwData::Mesh Mesh structure to fill with quad cells.
[in]pointsPointsMapType Point registration map used to not create point which already in mesh buffer.
[in]nbPointsByEdgesize_t Number of points by edge.
[in]edgeDimfloat Edge dimension in 3D world.

Definition at line 89 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.

Referenced by generateQuadMesh(), and generateTriangleQuadMesh().

+ Here is the caller graph for this function:

void fwTest::generator::Mesh::addTriangleMesh ( ::fwData::Mesh::sptr  mesh,
PointsMapType &  points,
size_t  nbPointsByEdge = 10,
float  edgeDim = 100. 
)
static

Add triangle cells in mesh, this method generates synthetic data (two face of a cube).

Parameters
[out]meshfwData::Mesh Mesh structure to fill with triangle cells.
[in]pointsPointsMapType Point registration map used to not create point which already in mesh buffer.
[in]nbPointsByEdgesize_t Number of points by edge.
[in]edgeDimfloat Edge dimension in 3D world.

Definition at line 161 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.

Referenced by generateTriangleMesh(), and generateTriangleQuadMesh().

+ Here is the caller graph for this function:

void fwTest::generator::Mesh::generateMesh ( ::fwData::Mesh::sptr  mesh)
static

Generate a mesh.

Parameters
meshmesh 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fwTest::generator::Mesh::generateQuadMesh ( ::fwData::Mesh::sptr  mesh)
static

Generate a quad mesh.

See also
addQuadMesh
Parameters
[out]meshfwData::Mesh empty mesh structure to fill with quad cells.

Definition at line 78 of file tests/fwTest/src/fwTest/generator/Mesh.cpp.

References addQuadMesh().

+ Here is the call graph for this function:

void fwTest::generator::Mesh::generateTriangleMesh ( ::fwData::Mesh::sptr  mesh)
static

Generate a triangle mesh.

See also
addTriangleMesh
Parameters
[out]meshfwData::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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fwTest::generator::Mesh::generateTriangleQuadMesh ( ::fwData::Mesh::sptr  mesh)
static

Generate a mesh with quad and triangle cells.

See also
addQuadMesh
addTriangleMesh
Parameters
[out]meshfwData::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().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: