C# Class TerrainDisplay.Collision.OCTree.OCTreeBuilder

Exibir arquivo Open project: WCell/WCell-Terrain

Public Methods

Method Description
Build ( Vector3 vertexArray, int indexArray ) : OCTree
OCTreeBuilder ( int maxPolygonsPerNode, int maxSubdivisions, bool makeSquare, float weldDelta, float expandBoundsFactor ) : System.Collections.Generic

Private Methods

Method Description
CalculateBounds ( OCTPoly polyList ) : BoundingBox
RecursiveBuild ( IntermediateOCTreeNode node, OCTPoly PolyList, Vector3 center, Vector3 extents, int depth ) : void
Split ( OCTPoly poly, Plane p, OCTPoly &newPolys, int &numPolys ) : void

Method Details

Build() public method

public Build ( Vector3 vertexArray, int indexArray ) : OCTree
vertexArray Vector3
indexArray int
return OCTree

OCTreeBuilder() public method

public OCTreeBuilder ( int maxPolygonsPerNode, int maxSubdivisions, bool makeSquare, float weldDelta, float expandBoundsFactor ) : System.Collections.Generic
maxPolygonsPerNode int
maxSubdivisions int
makeSquare bool
weldDelta float
expandBoundsFactor float
return System.Collections.Generic