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;
void GetChildSharpnesses(Sdc::Crease const &, float s[2]) const
float getEdgeSharpness(Index edgeIndex) const
float * GetChildSharpnessPerEdge(Sdc::Crease const &crease, float cSharpness[]) const
float GetSharpness() const
void SetIndex(int edgeIndex)
float GetSharpness() const
ConstIndexArray getVertexFaces(Index vertIndex) const
float GetChildSharpness(Sdc::Crease const &) const
int GetNumVertices() const
ConstIndexArray getFaceVertices(Index faceIndex) const
float getVertexSharpness(Index vertIndex) const
void SubdivideEdgeSharpnessesAroundVertex(int incidentEdgeCountAtVertex, float const *incidentEdgeSharpnessAroundVertex, float *childEdgesSharpnessAroundVertex) const
void GetNumVerticesPerFace(int vertsPerFace[]) const
VertexInterface(Level const &parent, Level const &child)
ConstIndexArray getEdgeFaces(Index edgeIndex) const
void SetIndex(int parentIndex, int childIndex)
FaceInterface(int vertCount)
ConstIndexArray getVertexEdges(Index vertIndex) const
Types, constants and utilities related to semi-sharp creasing – whose implementation is independent ...
EdgeInterface(Level const &level)
float * GetSharpnessPerEdge(float pSharpness[]) const