Entity.GetBoundingBox
Entity.GetBoundingBox method
获取当前实体在其对象空间坐标系中的包围盒。
public BoundingBox GetBoundingBox()
返回值
当前实体在其对象空间坐标系中的边界框。
示例
以下代码展示了如何计算形状的边界框
Entity entity = new Sphere() { Radius = 10 };
var bbox = entity.GetBoundingBox();
Console.WriteLine($"The bounding box of the entity is {bbox.Minimum} ~ {bbox.Maximum}");
另请参见
- struct BoundingBox
- class Entity
- namespace Aspose.ThreeD
- assembly Aspose.3D