Method CalculateBounds
CalculateBounds(Bounds, Transform, Transform)
Converts a local bounds into a bounds in slicer space (local space of the parent SlicerComponent).
Declaration
public static Bounds CalculateBounds(Bounds bounds, Transform childTransform, Transform rootTransform)
Parameters
Type | Name | Description |
---|---|---|
Bounds | bounds | The bounds to encapsulate into the returned bounds. |
Transform | childTransform | The transform of the GameObject that contains the mesh. |
Transform | rootTransform | The transform of the GameObject containing the |
Returns
Type | Description |
---|---|
Bounds | The bounds that contains the bounds transformed extents. |