MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
ml::WEMFaceCut Class Reference

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.
 

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 56 of file WEMFaceCut.h.

◆ getEntryFaceIndex()

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

Returns the entry face index.

Definition at line 66 of file WEMFaceCut.h.

◆ getEntryPosition()

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

Returns the entry position.

Definition at line 46 of file WEMFaceCut.h.

◆ getExitEdgeIndex()

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

Returns the exit edge index.

Definition at line 61 of file WEMFaceCut.h.

◆ getExitFaceIndex()

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

Returns the exit face index.

Definition at line 71 of file WEMFaceCut.h.

◆ getExitPosition()

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

Returns the exit position.

Definition at line 51 of file WEMFaceCut.h.

◆ getType()

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

Returns the type.

Definition at line 41 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 76 of file WEMFaceCut.h.

◆ isValid()

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

Returns whether this face cut is valid.

Definition at line 81 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 107 of file WEMFaceCut.h.

References mlrange_cast().

◆ setType()

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

Sets the type.

Definition at line 94 of file WEMFaceCut.h.

◆ setValid()

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

Sets the valid flag.

Definition at line 112 of file WEMFaceCut.h.

Member Data Documentation

◆ intermediateDegenerateEdgeEntryNumbers

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

Intermediate degenerate edge entry numbers.

Definition at line 122 of file WEMFaceCut.h.

◆ intermediateEdgeEntryNumbers

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

Intermediate edge entry numbers.

Definition at line 120 of file WEMFaceCut.h.

◆ intermediatePoints

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

Intermediate points.

Definition at line 118 of file WEMFaceCut.h.


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