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