27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    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
    TypeNameDescription
    Boundsbounds

    The bounds to encapsulate into the returned bounds.

    TransformchildTransform

    The transform of the GameObject that contains the mesh.

    TransformrootTransform

    The transform of the GameObject containing the SlicerController.

    Returns
    TypeDescription
    Bounds

    The bounds that contains the bounds transformed extents.

      ☀
      ☾
      In This Article
      Back to top
      27 Slicer documentation | Copyright 2021 Deftly Games
      ☀
      ☾