Space Engineers
Public Member Functions | List of all members
Sandbox.Game.Utils.MyOctree Class Reference

Public Member Functions

 MyOctree ()
 Initializes a new instance of the MyOctree class. More...
 
void Init (Vector3[] positions, int vertexCount, MyVoxelTriangle[] triangles, int triangleCount, out MyVoxelTriangle[] sortedTriangles)
 
void BoxQuery (ref BoundingBox bbox, List< int > triangleIndices)
 
void GetIntersectionWithLine (ref Ray ray, List< int > triangleIndices)
 

Detailed Description

Definition at line 7 of file MyOctree.cs.

Constructor & Destructor Documentation

Sandbox.Game.Utils.MyOctree.MyOctree ( )
inline

Initializes a new instance of the MyOctree class.

Parameters
trianglesInput triangle array
sortedTrianglesOutput triangle array (can be same as input triangle array)

Definition at line 22 of file MyOctree.cs.

Member Function Documentation

void Sandbox.Game.Utils.MyOctree.BoxQuery ( ref BoundingBox  bbox,
List< int >  triangleIndices 
)
inline

Definition at line 92 of file MyOctree.cs.

void Sandbox.Game.Utils.MyOctree.GetIntersectionWithLine ( ref Ray  ray,
List< int >  triangleIndices 
)
inline

Definition at line 131 of file MyOctree.cs.

void Sandbox.Game.Utils.MyOctree.Init ( Vector3[]  positions,
int  vertexCount,
MyVoxelTriangle[]  triangles,
int  triangleCount,
out MyVoxelTriangle[]  sortedTriangles 
)
inline

Definition at line 26 of file MyOctree.cs.


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