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

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

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

Collaboration diagram for jpp::scene::SCollisionTriangleRange:
Collaboration graph

Public Member Functions

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

Public Attributes

jpp::u32 RangeStart
 First index in the returned triangle array for which this class is valid.
 
jpp::u32 RangeSize
 Number of elements in the returned triangle array for which this class 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
 
jpp::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 jpp::scene::SCollisionTriangleRange::isIndexInRange ( jpp::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* jpp::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:

Jimcpp    @cppfx.xyz