ExpandBox
BoundingBoxXYZ? ExpandBox(this BoundingBoxXYZ? box, double delta)Returns a copy of the bounding box expanded uniformly along all axes by the given offset. Returns null if the input box is null.
Parameters
- boxBoundingBoxXYZ?
The source bounding box to expand.
- deltadouble
The uniform offset to apply in all directions (in internal units).
Returns: A new expanded BoundingBoxXYZ instance, or null if the input was null.
Example
BoundingBoxXYZ? box = element.get_BoundingBox(null);BoundingBoxXYZ? expanded = box?.ExpandBox(1.0); // expand by 1 foot