BoundingBox.FromGeometry
BoundingBox.FromGeometry method
إنشاء صندوق حدود من الهندسة المعطاة
public static BoundingBox FromGeometry(Geometry geometry)
| معامل | النوع | الوصف |
|---|---|---|
| هندسة | هندسة | الهندسة لحساب صندوق الحدود |
قيمة الإرجاع
صندوق الحدود للهندسة المعطاة
أمثلة
الكود التالي يوضح كيفية إنشاء صندوق حدود من كائن هندسة.
var sphere = (new Sphere()).ToMesh();
var boundingBox = BoundingBox.FromGeometry(sphere);
Console.WriteLine("Bounding box = " + boundingBox);
انظر أيضًا
- class Geometry
- struct BoundingBox
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D