Method CalculateBounds
CalculateBounds(Mesh, Transform, Transform)
Converts a meshes bounds into a bounds in slicer space (local space of the parent SlicerComponent).
Declaration
public static Bounds CalculateBounds(Mesh mesh, Transform childTransform, Transform rootTransform)Parameters
| Type | Name | Description |
|---|---|---|
| Mesh | mesh | The mesh 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 meshes transformed vectors. |