|
PXOSD_API | PxOsdMeshTopology () |
|
PxOsdMeshTopology & | operator= (const PxOsdMeshTopology &)=default |
|
| PxOsdMeshTopology (const PxOsdMeshTopology &)=default |
|
| PxOsdMeshTopology (PxOsdMeshTopology &&)=default |
|
PxOsdMeshTopology & | operator= (PxOsdMeshTopology &&)=default |
|
| ~PxOsdMeshTopology ()=default |
|
PXOSD_API | PxOsdMeshTopology (TfToken const &scheme, TfToken const &orientation, VtIntArray const &faceVertexCounts, VtIntArray const &faceVertexIndices) |
| Construct a topology without holes or subdiv tags. More...
|
|
PXOSD_API | PxOsdMeshTopology (TfToken const &scheme, TfToken const &orientation, VtIntArray const &faceVertexCounts, VtIntArray const &faceVertexIndices, VtIntArray const &holeIndices) |
| Construct a topology with holes. More...
|
|
PXOSD_API | PxOsdMeshTopology (TfToken const &scheme, TfToken const &orientation, VtIntArray const &faceVertexCounts, VtIntArray const &faceVertexIndices, VtIntArray const &holeIndices, PxOsdSubdivTags const &subdivTags) |
| Construct a topology with holes and subdiv tags. More...
|
|
PXOSD_API | PxOsdMeshTopology (TfToken const &scheme, TfToken const &orientation, VtIntArray const &faceVertexCounts, VtIntArray const &faceVertexIndices, PxOsdSubdivTags const &subdivTags) |
| Construct a topology with subdiv tags. More...
|
|
TfToken const | GetScheme () const |
| Returns the subdivision scheme. More...
|
|
VtIntArray const & | GetFaceVertexCounts () const |
| Returns face vertex counts. More...
|
|
VtIntArray const & | GetFaceVertexIndices () const |
| Returns face vertex indices. More...
|
|
TfToken const & | GetOrientation () const |
| Returns orientation. More...
|
|
PXOSD_API PxOsdMeshTopology | WithScheme (TfToken const &scheme) const |
|
PXOSD_API PxOsdMeshTopology | WithSubdivTags (PxOsdSubdivTags const &tags) const |
| Return a copy of the topology, changing only the subdiv tags. More...
|
|
PXOSD_API PxOsdMeshTopology | WithHoleIndices (VtIntArray const &holeIndices) const |
| Return a copy of the topology, changing only the hole indices. 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...
|
|
PXOSD_API
PxOsdMeshTopologyValidation | Validate () const |
|
|
Returns the hole face indices.
|
VtIntArray const & | GetHoleIndices () const |
|
|
PxOsdSubdivTags const & | GetSubdivTags () const |
| Returns subdivision tags. More...
|
|
Topology data for meshes.
Once constructed, this class is immutable (except when assigned or moved).
To make changing certain properties easier, several methods are provided. WithScheme, WithHoleIndices, and WithSubdivTags will return copies of the object with certain specific properites changed.
originalTopology.
WithScheme(PxOsdOpenSubdivTokens->catmullClark);
PxOsdOpenSubdivTokens->catmullClark);
originalTopology.GetOrientation());
originalTopology.GetSubdivTags());
originalTopology.GetFaceVertexCounts());
originalTopology.GetFaceVertexIndices());
The cost of copying should be mitigated by the copy semantics of VtArray and TfToken.
Definition at line 69 of file meshTopology.h.