24 #ifndef PXR_IMAGING_HD_BASIS_CURVES_TOPOLOGY_H
25 #define PXR_IMAGING_HD_BASIS_CURVES_TOPOLOGY_H
33 #include "pxr/base/vt/array.h"
88 const VtIntArray &curveVertexCounts,
89 const VtIntArray &curveIndices);
99 _invisiblePoints = invisiblePoints;
104 return _invisiblePoints;
109 _invisibleCurves = invisibleCurves;
114 return _invisibleCurves;
120 return _curveVertexCounts;
125 return _curveIndices;
130 return _curveVertexCounts.size();
153 bool operator==(HdBasisCurvesTopology
const &other)
const;
155 bool operator!=(HdBasisCurvesTopology
const &other)
const;
169 VtIntArray _curveVertexCounts;
170 VtIntArray _curveIndices;
171 VtIntArray _invisiblePoints;
172 VtIntArray _invisibleCurves;
182 #endif // PXR_IMAGING_HD_BASIS_CURVES_TOPOLOGY_H
HD_API bool operator==(HdBasisCurvesTopology const &other) const
Equality check between two basisCurves topologies.
size_t GetNumCurves() const
Returns the number of curves.
HD_API std::ostream & operator<<(std::ostream &out, HdBasisCurvesTopology const &topo)
virtual HD_API ID ComputeHash() const
Returns the hash value of this topology to be used for instancing.
HD_API HdBasisCurvesTopology()
virtual HD_API ~HdBasisCurvesTopology()
bool HasIndices() const
Does the topology use an index buffer.
HD_API size_t GetNumPoints() const
Returns the number of points implied by vertex counts and indices.
HD_API size_t CalculateNeededNumberOfControlPoints() const
Figure out how many vertices / control points this topology references.
HD_API bool operator!=(HdBasisCurvesTopology const &other) const
HD_API void SetInvisibleCurves(VtIntArray const &invisibleCurves)
TfToken GetCurveWrap() const
HD_API void SetInvisiblePoints(VtIntArray const &invisiblePoints)
VtIntArray const & GetCurveIndices() const
Returns indices.
TfToken GetCurveType() const
See class documentation for valid combination of values.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
TfToken GetCurveBasis() const
#define PXR_NAMESPACE_CLOSE_SCOPE
VtIntArray const & GetCurveVertexCounts() const
Returns segment vertex counts.
HD_API VtIntArray const & GetInvisiblePoints() const
HD_API size_t CalculateNeededNumberOfVaryingControlPoints() const
Figure out how many control points with varying data this topology needs.
HD_API VtIntArray const & GetInvisibleCurves() const