docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SanitizedMeshSample

    A sanitizable version of a MeshSample. Enable automatic triangulation/handedness change/attribute interpolation conversion. IRestorable allows static data to be stored once for multiple samples in the case of animated meshes.

    Inheritance
    object
    ImageableSample
    XformableSample
    BoundableSample
    GprimSample
    PointBasedSample
    MeshSampleBase
    MeshSample
    SanitizedMeshSample
    Implements
    IArbitraryPrimvars
    ISanitizable
    IRestorable
    Inherited Members
    MeshSample.visibility
    MeshSample.purpose
    MeshSample.doubleSided
    MeshSample.orientation
    MeshSample.faceVertexCounts
    MeshSample.SetTriangles(int[])
    MeshSampleBase.faceVertexIndices
    MeshSampleBase.points
    MeshSampleBase.normals
    MeshSampleBase.tangents
    MeshSampleBase.ArbitraryPrimvars
    MeshSampleBase.GetArbitraryPrimvars()
    MeshSampleBase.AddPrimvars(List<string>)
    GprimSample.colors
    BoundableSample.extent
    XformableSample.xformOpOrder
    XformableSample.FromTransform(Transform)
    XformableSample.ConvertTransform()
    XformableSample.transform
    Namespace: Unity.Formats.USD
    Assembly: solution.dll
    Syntax
    public class SanitizedMeshSample : MeshSample, IArbitraryPrimvars, ISanitizable, IRestorable

    Methods

    Name Description
    BackupTopology()
    FromCachedData(IRestorableData)

    Restore internal data from a copy of the data held in Deserialization Context for animated meshes.

    IsRestoredFromCachedData()

    Returns true if the internal data has been restored from cached data

    IsTopologyBackedUp()
    Sanitize(Scene, SceneImportOptions)

    Sanitize Mesh data for Unity: * change basis * triangulate * convert vertices and attributes/primvar to facevarying if necessary

    ToCachedData()

    Create a copy of static data in a format that can be stored in a DeserializationContext.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)