24 #ifndef OPENSUBDIV3_VTR_REFINEMENT_H 25 #define OPENSUBDIV3_VTR_REFINEMENT_H 27 #include "../version.h" 29 #include "../sdc/types.h" 30 #include "../sdc/options.h" 31 #include "../vtr/types.h" 32 #include "../vtr/level.h" 40 namespace OPENSUBDIV_VERSION {
290 _faceVertices = enable;
292 _edgeVertices = enable;
294 _vertexFaces = enable;
295 _vertexEdges = enable;
453 using namespace OPENSUBDIV_VERSION;
Index getFirstChildVertexFromFaces() const
int getNumChildVerticesFromVertices() const
void reclassifySemisharpVertices()
ChildTag & getChildEdgeTag(Index e)
int _firstChildFaceFromFace
int getNumFVarChannels() const
int getNumChildEdgesFromFaces() const
FVarRefinement const & getFVarRefinement(int c) const
ChildTag & getChildVertexTag(Index v)
Index getChildFaceParentFace(Index f) const
SparseTag & getParentFaceSparseTag(Index f)
int _childFaceFromFaceCount
void markSparseChildComponentIndices()
virtual void markSparseFaceChildren()=0
Level const & parent() const
unsigned char _indexInParent
ChildTag & getChildFaceTag(Index f)
unsigned char _parentType
std::vector< SparseTag > _parentVertexTag
Sdc::Options getOptions() const
void populateEdgeTagsFromParentEdges()
std::vector< SparseTag > _parentFaceTag
IndexArray _faceChildFaceCountsAndOffsets
Split
Enumerated type for all face splitting scheme.
Index getChildEdgeParentIndex(Index e) const
int _childVertFromVertCount
unsigned int _vertexEdges
void populateVertexParentVectors(ChildTag const initialChildTags[2][4])
std::vector< ChildTag > _childEdgeTag
void populateEdgeTagsFromParentFaces()
std::vector< FVarRefinement * > _fvarChannels
void subdivideFVarChannels()
ChildTag const & getChildFaceTag(Index f) const
ConstArray< Index > ConstIndexArray
void initializeChildComponentCounts()
void populateFaceParentVectors(ChildTag const initialChildTags[2][4])
int _childVertFromFaceCount
void populateFaceParentFromParentFaces(ChildTag const initialChildTags[2][4])
virtual void allocateParentChildIndices()=0
IndexVector _vertChildVertIndex
void populateEdgeParentFromParentEdges(ChildTag const initialChildTags[2][4])
void populateEdgeParentFromParentFaces(ChildTag const initialChildTags[2][4])
Index getFirstChildFaceFromFaces() const
Index getFirstChildVertexFromEdges() const
void populateParentToChildMapping()
void markSparseVertexChildren()
int getChildFaceInParentFace(Index f) const
unsigned int _minimalTopology
virtual void populateVertexFaceRelation()=0
SparseTag & getParentEdgeSparseTag(Index e)
void refine(Options options=Options())
SparseTag const & getParentVertexSparseTag(Index v) const
int getNumChildFacesFromFaces() const
std::vector< ChildTag > _childVertexTag
void populateVertexParentFromParentVertices(ChildTag const initialChildTags[2][4])
virtual void populateEdgeVertexRelation()=0
void initializeSparseSelectionTags()
Index getVertexChildVertex(Index v) const
Index getChildVertexParentIndex(Index v) const
Sdc::Split getSplitType() const
int _childEdgeFromFaceCount
void subdivideTopology(Relations const &relationsToSubdivide)
virtual void populateVertexEdgeRelation()=0
int _firstChildVertFromVert
void populateVertexTagsFromParentVertices()
void populateFaceTagVectors()
bool hasFaceVerticesFirst() const
IndexVector _edgeChildEdgeIndices
Array< Index > IndexArray
Index getFaceChildVertex(Index f) const
All supported options applying to subdivision scheme.
void populateVertexParentFromParentFaces(ChildTag const initialChildTags[2][4])
std::vector< SparseTag > _parentEdgeTag
IndexVector _edgeChildVertIndex
SparseTag const & getParentEdgeSparseTag(Index e) const
int getNumChildVerticesFromFaces() const
void populateChildToParentMapping()
Index getFirstChildEdgeFromEdges() const
SparseTag & getParentVertexSparseTag(Index v)
virtual void populateFaceEdgeRelation()=0
void propagateComponentTags()
void printParentToChildMapping() const
ConstIndexArray getFaceChildEdges(Index parentFace) const
void subdivideSharpnessValues()
IndexArray _faceChildEdgeCountsAndOffsets
void print(const Refinement *parentRefinement=0) const
IndexVector _childFaceParentIndex
int _firstChildEdgeFromFace
unsigned int _faceVertsFirst
ConstIndexArray getEdgeChildEdges(Index parentEdge) const
Index getFirstChildVertexFromVertices() const
IndexVector _faceChildVertIndex
Index getEdgeChildVertex(Index e) const
int getNumChildEdgesFromEdges() const
void populateVertexTagsFromParentFaces()
IndexVector _faceChildEdgeIndices
SparseTag const & getParentFaceSparseTag(Index f) const
Refinement(Level const &parent, Level &child, Sdc::Options const &schemeOptions)
IndexVector _faceChildFaceIndices
void populateFaceTagsFromParentFaces()
unsigned int _vertexFaces
ChildTag const & getChildEdgeTag(Index e) const
void populateParentChildIndices()
unsigned char _transitional
Index getFirstChildEdgeFromFaces() const
void populateVertexTagVectors()
void populateEdgeParentVectors(ChildTag const initialChildTags[2][4])
int _firstChildVertFromFace
unsigned int _faceVertices
int _firstChildEdgeFromEdge
unsigned char _incomplete
virtual void populateEdgeFaceRelation()=0
void subdivideEdgeSharpness()
Level const & child() const
int getRegularFaceSize() const
IndexVector _childVertexParentIndex
ConstIndexArray getFaceChildFaces(Index parentFace) const
IndexVector _childEdgeParentIndex
std::vector< ChildTag > _childFaceTag
void markSparseEdgeChildren()
int _firstChildVertFromEdge
std::vector< Index > IndexVector
unsigned int _edgeVertices
int _childVertFromEdgeCount
bool isChildVertexComplete(Index v) const
int _childEdgeFromEdgeCount
void populateVertexTagsFromParentEdges()
virtual void populateFaceVertexRelation()=0
void subdivideVertexSharpness()
void populateVertexParentFromParentEdges(ChildTag const initialChildTags[2][4])
void populateEdgeTagVectors()
ChildTag const & getChildVertexTag(Index v) const
int getNumChildVerticesFromEdges() const