Description | Hierarchy | Fields | Methods | Properties |
type TTriangleSelector = class(TReferenceCounted)
Interface to return triangles with specific properties.
Every TSceneNode may have a triangle selector, available with TSceneNode.GetTriangleScelector or TSceneManager.CreateTriangleSelector. This is used for doing collision detection: For example if you know, that a collision may have happened in the area between (1,1,1) and (10,10,10), you can get all triangles of the scene node in this area with the TTriangleSelector
easily and check every triangle if it collided.
![]() |
constructor Create(Ref: Pointer; NManager: TReferenceCounted; AutoDrop: Boolean = False); |
![]() |
function GetSceneNodeForTriangle(TriangleIndex: LongWord): TSceneNode; inline; |
![]() |
function GetTriangles(const Box: TBoundingBox): TTriangleArray; overload; inline; |
![]() |
function GetTriangles(const Transform: TMatrix4): TTriangleArray; overload; inline; |
![]() |
function GetTriangles: TTriangleArray; overload; inline; |
![]() |
function GetTriangles(const Line: TLine3D; const Transform: TMatrix4): TTriangleArray; overload; inline; |
![]() |
function GetTriangles(const Line: TLine3D): TTriangleArray; overload; inline; |
![]() |
function GetTriangles(const Box: TBoundingBox; const Transform: TMatrix4): TTriangleArray; overload; inline; |
![]() |
property TriangleCount: LongInt read GetTriangleCount; |
![]() |
constructor Create(Ref: Pointer; NManager: TReferenceCounted; AutoDrop: Boolean = False); |
Constructor. Only used internally. |
![]() |
function GetSceneNodeForTriangle(TriangleIndex: LongWord): TSceneNode; inline; |
Return the scene node associated with a given triangle. Parameters
ReturnsThe scene node associated with that triangle. |
![]() |
function GetTriangles(const Box: TBoundingBox): TTriangleArray; overload; inline; |
Returns the triangles for one associated node which lie or may lie within a specific bounding box without transformation. Parameters
|
![]() |
function GetTriangles(const Transform: TMatrix4): TTriangleArray; overload; inline; |
Transforms and returns the triangles for one associated node. Parameters
|
![]() |
function GetTriangles: TTriangleArray; overload; inline; |
Returns the triangles for one associated node without transformation. |
![]() |
function GetTriangles(const Line: TLine3D; const Transform: TMatrix4): TTriangleArray; overload; inline; |
Transforms and returns the triangles for one associated node which have or may have contact with a 3D line. Parameters
|
![]() |
function GetTriangles(const Line: TLine3D): TTriangleArray; overload; inline; |
Returns the triangles for one associated node which have or may have contact with a 3D line without transformation. Parameters
|
![]() |
function GetTriangles(const Box: TBoundingBox; const Transform: TMatrix4): TTriangleArray; overload; inline; |
Transforms and returns the triangles for one associated node which lie or may lie within a specific bounding box. Parameters
|
![]() |
property TriangleCount: LongInt read GetTriangleCount; |
The number of triangles in this selector. |