Class mesh¶
Defined in File mesh.hxx
Class Documentation¶
-
class enve::ground::mesh¶
-
Triangular mesh class.
Public Functions
-
~mesh(void) = default¶
-
Mesh class destructor.
-
mesh(void)¶
-
Mesh class constructor.
-
mesh(triangleground::vecptr const &triangles)¶
-
Mesh class constructor.
- Parameters
-
triangles – Ground triangles pointer vector list
-
mesh(std::string const &path)¶
-
Mesh class constructor.
- Parameters
-
path – Path to the RDF file
-
mesh(std::string const &path, real friction)¶
-
Mesh class constructor.
- Parameters
-
path – Path to the OBJ file
friction – Friction scaling coefficient
-
void clear(void)¶
-
Clear all mesh object data.
-
triangleground::vecptr const &vecptrTriangleground(void) const¶
-
Get all triangleground pointers inside the mesh as a vector.
-
triangleground::ptr ptrTriangleground(size_t i) const¶
-
Get i-th triangleground pointer.
- Parameters
-
i – Triangle index
-
triangleground::ptr operator[](size_t i) const¶
-
Get i-th triangleground pointer.
- Parameters
-
i – Triangle index
-
void print(std::string const &path) const¶
-
Print data in file.
- Parameters
-
path – File name in which print data
-
size_t size(void) const¶
-
Return number of triangles in the mesh.
-
bool load(std::string const &path)¶
-
Load ground data as a *.rdf file.
- Parameters
-
path – Path to the file
-
bool load(std::string const &path, real friction)¶
-
Load ground data as a *.obj file.
- Parameters
-
path – Path to the file
friction – Friction coefficient scaling factor
-
bool intersection(aabb::ptr const box, triangleground::vecptr &triangles) const¶
-
Intersect the mesh AABBtree with an external aabb object pointer.
- Parameters
-
box – External aabb object pointer
triangles – Intersected triangleground vector list
-
void buildAABBtree(void)¶
-
Build mesh AABBtree.
-
~mesh(void) = default¶