7 #ifndef __FWTEST_GENERATOR_MESH_HPP__ 8 #define __FWTEST_GENERATOR_MESH_HPP__ 10 #include "fwTest/config.hpp" 12 #include <fwCore/base.hpp> 14 #include <fwData/Mesh.hpp> 16 #include <fwDataTools/Vector.hxx> 17 #include <fwDataTools/helper/Mesh.hpp> 34 typedef std::map< ::fwDataTools::Point, ::fwData::Mesh::Id> PointsMapType;
46 FWTEST_API
static void generateMesh( ::fwData::Mesh::sptr mesh );
57 FWTEST_API
static void addQuadMesh(::fwData::Mesh::sptr mesh,
58 PointsMapType& points,
59 size_t nbPointsByEdge = 10,
60 float edgeDim = 100.);
71 PointsMapType& points,
72 size_t nbPointsByEdge = 10,
73 float edgeDim = 100.);
100 FWTEST_API static ::fwData::Mesh::Id addPoint(::fwData::Mesh::PointValueType* pt,
101 ::fwDataTools::helper::Mesh::sptr meshHelper,
102 PointsMapType& points);
110 #endif // __FWTEST_GENERATOR_MESH_HPP__ 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).
static FWTEST_API void initRand()
Initialize 'rand' seed.
This helper generates a mesh using specified structure (quad or triangle).
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).
static FWTEST_API void generateQuadMesh(::fwData::Mesh::sptr mesh)
Generate a quad mesh.
static FWTEST_API void generateTriangleQuadMesh(::fwData::Mesh::sptr mesh)
Generate a mesh with quad and triangle cells.
static FWTEST_API void generateMesh(::fwData::Mesh::sptr mesh)
Generate a mesh.
static FWTEST_API void generateTriangleMesh(::fwData::Mesh::sptr mesh)
Generate a triangle mesh.