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