43 inline int getType()
const {
return _type; }
55 inline bool isDegenerate()
const {
return ((_degenerateEntryEdge != -1) || (_degenerateExitEdge != -1)); }
82 int _degenerateEntryEdge;
84 int _degenerateExitEdge;
Defines the mesh component: face.
Class for managing partial face cuts.
Vector3 getEntryPosition() const
Returns the entry position.
int getType() const
Returns the type.
void setRemoteEntry(Vector3 entryPosition, int entryEdge, WEMFace *face)
Sets the entry and checks whether it is degenerate. Remote: edge entry numbers are used.
WEMPartialFaceCut(int type, int cuttingFace)
Create new partial face cut with given parameters.
int getCuttingFace() const
Returns the entry face.
int getExitEdge() const
Returns the exit edge.
int getEntryEdge() const
Returns the entry edge.
void setLocalEntry(Vector3 entryPosition, int entryEdge, WEMFace *face)
Sets the entry and checks whether it is degenerate. Local: local indices are used.
WEMPartialFaceCut(int type, int cuttingFace, Vector3 entryPosition, int entryEdge, Vector3 exitPosition, int exitEdge)
Create new partial face cut with given parameters.
void setRemoteExit(Vector3 exitPosition, int exitEdge, WEMFace *face)
Sets the exit and checks whether it is degenerate. Remote: edge entry numbers are used.
Vector3 getExitPosition() const
Returns the exit position.
void setLocalExit(Vector3 exitPosition, int exitEdge, WEMFace *face)
Sets the exit and checks whether it is degenerate. Local: local indices are used.
bool isDegenerate() const
Returns whether this partial face cut is degenerated.
int getDegenerateExitEdge() const
Returns the degenerate exit edge.
int getDegenerateEntryEdge() const
Returns the degenerate entry edge.
WEMPartialFaceCut()
Standard constructor.
~WEMPartialFaceCut()
Standard destructor.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
const int WEMPARTIALFACECUT_CLOSED
Local definition: closed cut.
const int WEMPARTIALFACECUT_HALF_OPEN
Local definition: half open cut.
const int WEMPARTIALFACECUT_OPEN
Local definition: open cut.