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