#include <Mesh.h>
Mesh storage.
Definition at line 25 of file Mesh.h.
◆ Mesh()
◆ ~Mesh()
◆ add()
void geo::Mesh::add |
( |
const Mesh & |
mesh | ) |
|
Add a mesh to this mesh.
- Parameters
-
Definition at line 31 of file Mesh.cpp.
◆ addPoint() [1/2]
Add a point to the mesh.
- Parameters
-
- Returns
- Index of the point.
Definition at line 19 of file Mesh.cpp.
◆ addPoint() [2/2]
unsigned int geo::Mesh::addPoint |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Add a point to the mesh.
- Parameters
-
x | X coordinate of the point to add. |
y | Y coordinate of the point to add. |
z | Z coordinate of the point to add. |
- Returns
- Index of the point.
Definition at line 15 of file Mesh.cpp.
◆ addTriangle()
void geo::Mesh::addTriangle |
( |
unsigned int |
i1, |
|
|
unsigned int |
i2, |
|
|
unsigned int |
i3 |
|
) |
| |
Add a triangle to the mesh.
- Parameters
-
i1 | First point of the triangle to add. |
i2 | Second point of the triangle to add. |
i3 | Third point of the triangle to add. |
Definition at line 26 of file Mesh.cpp.
◆ clear()
void geo::Mesh::clear |
( |
| ) |
|
|
inline |
Empty the mesh.
Definition at line 76 of file Mesh.h.
◆ empty()
bool geo::Mesh::empty |
( |
| ) |
const |
|
inline |
Test whether the mesh is empty.
- Returns
- True if there are no triangles in the mesh (else false).
Definition at line 67 of file Mesh.h.
◆ filterOverlappingVertices()
void geo::Mesh::filterOverlappingVertices |
( |
| ) |
|
Filter overlapping vertices from the mesh.
Definition at line 84 of file Mesh.cpp.
◆ getMaxRadius()
double geo::Mesh::getMaxRadius |
( |
| ) |
const |
◆ getPoints()
Get the points of the mesh.
- Returns
- The points of the mesh.
Definition at line 42 of file Mesh.cpp.
◆ getSquaredMaxRadius()
double geo::Mesh::getSquaredMaxRadius |
( |
| ) |
const |
Get the squared maximum radius.
- Returns
- The squared maximum radius of the mesh.
Definition at line 116 of file Mesh.cpp.
◆ getTransformed()
Apply transformation to the mesh.
- Parameters
-
t | Transformation to apply. |
- Returns
- The transformed mesh.
Definition at line 59 of file Mesh.cpp.
◆ getTriangleIs()
Get the triangles of the mesh.
- Returns
- The triangles of the mesh, using indices into the vector returned by getPoints..
Definition at line 46 of file Mesh.cpp.
◆ getTriangleNormal()
const geo::Vector3 geo::Mesh::getTriangleNormal |
( |
unsigned int |
index | ) |
const |
Calculates the nornaml of a triangle in the mesh.
- Parameters
-
index | Indez of the traingle |
- Returns
- the calculated normal of the triangle
Definition at line 132 of file Mesh.cpp.
◆ getTriangles()
Get the triangles of the mesh.
- Returns
- The triangles of the mesh with points in space.
Definition at line 50 of file Mesh.cpp.
◆ invalidateCache()
void geo::Mesh::invalidateCache |
( |
| ) |
|
|
inlineprotected |
Clear cached computed results, as they have become invalid.
Definition at line 143 of file Mesh.h.
◆ size()
Get the number of triangles of the mesh.
- Returns
- The number of triangles in the mesh.
Definition at line 73 of file Mesh.h.
◆ max_radius_cache_
double geo::Mesh::max_radius_cache_ |
|
mutableprotected |
Cached maximum radius.
Definition at line 133 of file Mesh.h.
◆ max_radius_squared_cache_
double geo::Mesh::max_radius_squared_cache_ |
|
mutableprotected |
Cached squared maximum radius.
Definition at line 134 of file Mesh.h.
◆ points_
Points of the mesh.
Definition at line 136 of file Mesh.h.
◆ triangles_cache_
Cached output result.
Definition at line 140 of file Mesh.h.
◆ triangles_i_
Triangles of the mesh.
Definition at line 138 of file Mesh.h.
The documentation for this class was generated from the following files: