BoundingBox.FromGeometry

BoundingBox.FromGeometry method

Construct a bounding box from given geometry

public static BoundingBox FromGeometry(Geometry geometry)
ParameterTypeDescription
geometryGeometry

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