24 #ifndef OPENSUBDIV3_VTR_COMPONENT_INTERFACES_H 25 #define OPENSUBDIV3_VTR_COMPONENT_INTERFACES_H 27 #include "../version.h" 29 #include "../sdc/types.h" 30 #include "../sdc/crease.h" 31 #include "../vtr/types.h" 32 #include "../vtr/stackBuffer.h" 38 namespace OPENSUBDIV_VERSION {
79 void SetIndex(
int edgeIndex) { _eIndex = edgeIndex; }
92 for (
int i = 0; i < eFaces.
size(); ++i) {
114 _pIndex = parentIndex;
115 _cIndex = childIndex;
127 for (
int i = 0; i < _eCount; ++i) {
142 const Level* _parent;
155 using namespace OPENSUBDIV_VERSION;
float * GetSharpnessPerEdge(float pSharpness[]) const
ConstIndexArray getVertexFaces(Index vertIndex) const
float GetChildSharpness(Sdc::Crease const &) const
FaceInterface(int vertCount)
float getEdgeSharpness(Index edgeIndex) const
void SetIndex(int edgeIndex)
EdgeInterface(Level const &level)
ConstIndexArray getFaceVertices(Index faceIndex) const
float GetSharpness() const
VertexInterface(Level const &parent, Level const &child)
float * GetChildSharpnessPerEdge(Sdc::Crease const &crease, float cSharpness[]) const
void GetChildSharpnesses(Sdc::Crease const &, float s[2]) const
void SubdivideEdgeSharpnessesAroundVertex(int incidentEdgeCountAtVertex, float const *incidentEdgeSharpnessAroundVertex, float *childEdgesSharpnessAroundVertex) const
void GetNumVerticesPerFace(int vertsPerFace[]) const
ConstIndexArray getEdgeFaces(Index edgeIndex) const
Types, constants and utilities related to semi-sharp creasing – whose implementation is independent o...
float getVertexSharpness(Index vertIndex) const
int GetNumVertices() const
void SetIndex(int parentIndex, int childIndex)
float GetSharpness() const
ConstIndexArray getVertexEdges(Index vertIndex) const