24 #ifndef PXR_IMAGING_PX_OSD_MESH_TOPOLOGY_H
25 #define PXR_IMAGING_PX_OSD_MESH_TOPOLOGY_H
34 #include "pxr/base/vt/array.h"
89 VtIntArray
const& faceVertexCounts,
90 VtIntArray
const& faceVertexIndices);
97 VtIntArray
const& faceVertexCounts,
98 VtIntArray
const& faceVertexIndices,
99 VtIntArray
const& holeIndices);
106 VtIntArray
const& faceVertexCounts,
107 VtIntArray
const& faceVertexIndices,
108 VtIntArray
const& holeIndices,
116 VtIntArray
const& faceVertexCounts,
117 VtIntArray
const& faceVertexIndices,
129 return _faceVertexCounts;
134 return _faceVertexIndices;
229 VtIntArray _faceVertexCounts;
230 VtIntArray _faceVertexIndices;
231 VtIntArray _holeIndices;
236 std::atomic<bool>
value;
238 _Validated() :
value(false) {}
239 _Validated(
const _Validated& other) :
value(other.
value.load()) {}
240 _Validated(_Validated&& other) :
value(other.
value.load()) {
243 _Validated&
operator=(
const _Validated& other) {
244 value.store(other.value.load());
247 _Validated&
operator=(_Validated&& other) {
248 value.store(other.value.load());
258 mutable _Validated _validated;
269 #endif // PXR_IMAGING_PX_OSD_MESH_TOPOLOGY_H
PXOSD_API PxOsdMeshTopology WithSubdivTags(PxOsdSubdivTags const &tags) const
Return a copy of the topology, changing only the subdiv tags.
PXOSD_API PxOsdMeshTopologyValidation Validate() const
TfToken const GetScheme() const
Returns the subdivision scheme.
GLsizei const GLfloat * value
VtIntArray const & GetFaceVertexCounts() const
Returns face vertex counts.
TfToken const & GetOrientation() const
Returns orientation.
~PxOsdMeshTopology()=default
PXOSD_API std::ostream & operator<<(std::ostream &out, PxOsdMeshTopology const &)
PXOSD_API bool operator==(PxOsdMeshTopology const &other) const
Equality check between two mesh topologies.
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
VtIntArray const & GetFaceVertexIndices() const
Returns face vertex indices.
VtIntArray const & GetHoleIndices() const
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.
#define PXR_NAMESPACE_CLOSE_SCOPE
PXOSD_API PxOsdMeshTopology WithScheme(TfToken const &scheme) const
PxOsdMeshTopology & operator=(const PxOsdMeshTopology &)=default
PXOSD_API PxOsdMeshTopology()
PxOsdSubdivTags const & GetSubdivTags() const
Returns subdivision tags.
PXOSD_API ID ComputeHash() const
Returns the hash value of this topology to be used for instancing.
constexpr FMT_INLINE value()