Loading...
Searching...
No Matches
PxOsdSubdivTags Class Reference

Tags for non-hierarchial subdiv surfaces. More...

#include <subdivTags.h>

Public Types

typedef size_t ID
 

Public Member Functions

 PxOsdSubdivTags (PxOsdSubdivTags const &)=default
 
 PxOsdSubdivTags (PxOsdSubdivTags &&)=default
 
PxOsdSubdivTagsoperator= (PxOsdSubdivTags const &)=default
 
PxOsdSubdivTagsoperator= (PxOsdSubdivTags &&)=default
 
 PxOsdSubdivTags (const TfToken &vertexInterpolationRule, const TfToken &faceVaryingInterpolationRule, const TfToken &creaseMethod, const TfToken &triangleSubdivision, const VtIntArray &creaseIndices, const VtIntArray &creaseLengths, const VtFloatArray &creaseWeights, const VtIntArray &cornerIndices, const VtFloatArray &cornerWeights)
 
TfToken GetVertexInterpolationRule () const
 Returns the vertex boundary interpolation rule.
 
void SetVertexInterpolationRule (TfToken vtxInterp)
 Set the vertex boundary interpolation rule.
 
TfToken GetFaceVaryingInterpolationRule () const
 Returns the face-varying boundary interpolation rule.
 
void SetFaceVaryingInterpolationRule (TfToken fvarInterp)
 Set the face-varying boundary interpolation rule.
 
TfToken GetCreaseMethod () const
 Returns the creasing method.
 
void SetCreaseMethod (TfToken creaseMethod)
 Set the creasing method.
 
TfToken GetTriangleSubdivision () const
 Returns the triangle subdivision method.
 
void SetTriangleSubdivision (TfToken triangleSubdivision)
 Set the triangle subdivision method.
 
PXOSD_API ID ComputeHash () const
 Returns the hash value of this topology to be used for instancing.
 
Crease
VtIntArray const & GetCreaseIndices () const
 Returns the edge crease indices.
 
void SetCreaseIndices (VtIntArray const &creaseIndices)
 Set the edge crease indices.
 
VtIntArray const & GetCreaseLengths () const
 Returns the edge crease loop lengths.
 
void SetCreaseLengths (VtIntArray const &creaseLengths)
 Set the edge crease loop lengths.
 
VtFloatArray const & GetCreaseWeights () const
 Returns the edge crease weights.
 
void SetCreaseWeights (VtFloatArray const &creaseWeights)
 Set the edge crease weights.
 
Corner
VtIntArray const & GetCornerIndices () const
 Returns the edge corner indices.
 
void SetCornerIndices (VtIntArray const &cornerIndices)
 Set the edge corner indices.
 
VtFloatArray const & GetCornerWeights () const
 Returns the edge corner weights.
 
void SetCornerWeights (VtFloatArray const &cornerWeights)
 Set the edge corner weights.
 

Detailed Description

Tags for non-hierarchial subdiv surfaces.

Definition at line 43 of file subdivTags.h.

Member Typedef Documentation

◆ ID

typedef size_t ID

Definition at line 175 of file subdivTags.h.

Constructor & Destructor Documentation

◆ PxOsdSubdivTags()

PxOsdSubdivTags ( const TfToken vertexInterpolationRule,
const TfToken faceVaryingInterpolationRule,
const TfToken creaseMethod,
const TfToken triangleSubdivision,
const VtIntArray &  creaseIndices,
const VtIntArray &  creaseLengths,
const VtFloatArray &  creaseWeights,
const VtIntArray &  cornerIndices,
const VtFloatArray &  cornerWeights 
)
inline

Definition at line 53 of file subdivTags.h.

Member Function Documentation

◆ ComputeHash()

PXOSD_API ID ComputeHash ( ) const

Returns the hash value of this topology to be used for instancing.

◆ GetCornerIndices()

VtIntArray const & GetCornerIndices ( ) const
inline

Returns the edge corner indices.

Definition at line 155 of file subdivTags.h.

◆ GetCornerWeights()

VtFloatArray const & GetCornerWeights ( ) const
inline

Returns the edge corner weights.

Definition at line 165 of file subdivTags.h.

◆ GetCreaseIndices()

VtIntArray const & GetCreaseIndices ( ) const
inline

Returns the edge crease indices.

Definition at line 119 of file subdivTags.h.

◆ GetCreaseLengths()

VtIntArray const & GetCreaseLengths ( ) const
inline

Returns the edge crease loop lengths.

Definition at line 129 of file subdivTags.h.

◆ GetCreaseMethod()

TfToken GetCreaseMethod ( ) const
inline

Returns the creasing method.

Definition at line 94 of file subdivTags.h.

◆ GetCreaseWeights()

VtFloatArray const & GetCreaseWeights ( ) const
inline

Returns the edge crease weights.

Definition at line 139 of file subdivTags.h.

◆ GetFaceVaryingInterpolationRule()

TfToken GetFaceVaryingInterpolationRule ( ) const
inline

Returns the face-varying boundary interpolation rule.

Definition at line 84 of file subdivTags.h.

◆ GetTriangleSubdivision()

TfToken GetTriangleSubdivision ( ) const
inline

Returns the triangle subdivision method.

Definition at line 104 of file subdivTags.h.

◆ GetVertexInterpolationRule()

TfToken GetVertexInterpolationRule ( ) const
inline

Returns the vertex boundary interpolation rule.

Definition at line 74 of file subdivTags.h.

◆ SetCornerIndices()

void SetCornerIndices ( VtIntArray const &  cornerIndices)
inline

Set the edge corner indices.

Definition at line 160 of file subdivTags.h.

◆ SetCornerWeights()

void SetCornerWeights ( VtFloatArray const &  cornerWeights)
inline

Set the edge corner weights.

Definition at line 170 of file subdivTags.h.

◆ SetCreaseIndices()

void SetCreaseIndices ( VtIntArray const &  creaseIndices)
inline

Set the edge crease indices.

Definition at line 124 of file subdivTags.h.

◆ SetCreaseLengths()

void SetCreaseLengths ( VtIntArray const &  creaseLengths)
inline

Set the edge crease loop lengths.

Definition at line 134 of file subdivTags.h.

◆ SetCreaseMethod()

void SetCreaseMethod ( TfToken  creaseMethod)
inline

Set the creasing method.

Definition at line 99 of file subdivTags.h.

◆ SetCreaseWeights()

void SetCreaseWeights ( VtFloatArray const &  creaseWeights)
inline

Set the edge crease weights.

Definition at line 144 of file subdivTags.h.

◆ SetFaceVaryingInterpolationRule()

void SetFaceVaryingInterpolationRule ( TfToken  fvarInterp)
inline

Set the face-varying boundary interpolation rule.

Definition at line 89 of file subdivTags.h.

◆ SetTriangleSubdivision()

void SetTriangleSubdivision ( TfToken  triangleSubdivision)
inline

Set the triangle subdivision method.

Definition at line 109 of file subdivTags.h.

◆ SetVertexInterpolationRule()

void SetVertexInterpolationRule ( TfToken  vtxInterp)
inline

Set the vertex boundary interpolation rule.

Definition at line 79 of file subdivTags.h.


The documentation for this class was generated from the following file: