GetBoundingBoxCorners
XYZ[] GetBoundingBoxCorners(this Element element, View? view = null, bool applyTransform = true)Returns the eight corners of the element's bounding box. Optionally applies the box Transform to the points.
Parameters
- elementElement
The element to inspect.
- viewView?
Optional view context.
- applyTransformbool
If true, applies BoundingBoxXYZ.Transform when non-identity.
Returns: Array of 8 XYZ points (or empty if bbox unavailable).
Example
XYZ[] corners = element.GetBoundingBoxCorners(applyTransform: true);