42 inline int getType()
const {
return _type; }
58 inline bool isValid()
const {
return _valid; }
68 inline void setType(
int type) { _type = type; }
80 inline void setValid(
bool valid) { _valid = valid; }
Helper class for performing a cutting on a face.
void clear()
Clears the internal structure.
void setValid(bool valid)
Sets the valid flag.
Vector3 getExitPosition() const
Returns the exit position.
void checkSameEdge()
Updates the type to SAME_EDGE if entry and exit edge are the same.
std::vector< Vector3 > intermediatePoints
Intermediate points.
void setType(int type)
Sets the type.
Vector3 getEntryPosition() const
Returns the entry position.
void setTraversed(bool traversed)
Sets the traversed flag.
bool isValid() const
Returns whether this face cut is valid.
void setEntry(Vector3 position, int edgeIndex, int faceIndex)
Sets the entry.
std::vector< int > intermediateEdgeEntryNumbers
Intermediate edge entry numbers.
~WEMFaceCut()
Standard destructor.
WEMFaceCut()
Standard constructor.
int getType() const
Returns the type.
bool isContinuable(int edgeIndex, int degenerateEdgeIndex) const
Returns whether this face cut can be continued.
int getEntryFaceIndex() const
Returns the entry face index.
int getEntryEdgeIndex() const
Returns the entry edge index.
std::vector< int > intermediateDegenerateEdgeEntryNumbers
Intermediate degenerate edge entry numbers.
bool isStabClosed(Vector3 position) const
Returns whether the stab is closed.
int getExitFaceIndex() const
Returns the exit face index.
void addIntermediatePoint(Vector3 position, int entryNumber, int degenerateEntryNumber)
Adds a new intermediate point.
bool isContinuable(Vector3 position) const
Returns whether this face cut (stab) can be continued.
int getExitEdgeIndex() const
Returns the exit edge index.
bool isTraversed() const
Returns whether this face cut is traversed.
void setExit(Vector3 position, int edgeIndex, int faceIndex)
Sets the exit.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
const int WEMFACECUT_STAB
Local cut definition: stab.
const int WEMFACECUT_SINGLE_INTERMEDIATE
Local cut definition: single intermediate.
const int WEMFACECUT_SAME_EDGE
Local cut definition: same edge.
const int WEMFACECUT_MULTI_INTERMEDIATE
Local cut definition: multi intermediate.
const int WEMFACECUT_SINGLE_PART
Local cut definition: single part.