126 inline bool isBoundary()
const {
return ((_lFace ==
nullptr) || (_rFace ==
nullptr)); }
Defines the mesh component: edge.
~WEMEdge() override
Standard destructor.
const WEMNode * getTail() const
Returns tail node.
WEMFace * getLFace()
Returns left face.
WEMTriangle * getLTriangle()
Returns left face as triangle.
void setHead(WEMNode *head)
Sets head node.
void setRFace(WEMFace *rFace)
Sets right face.
void setTail(WEMNode *tail)
Sets tail node.
WEMEdge * getRSucc()
Returns rSucc.
bool contains(WEMNode *node) const
Returns whether this edges contains the given node.
const WEMFace * getOther(WEMFace *face) const
Returns other face.
const WEMTriangle * getLTriangle() const
Returns left face as triangle.
double getDihedralAngle() const
Computes and returns the edge's dihedral angle.
const WEMEdge * getLSucc() const
Returns lSucc.
const WEMEdge * getLPred() const
Returns lPred.
void setRPred(WEMEdge *rPred)
Sets rPred.
const WEMTriangle * getRTriangle() const
Returns right face as triangle.
void reset()
Resets the object to default constructed state.
WEMFace * getOther(WEMFace *face)
Returns other face.
WEMNode * getHead()
Returns head node.
double getDotAngle() const
Calculates angle between two incident faces.
WEMEdge(const WEMEdge &e)
Copy constructor.
const WEMNode * getOther(WEMNode *node) const
Returns other node.
WEMFace * getRFace()
Returns right face.
WEMEdge * getLSucc()
Returns lSucc.
void replace(WEMEdge *orig, WEMEdge *replacement)
Replaces the pointer orig by replacement to an edge.
void setLPred(WEMEdge *lPred)
Sets lPred.
void setRSucc(WEMEdge *rSucc)
Sets rSucc.
const WEMNode * getHead() const
Returns head node.
WEMTriangle * getOther(WEMTriangle *triangle)
Returns other face.
void setLSucc(WEMEdge *lSucc)
Sets lSucc.
WEMEdge * getRPred()
Returns rPred.
WEMNode * getOther(WEMNode *node)
Returns other node.
double getLength() const
Computes the length of edge.
WEMEdge()
Standard constructor.
void setLFace(WEMFace *lFace)
Sets left face.
void replace(WEMFace *orig, WEMFace *replacement)
Replaces the pointer orig by replacement to a face.
WEMNode * getTail()
Returns tail node.
const WEMEdge * getRSucc() const
Returns rSucc.
bool isBoundary() const
Returns whether this is edge is a boundary edge.
const WEMEdge * getRPred() const
Returns rPred.
WEMEdge * getLPred()
Returns lPred.
const WEMTriangle * getOther(WEMTriangle *triangle) const
Returns other face.
void clone(WEMEdge *e)
Clones given edge.
WEMEdge(WEMEdge &&e) noexcept
void replace(WEMNode *orig, WEMNode *replacement)
Replaces the pointer orig by replacement to a node.
WEMTriangle * getRTriangle()
Returns right face as triangle.
const WEMFace * getLFace() const
Returns left face.
WEMEdge & operator=(WEMEdge &&e) noexcept
const WEMFace * getRFace() const
Returns right face.
Defines the mesh component: face.
Defines the mesh component: node.
This is the base class for the WEM elements nodes, edges, and faces.
Defines the mesh component: triangle.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.