Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
nirt::scene::SCollisionTriangleRange Class Reference

Additional information about the triangle arrays returned by ITriangleSelector::getTriangles. More...

#include <nirtcpp/core/engine/ITriangleSelector.hpp>

Collaboration diagram for nirt::scene::SCollisionTriangleRange:
Collaboration graph

Public Member Functions

bool isIndexInRange (nirt::u32 triangleIndex) const
 Check if this triangle index inside the range.
 

Public Attributes

nirt::u32 RangeStart
 First index in the returned triangle array for which this struct is valid.
 
nirt::u32 RangeSize
 Number of elements in the returned triangle array for which this struct is valid (starting with RangeStart)
 
const ITriangleSelectorSelector
 Real selector which contained those triangles (useful when working with MetaTriangleSelector)
 
ISceneNodeSceneNode
 SceneNode from which the triangles are from.
 
const IMeshBufferMeshBuffer
 
nirt::u32 MaterialIndex
 Index of selected material in the SceneNode. Usually only valid when MeshBuffer is also set, otherwise always 0.
 

Detailed Description

Additional information about the triangle arrays returned by ITriangleSelector::getTriangles.

ITriangleSelector are free to fill out this information fully, partly or ignore it. Usually they will try to fill it when they can and set values to 0 otherwise.

Member Function Documentation

◆ isIndexInRange()

bool nirt::scene::SCollisionTriangleRange::isIndexInRange ( nirt::u32  triangleIndex) const
inline

Check if this triangle index inside the range.

Parameters
triangleIndexIndex to an element inside the array of triangles returned by ITriangleSelector::getTriangles

Member Data Documentation

◆ MeshBuffer

const IMeshBuffer* nirt::scene::SCollisionTriangleRange::MeshBuffer

Meshbuffer from which the triangles are from Is 0 when the ITriangleSelector doesn't support meshbuffer selection


The documentation for this class was generated from the following file:

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print