C# Class BananaMpq.Geometry.BVHNode

Inheritance: IBVHNode
Afficher le fichier Open project: sgraf812/BananaMpq Class Usage Examples

Méthodes publiques

Méthode Description
CreateBranch ( int childCount, BoundingBox &bounds ) : BVHNode
CreateLeaf ( SceneObject sceneObject, int firstTriangleIndex, BoundingBox &bounds ) : BVHNode
GetIntersectingPoint ( Ray &ray ) : Vector3?

Private Methods

Méthode Description
BVHNode ( SceneObject sceneObject, int triangleIndexOrChildCount, BoundingBox &bounds ) : System

Method Details

CreateBranch() public static méthode

public static CreateBranch ( int childCount, BoundingBox &bounds ) : BVHNode
childCount int
bounds BoundingBox
Résultat BVHNode

CreateLeaf() public static méthode

public static CreateLeaf ( SceneObject sceneObject, int firstTriangleIndex, BoundingBox &bounds ) : BVHNode
sceneObject SceneObject
firstTriangleIndex int
bounds BoundingBox
Résultat BVHNode

GetIntersectingPoint() public méthode

public GetIntersectingPoint ( Ray &ray ) : Vector3?
ray Ray
Résultat Vector3?