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

#include <meshTopology.h>

+ Inheritance diagram for HdMeshTopology:

Public Member Functions

HD_API HdMeshTopology ()
 
HD_API HdMeshTopology (const HdMeshTopology &, int refineLevel=0)
 
HD_API HdMeshTopology (const PxOsdMeshTopology &, int refineLevel=0)
 
HD_API HdMeshTopology (const TfToken &scheme, const TfToken &orientation, const VtIntArray &faceVertexCounts, const VtIntArray &faceVertexIndices, int refineLevel=0)
 
HD_API HdMeshTopology (const TfToken &scheme, const TfToken &orientation, const VtIntArray &faceVertexCounts, const VtIntArray &faceVertexIndices, const VtIntArray &holeIndices, int refineLevel=0)
 
virtual HD_API ~HdMeshTopology ()
 
HD_API HdMeshTopologyoperator= (const HdMeshTopology &copy)
 
PxOsdMeshTopology const & GetPxOsdMeshTopology () const
 
HD_API int GetNumFaces () const
 Returns the num faces. More...
 
HD_API int GetNumFaceVaryings () const
 Returns the num facevarying primvars. More...
 
HD_API int GetNumPoints () const
 Returns the num points of the topology vert indices array. More...
 
TfToken const GetScheme () const
 Returns the subdivision scheme. More...
 
int GetRefineLevel () const
 Returns the refinement level. 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...
 
virtual HD_API ID ComputeHash () const
 Returns the hash value of this topology to be used for instancing. More...
 
HD_API bool operator== (HdMeshTopology const &other) const
 Equality check between two mesh topologies. More...
 
Hole
void SetHoleIndices (VtIntArray const &holeIndices)
 
VtIntArray const & GetHoleIndices () const
 Returns the hole face indices. More...
 
Subdivision
void SetSubdivTags (PxOsdSubdivTags const &subdivTags)
 Sets subdivision tags. More...
 
PxOsdSubdivTags const & GetSubdivTags () const
 Returns subdivision tags. More...
 
Geometry subsets
HD_API void SetGeomSubsets (HdGeomSubsets const &geomSubsets)
 Sets geometry subsets. More...
 
HD_API HdGeomSubsets const & GetGeomSubsets () const
 Returns geometry subsets. More...
 
Topological invisibility
HD_API void SetInvisiblePoints (VtIntArray const &invisiblePoints)
 
HD_API VtIntArray const & GetInvisiblePoints () const
 
HD_API void SetInvisibleFaces (VtIntArray const &invisibleFaces)
 
HD_API VtIntArray const & GetInvisibleFaces () const
 
- Public Member Functions inherited from HdTopology
 HdTopology ()
 
virtual ~HdTopology ()
 

Static Public Member Functions

static HD_API bool IsEnabledAdaptive ()
 Returns whether adaptive subdivision is enabled or not. More...
 
static HD_API int ComputeNumPoints (VtIntArray const &verts)
 Returns the num points by looking vert indices array. More...
 

Protected Attributes

PxOsdMeshTopology _topology
 
HdGeomSubsets _geomSubsets
 
VtIntArray _invisiblePoints
 
VtIntArray _invisibleFaces
 
int _refineLevel
 
int _numPoints
 

Additional Inherited Members

- Public Types inherited from HdTopology
typedef uint64_t ID
 

Detailed Description

Topology data for meshes.

HdMeshTopology holds the raw input topology data for a mesh and is capable of computing derivative topological data (such as indices or subdivision stencil tables and patch tables).

Definition at line 55 of file meshTopology.h.

Constructor & Destructor Documentation

HD_API HdMeshTopology::HdMeshTopology ( )
HD_API HdMeshTopology::HdMeshTopology ( const HdMeshTopology ,
int  refineLevel = 0 
)
HD_API HdMeshTopology::HdMeshTopology ( const PxOsdMeshTopology ,
int  refineLevel = 0 
)
HD_API HdMeshTopology::HdMeshTopology ( const TfToken scheme,
const TfToken orientation,
const VtIntArray &  faceVertexCounts,
const VtIntArray &  faceVertexIndices,
int  refineLevel = 0 
)
HD_API HdMeshTopology::HdMeshTopology ( const TfToken scheme,
const TfToken orientation,
const VtIntArray &  faceVertexCounts,
const VtIntArray &  faceVertexIndices,
const VtIntArray &  holeIndices,
int  refineLevel = 0 
)
virtual HD_API HdMeshTopology::~HdMeshTopology ( )
virtual

Member Function Documentation

virtual HD_API ID HdMeshTopology::ComputeHash ( ) const
virtual

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

Implements HdTopology.

static HD_API int HdMeshTopology::ComputeNumPoints ( VtIntArray const &  verts)
static

Returns the num points by looking vert indices array.

VtIntArray const& HdMeshTopology::GetFaceVertexCounts ( ) const
inline

Returns face vertex counts.

Definition at line 117 of file meshTopology.h.

VtIntArray const& HdMeshTopology::GetFaceVertexIndices ( ) const
inline

Returns face vertex indics.

Definition at line 122 of file meshTopology.h.

HD_API HdGeomSubsets const& HdMeshTopology::GetGeomSubsets ( ) const
inline

Returns geometry subsets.

Definition at line 184 of file meshTopology.h.

VtIntArray const& HdMeshTopology::GetHoleIndices ( ) const
inline

Returns the hole face indices.

Definition at line 150 of file meshTopology.h.

HD_API VtIntArray const& HdMeshTopology::GetInvisibleFaces ( ) const
inline

Definition at line 210 of file meshTopology.h.

HD_API VtIntArray const& HdMeshTopology::GetInvisiblePoints ( ) const
inline

Definition at line 200 of file meshTopology.h.

HD_API int HdMeshTopology::GetNumFaces ( ) const

Returns the num faces.

HD_API int HdMeshTopology::GetNumFaceVaryings ( ) const

Returns the num facevarying primvars.

HD_API int HdMeshTopology::GetNumPoints ( ) const

Returns the num points of the topology vert indices array.

TfToken const& HdMeshTopology::GetOrientation ( ) const
inline

Returns orientation.

Definition at line 127 of file meshTopology.h.

PxOsdMeshTopology const& HdMeshTopology::GetPxOsdMeshTopology ( ) const
inline

Definition at line 86 of file meshTopology.h.

int HdMeshTopology::GetRefineLevel ( ) const
inline

Returns the refinement level.

Definition at line 112 of file meshTopology.h.

TfToken const HdMeshTopology::GetScheme ( ) const
inline

Returns the subdivision scheme.

Definition at line 107 of file meshTopology.h.

PxOsdSubdivTags const& HdMeshTopology::GetSubdivTags ( ) const
inline

Returns subdivision tags.

Definition at line 166 of file meshTopology.h.

static HD_API bool HdMeshTopology::IsEnabledAdaptive ( )
static

Returns whether adaptive subdivision is enabled or not.

HD_API HdMeshTopology& HdMeshTopology::operator= ( const HdMeshTopology copy)
HD_API bool HdMeshTopology::operator== ( HdMeshTopology const &  other) const

Equality check between two mesh topologies.

HD_API void HdMeshTopology::SetGeomSubsets ( HdGeomSubsets const &  geomSubsets)
inline

Sets geometry subsets.

Definition at line 178 of file meshTopology.h.

void HdMeshTopology::SetHoleIndices ( VtIntArray const &  holeIndices)
inline

Sets hole face indices. faceIndices needs to be sorted in ascending order.

Definition at line 145 of file meshTopology.h.

HD_API void HdMeshTopology::SetInvisibleFaces ( VtIntArray const &  invisibleFaces)
inline

Definition at line 205 of file meshTopology.h.

HD_API void HdMeshTopology::SetInvisiblePoints ( VtIntArray const &  invisiblePoints)
inline

Definition at line 195 of file meshTopology.h.

void HdMeshTopology::SetSubdivTags ( PxOsdSubdivTags const &  subdivTags)
inline

Sets subdivision tags.

Definition at line 161 of file meshTopology.h.

Member Data Documentation

HdGeomSubsets HdMeshTopology::_geomSubsets
protected

Definition at line 217 of file meshTopology.h.

VtIntArray HdMeshTopology::_invisibleFaces
protected

Definition at line 219 of file meshTopology.h.

VtIntArray HdMeshTopology::_invisiblePoints
protected

Definition at line 218 of file meshTopology.h.

int HdMeshTopology::_numPoints
protected

Definition at line 221 of file meshTopology.h.

int HdMeshTopology::_refineLevel
protected

Definition at line 220 of file meshTopology.h.

PxOsdMeshTopology HdMeshTopology::_topology
protected

Definition at line 216 of file meshTopology.h.


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