27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

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

    The mesh 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 meshes transformed vectors.

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