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