33 #ifndef __H__UG__NODE_TREE__COLLSISION_TRIANGLES_NODE__
34 #define __H__UG__NODE_TREE__COLLSISION_TRIANGLES_NODE__
43 class CollisionTrianglesNode;
82 int& ind2Out,
int& ind3Out)
const;
97 typedef std::vector<CollisionElementID>
IDVec;
Definition: smart_pointer.h:108
holds index tuples defining triangles.
Definition: collision_triangles_node.h:61
virtual void set_triangle_id(size_t triInd, CollisionElementID triID)
Definition: collision_triangles_node.cpp:168
static SPCollisionTrianglesNode create()
Definition: collision_triangles_node.cpp:40
std::vector< CollisionElementID > IDVec
Definition: collision_triangles_node.h:97
CollisionTrianglesNode()
Definition: collision_triangles_node.cpp:48
IDVec m_vTriIDs
Definition: collision_triangles_node.h:100
virtual void get_triangle(size_t index, int &ind1Out, int &ind2Out, int &ind3Out) const
Definition: collision_triangles_node.cpp:152
virtual const int * get_triangles() const
Definition: collision_triangles_node.cpp:161
IndexVec m_vTris
Definition: collision_triangles_node.h:99
virtual void add_triangle(int ind1, int ind2, int ind3)
Definition: collision_triangles_node.cpp:59
std::vector< int > IndexVec
Definition: collision_triangles_node.h:96
bool m_bTriangleIDsSupplied
Definition: collision_triangles_node.h:102
virtual CollisionElementID get_triangle_id(size_t triInd)
if no identifier has been set for an edge -1 is returned.
Definition: collision_triangles_node.cpp:185
virtual ~CollisionTrianglesNode()
Definition: collision_triangles_node.cpp:54
virtual size_t num_triangles() const
Definition: collision_triangles_node.cpp:145
virtual void add_triangles(int *pIndices, size_t numTris)
pIndices has to be of size numTris*3
Definition: collision_triangles_node.cpp:92
Nodes serve as base-objects for items of wich a scene-graph consists.
Definition: node.h:72
SmartPtr< CollisionTrianglesNode > SPCollisionTrianglesNode
the smartpointer used to encapsulate the node
Definition: collision_triangles_node.h:43
Definition: collision_element_info.h:53