30#define VHACD_DEBUG_MESH
51#ifdef VHACD_DEBUG_MESH
121#ifdef VHACD_DEBUG_MESH
122 bool LoadOFF(
const std::string& fileName,
bool invert);
125 bool SaveOFF(
const std::string& fileName)
const;
Triangular mesh data structure.
Definition: vhacdMesh.h:80
const Vec3< double > & GetCenter() const
Definition: vhacdMesh.h:100
Vec3< double > & ComputeCenter(void)
Definition: vhacdMesh.cpp:50
void ClearTriangles()
Definition: vhacdMesh.h:104
const Vec3< int32_t > & GetTriangle(size_t index) const
Definition: vhacdMesh.h:93
double ComputeVolume() const
Definition: vhacdMesh.cpp:98
bool SaveVRML2(std::ofstream &fout, const Material &material) const
bool IsInside(const Vec3< double > &pt) const
Definition: vhacdMesh.cpp:183
int32_t * GetTriangles()
Definition: vhacdMesh.h:96
const Vec3< double > & GetMaxBB() const
Definition: vhacdMesh.h:102
Vec3< double > m_center
Definition: vhacdMesh.h:138
double m_diag
Definition: vhacdMesh.h:139
Vec3< double > m_maxBB
Definition: vhacdMesh.h:137
void AddPoint(const Vec3< double > &pt)
Definition: vhacdMesh.h:82
size_t GetNPoints() const
Definition: vhacdMesh.h:86
double * GetPoints()
Definition: vhacdMesh.h:87
void Clip(const Plane &plane, SArray< Vec3< double > > &positivePart, SArray< Vec3< double > > &negativePart) const
Definition: vhacdMesh.cpp:156
bool SaveOFF(const std::string &fileName) const
void AddTriangle(const Vec3< int32_t > &tri)
Definition: vhacdMesh.h:91
Vec3< int32_t > * GetTrianglesBuffer()
Definition: vhacdMesh.h:99
void Clear()
Definition: vhacdMesh.h:105
void ResizePoints(size_t nPts)
Definition: vhacdMesh.h:110
void ComputeConvexHull(const double *const pts, const size_t nPts)
Definition: vhacdMesh.cpp:127
Mesh()
Constructor.
Definition: vhacdMesh.cpp:48
const Vec3< double > & GetPoint(size_t index) const
Definition: vhacdMesh.h:84
void SetTriangle(size_t index, const Vec3< int32_t > &tri)
Definition: vhacdMesh.h:92
void ResizeTriangles(size_t nTri)
Definition: vhacdMesh.h:111
void ClearPoints()
Definition: vhacdMesh.h:103
Vec3< double > & GetPoint(size_t index)
Definition: vhacdMesh.h:85
void SetPoint(size_t index, const Vec3< double > &pt)
Definition: vhacdMesh.h:83
const int32_t * GetTriangles() const
Definition: vhacdMesh.h:97
SArray< Vec3< int32_t > > m_triangles
Definition: vhacdMesh.h:135
const Vec3< double > * GetPointsBuffer() const
Definition: vhacdMesh.h:89
Vec3< int32_t > & GetTriangle(size_t index)
Definition: vhacdMesh.h:94
const double * GetPoints() const
Definition: vhacdMesh.h:88
Vec3< double > m_minBB
Definition: vhacdMesh.h:136
void CopyPoints(SArray< Vec3< double > > &points) const
Definition: vhacdMesh.h:112
bool SaveVRML2(const std::string &fileName) const
const Vec3< double > & GetMinBB() const
Definition: vhacdMesh.h:101
const Vec3< int32_t > * GetTrianglesBuffer() const
Definition: vhacdMesh.h:98
SArray< Vec3< double > > m_points
Definition: vhacdMesh.h:134
double GetDiagBB() const
Definition: vhacdMesh.h:113
~Mesh(void)
Destructor.
Definition: vhacdMesh.cpp:49
Vec3< double > * GetPointsBuffer()
Definition: vhacdMesh.h:90
bool LoadOFF(const std::string &fileName, bool invert)
size_t GetNTriangles() const
Definition: vhacdMesh.h:95
double ComputeDiagBB()
Definition: vhacdMesh.cpp:207
SArray.
Definition: vhacdSArray.h:42
Vector dim 3.
Definition: vhacdVector.h:37
T & Y()
Definition: vhacdVector.inl:18
T & X()
Definition: vhacdVector.inl:13
T & Z()
Definition: vhacdVector.inl:23
AXIS
Definition: vhacdMesh.h:37
@ AXIS_Z
Definition: vhacdMesh.h:40
@ AXIS_Y
Definition: vhacdMesh.h:39
@ AXIS_X
Definition: vhacdMesh.h:38
Definition: bullet_cast_bvh_manager.h:49
Definition: vhacdMesh.h:53
double m_transparency
Definition: vhacdMesh.h:59
Vec3< double > m_emissiveColor
Definition: vhacdMesh.h:57
double m_ambientIntensity
Definition: vhacdMesh.h:55
Material(void)
Definition: vhacdMesh.h:60
Vec3< double > m_specularColor
Definition: vhacdMesh.h:56
double m_shininess
Definition: vhacdMesh.h:58
Vec3< double > m_diffuseColor
Definition: vhacdMesh.h:54
Definition: vhacdMesh.h:43
double m_d
Definition: vhacdMesh.h:47
short m_index
Definition: vhacdMesh.h:49
double m_c
Definition: vhacdMesh.h:46
double m_b
Definition: vhacdMesh.h:45
double m_a
Definition: vhacdMesh.h:44
AXIS m_axis
Definition: vhacdMesh.h:48
auto plane
Definition: tesseract_geometry_unit.cpp:22
m material
Definition: tesseract_scene_graph_link_unit.cpp:74