mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class MeshSmoother

    Component which can be used to automatically generate smoothed normals on a mesh and pack those normals into a UV set. Smoothed normals can be used for a variety of effects including extruding disjoint meshes along a vertex normal. This behavior is designed to be used in conjunction with the MRTK/Standard shader which assumes smoothed normals are packed into the 3rd UV set.

    Inheritance
    Object
    MeshSmoother
    Implements
    MonoBehaviour
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public class MeshSmoother : MonoBehaviour, MonoBehaviour

    Methods

    SmoothNormals()

    Performs normal smoothing on the current mesh filter associated with this component synchronously. This method will not try and re-smooth meshes which have already been smoothed.

    Declaration
    public void SmoothNormals()

    SmoothNormals()

    Performs normal smoothing on the current mesh filter associated with this component synchronously. This method will not try and re-smooth meshes which have already been smoothed.

    Declaration
    public void SmoothNormals()

    SmoothNormalsAsync()

    Performs normal smoothing on the current mesh filter associated with this component asynchronously. This method will not try and re-smooth meshes which have already been smoothed.

    Declaration
    public Task SmoothNormalsAsync()
    Returns
    Type Description
    Task

    A task which will complete once normal smoothing is finished.

    SmoothNormalsAsync()

    Performs normal smoothing on the current mesh filter associated with this component asynchronously. This method will not try and re-smooth meshes which have already been smoothed.

    Declaration
    public Task SmoothNormalsAsync()
    Returns
    Type Description
    Task

    A task which will complete once normal smoothing is finished.

    Implements

    MonoBehaviour
    In This Article
    • Methods
      • SmoothNormals()
      • SmoothNormals()
      • SmoothNormalsAsync()
      • SmoothNormalsAsync()
    • Implements
    Back to top Generated by DocFX