24 #ifndef PXR_IMAGING_HD_MESH_TOPOLOGY_H
25 #define PXR_IMAGING_HD_MESH_TOPOLOGY_H
35 #include "pxr/base/vt/array.h"
66 const VtIntArray &faceVertexCounts,
67 const VtIntArray &faceVertexIndices,
72 const VtIntArray &faceVertexCounts,
73 const VtIntArray &faceVertexIndices,
74 const VtIntArray &holeIndices,
137 bool operator==(HdMeshTopology
const &other)
const;
227 #endif // PXR_IMAGING_HD_MESH_TOPOLOGY_H
HD_API int GetNumPoints() const
Returns the num points of the topology vert indices array.
HdGeomSubsets _geomSubsets
PxOsdMeshTopology _topology
PXOSD_API PxOsdMeshTopology WithSubdivTags(PxOsdSubdivTags const &tags) const
Return a copy of the topology, changing only the subdiv tags.
void SetSubdivTags(PxOsdSubdivTags const &subdivTags)
Sets subdivision tags.
HD_API int GetNumFaceVaryings() const
Returns the num facevarying primvars.
VtIntArray _invisibleFaces
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
TfToken const GetScheme() const
Returns the subdivision scheme.
HD_API bool operator==(HdMeshTopology const &other) const
Equality check between two mesh topologies.
static HD_API int ComputeNumPoints(VtIntArray const &verts)
Returns the num points by looking vert indices array.
std::shared_ptr< class HdMeshTopology > HdMeshTopologySharedPtr
VtIntArray const & GetFaceVertexCounts() const
Returns face vertex counts.
TfToken const & GetOrientation() const
Returns orientation.
TfToken const GetScheme() const
Returns the subdivision scheme.
HD_API void SetInvisiblePoints(VtIntArray const &invisiblePoints)
VtIntArray const & GetFaceVertexIndices() const
Returns face vertex indics.
VtIntArray const & GetHoleIndices() const
Returns the hole face indices.
HD_API void SetGeomSubsets(HdGeomSubsets const &geomSubsets)
Sets geometry subsets.
VtIntArray const & GetFaceVertexIndices() const
Returns face vertex indices.
VtIntArray const & GetHoleIndices() const
VtIntArray _invisiblePoints
PxOsdMeshTopology const & GetPxOsdMeshTopology() const
std::vector< HdGeomSubset > HdGeomSubsets
A group of geometry subsets.
HD_API VtIntArray const & GetInvisibleFaces() const
static HD_API bool IsEnabledAdaptive()
Returns whether adaptive subdivision is enabled or not.
VtIntArray const & GetFaceVertexCounts() const
Returns face vertex counts.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
PXOSD_API PxOsdMeshTopology WithHoleIndices(VtIntArray const &holeIndices) const
Return a copy of the topology, changing only the hole indices.
HD_API HdGeomSubsets const & GetGeomSubsets() const
Returns geometry subsets.
HD_API VtIntArray const & GetInvisiblePoints() const
PxOsdSubdivTags const & GetSubdivTags() const
Returns subdivision tags.
#define PXR_NAMESPACE_CLOSE_SCOPE
HD_API int GetNumFaces() const
Returns the num faces.
TfToken const & GetOrientation() const
Returns orientation.
int GetRefineLevel() const
Returns the refinement level.
virtual HD_API ID ComputeHash() const
Returns the hash value of this topology to be used for instancing.
void SetHoleIndices(VtIntArray const &holeIndices)
PxOsdSubdivTags const & GetSubdivTags() const
Returns subdivision tags.
HD_API void SetInvisibleFaces(VtIntArray const &invisibleFaces)
HD_API HdMeshTopology & operator=(const HdMeshTopology ©)
virtual HD_API ~HdMeshTopology()