5 #ifndef __I_TRIANGLE_SELECTOR_H_INCLUDED__ 6 #define __I_TRIANGLE_SELECTOR_H_INCLUDED__ 21 class ITriangleSelector;
102 bool useNodeTransform=
true,
Interface to return triangles with specific properties.
SCollisionTriangleRange()
Additional information about the triangle arrays returned by ITriangleSelector::getTriangles.
3d triangle template class for doing collision detection and other things.
const IMeshBuffer * MeshBuffer
Everything in the Irrlicht Engine can be found in this namespace.
virtual u32 getSelectorCount() const =0
Get number of TriangleSelectors that are part of this one.
3D line between two points with intersection methods.
irr::u32 RangeStart
First index in the returned triangle array for which this struct is valid.
ITriangleSelector * Selector
Real selector which contained those triangles (useful when working with MetaTriangleSelector)
virtual void getTriangles(core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::matrix4 *transform=0, bool useNodeTransform=true, irr::core::array< SCollisionTriangleRange > *outTriangleInfo=0) const =0
Gets the triangles for one associated node.
signed int s32
32 bit signed variable.
Struct for holding a mesh with a single material.
virtual ITriangleSelector * getSelector(u32 index)=0
Get TriangleSelector based on index based on getSelectorCount.
unsigned int u32
32 bit unsigned variable.
virtual ISceneNode * getSceneNodeForTriangle(u32 triangleIndex) const =0
Get scene node associated with a given triangle.
irr::u32 MaterialIndex
Index of selected material in the SceneNode. Usually only valid when MeshBuffer is also set,...
4x4 matrix. Mostly used as transformation matrix for 3d calculations.
Self reallocating template array (like stl vector) with additional features.
irr::u32 RangeSize
Number of elements in the returned triangle array for which this struct is valid (starting with Range...
GLuint GLenum GLenum transform
Base class of most objects of the Irrlicht Engine.
virtual s32 getTriangleCount() const =0
Get amount of all available triangles in this selector.
bool isIndexInRange(irr::u32 triangleIndex) const
Check if this triangle index inside the range.
ISceneNode * SceneNode
SceneNode from which the triangles are from.