27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Method SliceVerts

    SliceVerts(Bounds, Transform, Vector3, Transform, Bounds, Bounds)

    Slices a bounds as if it is made up of discrete vertices.

    Declaration
    public static Bounds SliceVerts(Bounds origBounds, Transform boundsTransform, Vector3 size, Transform rootTransform, Bounds completeBounds, Bounds slicedBounds)
    Parameters
    TypeNameDescription
    BoundsorigBounds

    The bounds to slice

    TransformboundsTransform

    The transform of the GameObject that contains the bounds

    Vector3size

    The final size (as a scale) of all the items that are to be sliced. See SlicerController.Size for more information.

    TransformrootTransform

    The transform of the parent SlicerController"

    BoundscompleteBounds

    The complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    BoundsslicedBounds

    The bounding box of the slices that will be made. See SlicerController.SlicedBounds for more information.

    Returns
    TypeDescription
    Bounds

    Returns the sliced bounds

    SliceVerts(Mesh, Mesh, Transform, Vector3, Transform, Bounds, Bounds, Boolean, Hash128)

    Slices the vertices of the supplied origSharedMesh and applies it to the supplied modifiedMesh.

    Declaration
    public static Hash128 SliceVerts(Mesh origSharedMesh, Mesh modifiedMesh, Transform meshTransform, Vector3 size, Transform rootTransform, Bounds completeBounds, Bounds slicedBounds, bool skipVertices, Hash128 previousHash)
    Parameters
    TypeNameDescription
    MeshorigSharedMesh

    The original mesh.

    MeshmodifiedMesh

    The mesh the slicing will be applied to.

    TransformmeshTransform

    The transform of the GameObject that contains the mesh.

    Vector3size

    The final size (as a scale) of all the items that are to be sliced. See SlicerController.Size for more information.

    TransformrootTransform

    The transform of the parent SlicerController"

    BoundscompleteBounds

    The complete bounding box of all sliced items after being sliced. See SlicerController.CompleteBounds for more information.

    BoundsslicedBounds

    The bounding box of the slices that will be made. See SlicerController.SlicedBounds for more information.

    BooleanskipVertices

    Should the verts be sliced, if true the vertices will not be sliced.

    Hash128previousHash

    The previous hash from slicing, used to determine if any changes should be uploaded to the GPU etc.

    Returns
    TypeDescription
    Hash128

    Returns the hash of the sliced verts, or SkipVertHash if skipVertices is set to true.

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