docs.unity3d.com
    Show / Hide Table of Contents

    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

    Inheritance
    Object
    PrimvarBase
    Primvar<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Thursday, October 19, 2023