15 #ifndef niftkBasicMesh_h
16 #define niftkBasicMesh_h
19 #include "niftkCoreExports.h"
37 BasicMesh(std::vector<BasicVertex> &vertices, std::vector<BasicTriangle> &triangles,
int numOfVerts,
int numOfTris);
42 void InitWithVertsAndTris(std::vector<BasicVertex> &vertices, std::vector<BasicTriangle> &triangles,
int numOfVerts,
int numOfTris);
71 void CalcOneVertNormal(
unsigned vert);
81 void SetMinMax(
float min[3],
float max[3]);
84 void CalcVertNormals();
87 std::vector<BasicVertex> m_VertList;
88 std::vector<BasicTriangle> m_TriList;
void SetNumTriangles(int n)
Set number of triangles.
Definition: niftkBasicMesh.h:65
BasicVertex & GetVertex(int index)
Get reference to the vertex with the specified index.
Definition: niftkBasicMesh.h:50
bool operator==(niftk::BasicVertex const &x, niftk::BasicVertex const &y)
Definition: niftkMeshSmoother.cxx:31
BasicTriangle & GetTri(int index)
Get reference to the triangle with the specified index.
Definition: niftkBasicMesh.h:54
int GetNumTriangles()
Get number of triangles.
Definition: niftkBasicMesh.h:63
void Normalize(std::vector< double > &x)
Definition: niftiImageToMitk.cxx:34
Simple vertex implementation that is used in the Surface Extraction and surface smoothing and decimat...
Definition: niftkBasicVertex.h:77
GLuint index
Definition: glew.h:1798
Simple mesh implementation that is used in the Surface Extraction and surface smoothing and decimatio...
Definition: niftkBasicMesh.h:31
void SetNumVerts(int n)
Set number of vertices.
Definition: niftkBasicMesh.h:61
GLclampd n
Definition: glew.h:6789
int GetNumVerts()
Get number of vertices.
Definition: niftkBasicMesh.h:59
Simple triangle implementation that is used in the Surface Extraction and surface smoothing and decim...
Definition: niftkBasicTriangle.h:34
const BasicVertex & GetVertex(int index) const
Get const reference to the vertex with the specified index.
Definition: niftkBasicMesh.h:52
const BasicTriangle & GetTri(int index) const
Get const reference to the triangle with the specified index.
Definition: niftkBasicMesh.h:56
Definition: niftkExceptionObject.h:21