24 #ifndef VTR_SPARSE_SELECTOR_H
25 #define VTR_SPARSE_SELECTOR_H
27 #include "../version.h"
29 #include "../vtr/types.h"
30 #include "../vtr/refinement.h"
34 namespace OpenSubdiv {
35 namespace OPENSUBDIV_VERSION {
81 bool wasEdgeSelected(
Index pEdge)
const {
return _refine->
_parentEdgeTag[pEdge]._selected; }
82 bool wasFaceSelected(
Index pFace)
const {
return _refine->
_parentFaceTag[pFace]._selected; }
85 void markEdgeSelected(
Index pEdge)
const { _refine->
_parentEdgeTag[pEdge]._selected =
true; }
86 void markFaceSelected(
Index pFace)
const { _refine->
_parentFaceTag[pFace]._selected =
true; }
88 void initializeSelection();
98 using namespace OPENSUBDIV_VERSION;
std::vector< SparseTag > _parentEdgeTag
bool isSelectionEmpty() const
void selectFace(Index pFace)
void selectEdge(Index pEdge)
Refinement & getRefinement() const
std::vector< SparseTag > _parentVertexTag
SparseSelector(Refinement &refine)
std::vector< SparseTag > _parentFaceTag
void selectVertex(Index pVertex)
void setRefinement(Refinement &refine)