All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PxOsdMeshTopology Class Reference

Topology data for meshes. More...

Public Types

typedef uint64_t ID
 

Public Member Functions

PXOSD_API PxOsdMeshTopology (const PxOsdMeshTopology &)
 
PXOSD_API PxOsdMeshTopology (TfToken scheme, TfToken orientation, VtIntArray faceVertexCounts, VtIntArray faceVertexIndices)
 
PXOSD_API PxOsdMeshTopology (TfToken scheme, TfToken orientation, VtIntArray faceVertexCounts, VtIntArray faceVertexIndices, VtIntArray holeIndices)
 
TfToken const GetScheme () const
 Returns the subdivision scheme. More...
 
void SetScheme (TfToken const &scheme)
 Sets the subdivision scheme to be used during refinement. More...
 
VtIntArray const & GetFaceVertexCounts () const
 Returns face vertex counts. More...
 
VtIntArray const & GetFaceVertexIndices () const
 Returns face vertex indics. More...
 
TfToken const & GetOrientation () const
 Returns orientation. More...
 
PXOSD_API ID ComputeHash () const
 Returns the hash value of this topology to be used for instancing. More...
 
PXOSD_API bool operator== (PxOsdMeshTopology const &other) const
 Equality check between two mesh topologies. More...
 
Holes
PXOSD_API void SetHoleIndices (VtIntArray const &holeFaceIndices)
 Sets hole face indices for the control mesh. More...
 
VtIntArray const & GetHoleIndices () const
 Returns the hole face indices. More...
 
Tags
void SetSubdivTags (PxOsdSubdivTags const &subdivTags)
 Sets subdivision tags. More...
 
PxOsdSubdivTags const & GetSubdivTags () const
 Returns subdivision tags. More...
 
PxOsdSubdivTagsGetSubdivTags ()
 Returns subdivision tags (non-const) More...
 

Detailed Description

Topology data for meshes.

Definition at line 50 of file meshTopology.h.

Member Function Documentation

PXOSD_API ID ComputeHash ( ) const

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

VtIntArray const& GetFaceVertexCounts ( ) const
inline

Returns face vertex counts.

Definition at line 97 of file meshTopology.h.

VtIntArray const& GetFaceVertexIndices ( ) const
inline

Returns face vertex indics.

Definition at line 102 of file meshTopology.h.

VtIntArray const& GetHoleIndices ( ) const
inline

Returns the hole face indices.

Definition at line 123 of file meshTopology.h.

TfToken const& GetOrientation ( ) const
inline

Returns orientation.

Definition at line 107 of file meshTopology.h.

TfToken const GetScheme ( ) const
inline

Returns the subdivision scheme.

Definition at line 83 of file meshTopology.h.

PxOsdSubdivTags const& GetSubdivTags ( ) const
inline

Returns subdivision tags.

Definition at line 139 of file meshTopology.h.

PxOsdSubdivTags& GetSubdivTags ( )
inline

Returns subdivision tags (non-const)

Definition at line 144 of file meshTopology.h.

PXOSD_API bool operator== ( PxOsdMeshTopology const &  other) const

Equality check between two mesh topologies.

PXOSD_API void SetHoleIndices ( VtIntArray const &  holeFaceIndices)
inline

Sets hole face indices for the control mesh.

Definition at line 118 of file meshTopology.h.

void SetScheme ( TfToken const &  scheme)
inline

Sets the subdivision scheme to be used during refinement.

Valid values include: catmullClark, loop, bilinear.

Note that the token "catmark" is also supported for backward compatibility, but has been deprecated.

Definition at line 92 of file meshTopology.h.

void SetSubdivTags ( PxOsdSubdivTags const &  subdivTags)
inline

Sets subdivision tags.

Definition at line 134 of file meshTopology.h.


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