Computes "bounding box" around a given piece of geometry, and returns it as a list of two Points. The first point is the minimum x, y, and z of the object, and the second is the maximum. The objects supplied must be direct geometry, not assemblies or non-geometric items. The argument can be a Part, Point or String. If a String, the string is assumed to contain a host-specific identifier (such as those obtained from modelSelf attributes or the topology functions). This function is used by the SolidMixin attribute boundingBox, which is the preferred method. However, it also works on non-Solids.
boundingBox ( obj As Any ) As List
| Argument | Type | Description |
|---|---|---|
| obj | any | A Part, Point, or String. The geometry whose extent is to be computed. |
Intent >boundingBox(Point(10,0,0))
--> {Point_(10.0, 0.0, 0.0, WorldFrame()), Point_(10.0, 0.0, 0.0, WorldFrame())}
A point has no extent, so its max and min points are identical.
Intent >boundingBox(Sphere_1)
--> {Point_(-5.0, -5.0, -5.0, WorldFrame()), Point_(5.0, 5.0, 5.0, WorldFrame())}
Sphere_1 has a radius of 5.0 and an origin of 0, 0, 0.