MeVisLab Toolbox Reference
ml::WEMFaceCut Class 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< Vector3intermediatePoints
 Intermediate points. More...
 
std::vector< int > intermediateEdgeEntryNumbers
 Intermediate edge entry numbers. More...
 
std::vector< int > intermediateDegenerateEdgeEntryNumbers
 Intermediate degenerate edge entry numbers. More...
 

Detailed Description

Helper class for performing a cutting on a face.

Definition at line 30 of file WEMFaceCut.h.

Constructor & Destructor Documentation

◆ WEMFaceCut()

ml::WEMFaceCut::WEMFaceCut ( )

Standard constructor.

◆ ~WEMFaceCut()

ml::WEMFaceCut::~WEMFaceCut ( )

Standard destructor.

Member Function Documentation

◆ addIntermediatePoint()

void ml::WEMFaceCut::addIntermediatePoint ( Vector3  position,
int  entryNumber,
int  degenerateEntryNumber 
)

Adds a new intermediate point.

◆ checkSameEdge()

void ml::WEMFaceCut::checkSameEdge ( )

Updates the type to SAME_EDGE if entry and exit edge are the same.

◆ clear()

void ml::WEMFaceCut::clear ( )

Clears the internal structure.

◆ getEntryEdgeIndex()

int ml::WEMFaceCut::getEntryEdgeIndex ( ) const
inline

Returns the entry edge index.

Definition at line 48 of file WEMFaceCut.h.

◆ getEntryFaceIndex()

int ml::WEMFaceCut::getEntryFaceIndex ( ) const
inline

Returns the entry face index.

Definition at line 52 of file WEMFaceCut.h.

◆ getEntryPosition()

Vector3 ml::WEMFaceCut::getEntryPosition ( ) const
inline

Returns the entry position.

Definition at line 44 of file WEMFaceCut.h.

◆ getExitEdgeIndex()

int ml::WEMFaceCut::getExitEdgeIndex ( ) const
inline

Returns the exit edge index.

Definition at line 50 of file WEMFaceCut.h.

◆ getExitFaceIndex()

int ml::WEMFaceCut::getExitFaceIndex ( ) const
inline

Returns the exit face index.

Definition at line 54 of file WEMFaceCut.h.

◆ getExitPosition()

Vector3 ml::WEMFaceCut::getExitPosition ( ) const
inline

Returns the exit position.

Definition at line 46 of file WEMFaceCut.h.

◆ getType()

int ml::WEMFaceCut::getType ( ) const
inline

Returns the type.

Definition at line 42 of file WEMFaceCut.h.

◆ isContinuable() [1/2]

bool ml::WEMFaceCut::isContinuable ( int  edgeIndex,
int  degenerateEdgeIndex 
) const

Returns whether this face cut can be continued.

◆ isContinuable() [2/2]

bool ml::WEMFaceCut::isContinuable ( Vector3  position) const

Returns whether this face cut (stab) can be continued.

◆ isStabClosed()

bool ml::WEMFaceCut::isStabClosed ( Vector3  position) const

Returns whether the stab is closed.

◆ isTraversed()

bool ml::WEMFaceCut::isTraversed ( ) const
inline

Returns whether this face cut is traversed.

Definition at line 56 of file WEMFaceCut.h.

◆ isValid()

bool ml::WEMFaceCut::isValid ( void  ) const
inline

Returns whether this face cut is valid.

Definition at line 58 of file WEMFaceCut.h.

◆ setEntry()

void ml::WEMFaceCut::setEntry ( Vector3  position,
int  edgeIndex,
int  faceIndex 
)

Sets the entry.

◆ setExit()

void ml::WEMFaceCut::setExit ( Vector3  position,
int  edgeIndex,
int  faceIndex 
)

Sets the exit.

◆ setTraversed()

void ml::WEMFaceCut::setTraversed ( bool  traversed)
inline

Sets the traversed flag.

Definition at line 78 of file WEMFaceCut.h.

◆ setType()

void ml::WEMFaceCut::setType ( int  type)
inline

Sets the type.

Definition at line 68 of file WEMFaceCut.h.

◆ setValid()

void ml::WEMFaceCut::setValid ( bool  valid)
inline

Sets the valid flag.

Definition at line 80 of file WEMFaceCut.h.

Member Data Documentation

◆ intermediateDegenerateEdgeEntryNumbers

std::vector<int> ml::WEMFaceCut::intermediateDegenerateEdgeEntryNumbers

Intermediate degenerate edge entry numbers.

Definition at line 87 of file WEMFaceCut.h.

◆ intermediateEdgeEntryNumbers

std::vector<int> ml::WEMFaceCut::intermediateEdgeEntryNumbers

Intermediate edge entry numbers.

Definition at line 85 of file WEMFaceCut.h.

◆ intermediatePoints

std::vector<Vector3> ml::WEMFaceCut::intermediatePoints

Intermediate points.

Definition at line 83 of file WEMFaceCut.h.


The documentation for this class was generated from the following file: