ug4
|
holds index tuples defining triangles. More...
#include <collision_triangles_node.h>
Public Member Functions | |
virtual void | add_triangle (int ind1, int ind2, int ind3) |
virtual void | add_triangle (int ind1, int ind2, int ind3, CollisionElementID triID) |
virtual void | add_triangles (int *pIndices, CollisionElementID *pTriIDs, size_t numTris) |
pIndices and pTriIDs have to be of size numTris*3 More... | |
virtual void | add_triangles (int *pIndices, size_t numTris) |
pIndices has to be of size numTris*3 More... | |
virtual void | get_triangle (size_t index, int &ind1Out, int &ind2Out, int &ind3Out) const |
virtual CollisionElementID | get_triangle_id (size_t triInd) |
if no identifier has been set for an edge -1 is returned. More... | |
virtual const int * | get_triangles () const |
virtual size_t | num_triangles () const |
virtual void | set_triangle_id (size_t triInd, CollisionElementID triID) |
virtual | ~CollisionTrianglesNode () |
Public Member Functions inherited from ug::node_tree::Node | |
virtual | ~Node () |
Public Member Functions inherited from ug::node_tree::Object | |
unsigned int | getObjectCode () |
virtual | ~Object () |
Static Public Member Functions | |
static SPCollisionTrianglesNode | create () |
Protected Types | |
typedef std::vector< CollisionElementID > | IDVec |
typedef std::vector< int > | IndexVec |
Protected Member Functions | |
CollisionTrianglesNode () | |
Protected Member Functions inherited from ug::node_tree::Node | |
Node () | |
Protected Member Functions inherited from ug::node_tree::Object | |
Object () | |
Object (const Object &obj) | |
Protected Attributes | |
bool | m_bTriangleIDsSupplied |
IDVec | m_vTriIDs |
IndexVec | m_vTris |
Protected Attributes inherited from ug::node_tree::Object | |
unsigned int | m_objectCode |
holds index tuples defining triangles.
The index-tuples refer to the next CollisionTreeRootNode, which is higher in the hierarchy.
An identifier can be stored with each triangle - either an integer-value or a void-pointer. Normally appears as a subordinate of CollisionTreeRootNode.
|
protected |
|
protected |
|
virtual |
|
protected |
References m_bTriangleIDsSupplied.
Referenced by create().
|
virtual |
References m_bTriangleIDsSupplied, and m_vTris.
|
virtual |
References m_bTriangleIDsSupplied, m_vTriIDs, m_vTris, and num_triangles().
|
virtual |
pIndices and pTriIDs have to be of size numTris*3
References m_bTriangleIDsSupplied, m_vTriIDs, and m_vTris.
|
virtual |
pIndices has to be of size numTris*3
References m_bTriangleIDsSupplied, m_vTriIDs, and m_vTris.
|
static |
|
virtual |
References m_vTris.
|
virtual |
if no identifier has been set for an edge -1 is returned.
References m_bTriangleIDsSupplied, and m_vTriIDs.
Referenced by ug::node_tree::Traverser_IntersectFaces::handle_collision_triangles(), and ug::node_tree::Traverser_ProjectPoint::handle_collision_triangles().
|
virtual |
|
virtual |
|
virtual |
References m_bTriangleIDsSupplied, m_vTriIDs, and num_triangles().
|
protected |
Referenced by add_triangle(), add_triangles(), CollisionTrianglesNode(), get_triangle_id(), and set_triangle_id().
|
protected |
Referenced by add_triangle(), add_triangles(), get_triangle_id(), and set_triangle_id().
|
protected |
Referenced by add_triangle(), add_triangles(), get_triangle(), get_triangles(), and num_triangles().