Open CASCADE Technology 7.8.0
|
#include <Poly_CoherentTriangle.hxx>
Data class used in Poly_CoherentTriangultion. Implements a triangle with references to its neighbours.
Poly_CoherentTriangle::Poly_CoherentTriangle | ( | ) |
Empty constructor.
Poly_CoherentTriangle::Poly_CoherentTriangle | ( | const Standard_Integer | iNode0, |
const Standard_Integer | iNode1, | ||
const Standard_Integer | iNode2 | ||
) |
Constructor.
Standard_Integer Poly_CoherentTriangle::FindConnection | ( | const Poly_CoherentTriangle & | ) | const |
Returns the index of the connection with the given triangle, or -1 if not found.
|
inline |
Query the connected node on the given side. Returns -1 if there is no connection on the specified side.
|
inline |
Query the connected triangle on the given side. Returns NULL if there is no connection on the specified side.
|
inline |
Query the Link associate with the given side of the Triangle. May return NULL if there are no links in the triangulation.
|
inline |
Query if this is a valid triangle.
|
inline |
Query the number of connected triangles.
|
inline |
Query the node index in the position given by the parameter 'ind'
void Poly_CoherentTriangle::RemoveConnection | ( | const Standard_Integer | iConn | ) |
Remove the connection with the given index.
iConn | Can be 0, 1 or 2 - index of the node that is opposite to the connection (shared link). |
Standard_Boolean Poly_CoherentTriangle::RemoveConnection | ( | Poly_CoherentTriangle & | theTri | ) |
Remove the connection with the given Triangle.
Standard_Boolean Poly_CoherentTriangle::SetConnection | ( | const Standard_Integer | iConn, |
Poly_CoherentTriangle & | theTr | ||
) |
Create connection with another triangle theTri. This method creates both connections: in this triangle and in theTri. You do not need to call the same method on triangle theTr.
iConn | Can be 0, 1 or 2 - index of the node that is opposite to the connection (shared link). |
theTr | Triangle that is connected on the given link. |
Standard_Boolean Poly_CoherentTriangle::SetConnection | ( | Poly_CoherentTriangle & | theTri | ) |
Create connection with another triangle theTri. This method creates both connections: in this triangle and in theTri. This method is slower than the previous one, because it makes analysis what sides of both triangles are connected.
theTri | Triangle that is connected. |