Poly_CoherentTriangle Class Reference
#include <Poly_CoherentTriangle.hxx>
Detailed Description
Data class used in Poly_CoherentTriangultion. Implements a triangle with references to its neighbours.
Constructor & Destructor Documentation
| Poly_CoherentTriangle::Poly_CoherentTriangle |
( |
|
) |
|
Member Function Documentation
Retuns the index of the connection with the given triangle, or -1 if not found.
Query the connected node on the given side. Returns -1 if there is no connection on the specified side.
Query the connected triangle on the given side. Returns NULL if there is no connection on the specified side.
Query the Link associate with the given side of the Triangle. May return NULL if there are no links in the triangulation.
Set the Node at the given position 'ind'. Query if this is a valid triangle.
Query the number of connected triangles.
Query the node index in the position given by the parameter 'ind'
Remove the connection with the given Triangle.
- Returns:
- True if successfuol or False if the connection has not been found.
Remove the connection with the given index.
- Parameters:
-
| iConn | Can be 0, 1 or 2 - index of the node that is opposite to the connection (shared link). |
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.
- Parameters:
-
| theTri | Triangle that is connected. |
- Returns:
- True if successful, False if the connection is rejected due to improper topology.
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.
- Parameters:
-
| 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. |
- Returns:
- True if successful, False if the connection is rejected due to improper topology.
The documentation for this class was generated from the following file: