BoundingBox.FromGeometry
BoundingBox.FromGeometry method
Construct a bounding box from given geometry
public static BoundingBox FromGeometry(Geometry geometry)
Parameter | Type | Description |
---|---|---|
geometry | Geometry |
Examples
The following code shows how to construct a bounding box from a geometry instance.
var sphere = (new Sphere()).ToMesh();
var boundingBox = BoundingBox.FromGeometry(sphere);
Console.WriteLine("Bounding box = " + boundingBox);
See Also
- class Geometry
- struct BoundingBox
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D