BEPUphysics.DataStructures.MeshBoundingBoxTree.LeafNode.Refit C# (CSharp) Méthode

Refit() private méthode

private Refit ( MeshBoundingBoxTreeData data ) : void
data MeshBoundingBoxTreeData
Résultat 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;
            }
        }