MeVisLabToolboxReference
|
Helper class for performing a cutting on a face. More...
#include <WEMFaceCut.h>
Public Member Functions | |
WEMFaceCut () | |
Standard constructor. | |
~WEMFaceCut () | |
Standard destructor. | |
void | clear () |
Clears the internal structure. | |
int | getType () const |
Returns the type. | |
Vector3 | getEntryPosition () const |
Returns the entry position. | |
Vector3 | getExitPosition () const |
Returns the exit position. | |
int | getEntryEdgeIndex () const |
Returns the entry edge index. | |
int | getExitEdgeIndex () const |
Returns the exit edge index. | |
int | getEntryFaceIndex () const |
Returns the entry face index. | |
int | getExitFaceIndex () const |
Returns the exit face index. | |
bool | isTraversed () const |
Returns whether this face cut is traversed. | |
bool | isValid () const |
Returns whether this face cut is valid. | |
bool | isContinuable (int edgeIndex, int degenerateEdgeIndex) const |
Returns whether this face cut can be continued. | |
bool | isContinuable (Vector3 position) const |
Returns whether this face cut (stab) can be continued. | |
bool | isStabClosed (Vector3 position) const |
Returns whether the stab is closed. | |
void | setType (int type) |
Sets the type. | |
void | checkSameEdge () |
Updates the type to SAME_EDGE if entry and exit edge are the same. | |
void | setEntry (Vector3 position, int edgeIndex, int faceIndex) |
Sets the entry. | |
void | setExit (Vector3 position, int edgeIndex, int faceIndex) |
Sets the exit. | |
void | addIntermediatePoint (Vector3 position, int entryNumber, int degenerateEntryNumber) |
Adds a new intermediate point. | |
void | setTraversed (bool traversed) |
Sets the traversed flag. | |
void | setValid (bool valid) |
Sets the valid flag. | |
Public Attributes | |
std::vector< Vector3 > | intermediatePoints |
Intermediate points. | |
std::vector< int > | intermediateEdgeEntryNumbers |
Intermediate edge entry numbers. | |
std::vector< int > | intermediateDegenerateEdgeEntryNumbers |
Intermediate degenerate edge entry numbers. |
Helper class for performing a cutting on a face.
Definition at line 30 of file WEMFaceCut.h.
ml::WEMFaceCut::WEMFaceCut | ( | ) |
Standard constructor.
ml::WEMFaceCut::~WEMFaceCut | ( | ) |
Standard destructor.
void ml::WEMFaceCut::addIntermediatePoint | ( | Vector3 | position, |
int | entryNumber, | ||
int | degenerateEntryNumber | ||
) |
Adds a new intermediate point.
void ml::WEMFaceCut::checkSameEdge | ( | ) |
Updates the type to SAME_EDGE if entry and exit edge are the same.
void ml::WEMFaceCut::clear | ( | ) |
Clears the internal structure.
int ml::WEMFaceCut::getEntryEdgeIndex | ( | ) | const [inline] |
Returns the entry edge index.
Definition at line 48 of file WEMFaceCut.h.
int ml::WEMFaceCut::getEntryFaceIndex | ( | ) | const [inline] |
Returns the entry face index.
Definition at line 52 of file WEMFaceCut.h.
Vector3 ml::WEMFaceCut::getEntryPosition | ( | ) | const [inline] |
Returns the entry position.
Definition at line 44 of file WEMFaceCut.h.
int ml::WEMFaceCut::getExitEdgeIndex | ( | ) | const [inline] |
Returns the exit edge index.
Definition at line 50 of file WEMFaceCut.h.
int ml::WEMFaceCut::getExitFaceIndex | ( | ) | const [inline] |
Returns the exit face index.
Definition at line 54 of file WEMFaceCut.h.
Vector3 ml::WEMFaceCut::getExitPosition | ( | ) | const [inline] |
Returns the exit position.
Definition at line 46 of file WEMFaceCut.h.
int ml::WEMFaceCut::getType | ( | ) | const [inline] |
Returns the type.
Definition at line 42 of file WEMFaceCut.h.
bool ml::WEMFaceCut::isContinuable | ( | int | edgeIndex, |
int | degenerateEdgeIndex | ||
) | const |
Returns whether this face cut can be continued.
bool ml::WEMFaceCut::isContinuable | ( | Vector3 | position | ) | const |
Returns whether this face cut (stab) can be continued.
bool ml::WEMFaceCut::isStabClosed | ( | Vector3 | position | ) | const |
Returns whether the stab is closed.
bool ml::WEMFaceCut::isTraversed | ( | ) | const [inline] |
Returns whether this face cut is traversed.
Definition at line 56 of file WEMFaceCut.h.
bool ml::WEMFaceCut::isValid | ( | void | ) | const [inline] |
Returns whether this face cut is valid.
Definition at line 58 of file WEMFaceCut.h.
void ml::WEMFaceCut::setEntry | ( | Vector3 | position, |
int | edgeIndex, | ||
int | faceIndex | ||
) |
Sets the entry.
void ml::WEMFaceCut::setExit | ( | Vector3 | position, |
int | edgeIndex, | ||
int | faceIndex | ||
) |
Sets the exit.
void ml::WEMFaceCut::setTraversed | ( | bool | traversed | ) | [inline] |
Sets the traversed flag.
Definition at line 78 of file WEMFaceCut.h.
void ml::WEMFaceCut::setType | ( | int | type | ) | [inline] |
Sets the type.
Definition at line 68 of file WEMFaceCut.h.
void ml::WEMFaceCut::setValid | ( | bool | valid | ) | [inline] |
Sets the valid flag.
Definition at line 80 of file WEMFaceCut.h.
std::vector<int> ml::WEMFaceCut::intermediateDegenerateEdgeEntryNumbers |
Intermediate degenerate edge entry numbers.
Definition at line 87 of file WEMFaceCut.h.
std::vector<int> ml::WEMFaceCut::intermediateEdgeEntryNumbers |
Intermediate edge entry numbers.
Definition at line 85 of file WEMFaceCut.h.
std::vector<Vector3> ml::WEMFaceCut::intermediatePoints |
Intermediate points.
Definition at line 83 of file WEMFaceCut.h.