#include <Poly_CoherentLink.hxx>
Public Member Functions | |
Standard_EXPORT | Poly_CoherentLink () |
Poly_CoherentLink (const Standard_Integer iNode0, const Standard_Integer iNode1) | |
Standard_EXPORT | Poly_CoherentLink (const Poly_CoherentTriangle &theTri, Standard_Integer iSide) |
Standard_Integer | Node (const Standard_Integer ind) const |
Standard_Integer | OppositeNode (const Standard_Integer ind) const |
Standard_Address | GetAttribute () const |
void | SetAttribute (const Standard_Address theAtt) |
Standard_Boolean | IsEmpty () const |
void | Nullify () |
Private Attributes | |
Standard_Integer | myNode [2] |
Standard_Integer | myOppositeNode [2] |
Standard_Address | myAttribute |
Any Link can store an arbitrary pointer that is called Attribute.
|
Empty constructor. |
|
Constructor. Creates a Link that has no reference to 'opposite nodes'. This constructor is useful to create temporary object that is not inserted into any existing triangulation. |
|
Constructor, takes a triangle and a side. A link is created always such that myNode[0] < myNode[1]. Unlike the previous constructor, this one assigns the 'opposite node' fields. This constructor is used when a link is inserted into a Poly_CoherentTriangulation structure.
|
|
Query the attribute of the Link. |
|
Query the status of the link - if it is an invalid one. An invalid link has Node members equal to -1. |
|
Return the node index in the current triangulation.
|
|
Invalidate this Link. |
|
Return the opposite node (belonging to the left or right incident triangle) index in the current triangulation.
|
|
Set the attribute of the Link. |
|
|
|
|
|
|