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
ImageableSample
XformableSample
BoundableSample
GprimSample
PointBasedSample
MeshSampleBase
MeshSample
SanitizedMeshSample
Inherited Members
MeshSample.visibility
MeshSample.purpose
MeshSample.doubleSided
MeshSample.orientation
MeshSample.faceVertexCounts
MeshSampleBase.faceVertexIndices
MeshSampleBase.points
MeshSampleBase.normals
MeshSampleBase.tangents
MeshSampleBase.ArbitraryPrimvars
MeshSampleBase.GetArbitraryPrimvars()
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. |