C# Class OfflineCloudRenderer2.AABBTree

This class holds the various distance field primitives inside an AABBTree Each primitive is encompassed in an AABB, primitive groups are formed and stored in a larger encompassing AABB until all groups have been stored in the root AABB Implementation was shamelessly stolen from box2D since I don't want to lose time with this awful structure...
Mostrar archivo Open project: Patapom/GodComplex Class Usage Examples

Public Properties

Property Type Description
m_Primitives List
m_Root Node

Public Methods

Method Description
AABBTree ( ) : System
EvalDistance ( float3 _Position ) : float

Evaluates the distance to the closest distance field primitive in the field

InsertLeaf ( IDistanceFieldPrimitive _Primitive ) : void

Private Methods

Method Description
Balance ( Node A ) : Node

Method Details

AABBTree() public method

public AABBTree ( ) : System
return System

EvalDistance() public method

Evaluates the distance to the closest distance field primitive in the field
public EvalDistance ( float3 _Position ) : float
_Position float3
return float

InsertLeaf() public method

public InsertLeaf ( IDistanceFieldPrimitive _Primitive ) : void
_Primitive IDistanceFieldPrimitive
return void

Property Details

m_Primitives public_oe property

public List m_Primitives
return List

m_Root public_oe property

public Node m_Root
return Node