BEPUphysics.DataStructures.MeshBoundingBoxTree.LeafNode.Refit C# (CSharp) Метод

Refit() приватный Метод

private Refit ( MeshBoundingBoxTreeData data ) : void
data MeshBoundingBoxTreeData
Результат void
            internal override void Refit(MeshBoundingBoxTreeData data)
            {
                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;
            }
        }