Class PrimvarBase
The PrimvarBase class enables strongly typed access to non-generic fields. See the UsdGeom Primvar reference for details: http://graphics.pixar.com/usd/docs/api/class_usd_geom_primvar.html#details
Inherited Members
Namespace: USD.NET
Syntax
public class PrimvarBase
Fields
elementSize
The number of elements per interpolated value. For example, a mesh with a float4[] primvar per-vertex, should have an element size of 4. An int[] primvar should have elementSize of 1.
Declaration
[UsdMetadata]
public int elementSize
Field Value
Type | Description |
---|---|
Int32 |
indices
A primvar can be indexed, exactly like positions and indices in a mesh. These indices indicate individual values in the value array.
Declaration
[UsdMetadata]
public int[] indices
Field Value
Type | Description |
---|---|
Int32[] |
interpolation
Interpolation indicates how many values are present in the primvar value array and how those values are interpolated over the primative surface.
Declaration
[UsdMetadata]
public PrimvarInterpolation interpolation
Field Value
Type | Description |
---|---|
PrimvarInterpolation |
Methods
GetInterpolationToken()
A convenience method for converting the C# interpolation enum to a USD token.
Declaration
public TfToken GetInterpolationToken()
Returns
Type | Description |
---|---|
TfToken |
SetInterpolationToken(TfToken)
A convenience method for converting a USD token into C# interpolation enum
Declaration
public void SetInterpolationToken(TfToken token)
Parameters
Type | Name | Description |
---|---|---|
TfToken | token |