BEPUphysics.DataStructures.MeshBoundingBoxTree.LeafNode.LeafNode C# (CSharp) Method

LeafNode() private method

private LeafNode ( int leafIndex, MeshBoundingBoxTreeData data ) : System.Collections.Generic
leafIndex int
data MeshBoundingBoxTreeData
return System.Collections.Generic
            internal LeafNode(int leafIndex, MeshBoundingBoxTreeData data)
            {
                LeafIndex = leafIndex;
                data.GetBoundingBox(leafIndex, out BoundingBox);
                //Having an ever-so-slight margin allows the hierarchy use a volume metric even for degenerate shapes (consider a flat tessellated plane).
                BoundingBox.Max.X += LeafMargin;
                BoundingBox.Max.Y += LeafMargin;
                BoundingBox.Max.Z += LeafMargin;
                BoundingBox.Min.X -= LeafMargin;
                BoundingBox.Min.Y -= LeafMargin;
                BoundingBox.Min.Z -= LeafMargin;
            }