9 #include "fwDataTools/config.hpp" 10 #include "fwDataTools/Vector.hxx" 11 #include <fwDataTools/helper/Mesh.hpp> 13 #include <fwCore/base.hpp> 15 #include <fwData/Mesh.hpp> 16 #include <fwData/TransformationMatrix3D.hpp> 29 typedef std::map<Point, ::fwData::Mesh::Id> PointsMapType;
30 typedef std::array<double, 3> PositionType;
31 typedef std::array<size_t, 3> OrganizationType;
36 FWDATATOOLS_API
static void initRand();
60 FWDATATOOLS_API
static void shakeNormals(::fwData::Array::sptr array);
81 FWDATATOOLS_API
static void shakePoint(::fwData::Mesh::sptr mesh);
103 FWDATATOOLS_API
static bool hasUniqueCellType(::fwData::Mesh::csptr mesh, ::fwData::Mesh::CellTypes cell);
106 FWDATATOOLS_API
static void transform(fwData::Mesh::csptr inMesh, ::fwData::Mesh::sptr outMesh,
107 ::fwData::TransformationMatrix3D::csptr t );
110 FWDATATOOLS_API
static void transform( ::fwData::Mesh::sptr mesh, ::fwData::TransformationMatrix3D::csptr t );
117 FWDATATOOLS_API
static void colorizeMeshPoints(const ::fwData::Mesh::sptr& mesh,
const std::uint8_t colorR,
118 const std::uint8_t colorG,
const std::uint8_t colorB,
119 const std::uint8_t colorA = 255);
127 const std::vector<size_t>& _vectorNumTriangle,
128 const std::uint8_t _colorR,
const std::uint8_t colorG,
129 const std::uint8_t colorB,
const std::uint8_t _colorA = 255);
136 FWDATATOOLS_API
static void colorizeMeshCells(const ::fwData::Mesh::sptr& mesh,
const std::uint8_t colorR,
137 const std::uint8_t colorG,
const std::uint8_t colorB,
138 const std::uint8_t _colorA = 255);
145 const std::vector<size_t>& triangleIndexVector,
146 const std::uint8_t colorR,
147 const std::uint8_t colorG,
const std::uint8_t colorB,
148 const std::uint8_t _colorA = 255);