![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Provides an algorithm to explore, inside a triangulation, the adjacency data for a node or a triangle. Adjacency data for a node consists of triangles which contain the node. Adjacency data for a triangle consists of: More...
#include <Poly_Connect.hxx>
Public Member Functions | |
| Poly_Connect () | |
| Constructs an uninitialized algorithm. | |
| Poly_Connect (const occ::handle< Poly_Triangulation > &theTriangulation) | |
| Constructs an algorithm to explore the adjacency data of nodes or triangles for the triangulation T. | |
| void | Load (const occ::handle< Poly_Triangulation > &theTriangulation) |
| Initialize the algorithm to explore the adjacency data of nodes or triangles for the triangulation theTriangulation. | |
| const occ::handle< Poly_Triangulation > & | Triangulation () const |
| Returns the triangulation analyzed by this tool. | |
| int | Triangle (const int N) const |
| Returns the index of a triangle containing the node at index N in the nodes table specific to the triangulation analyzed by this tool. | |
| void | Triangles (const int T, int &t1, int &t2, int &t3) const |
| Returns in t1, t2 and t3, the indices of the 3 triangles adjacent to the triangle at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent triangles. | |
| void | Nodes (const int T, int &n1, int &n2, int &n3) const |
| Returns, in n1, n2 and n3, the indices of the 3 nodes adjacent to the triangle referenced at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent nodes. | |
| void | Initialize (const int N) |
| Initializes an iterator to search for all the triangles containing the node referenced at index N in the nodes table, for the triangulation analyzed by this tool. The iterator is managed by the following functions: | |
| bool | More () const |
| Returns true if there is another element in the iterator defined with the function Initialize (i.e. if there is another triangle containing the given node). | |
| void | Next () |
| Advances the iterator defined with the function Initialize to access the next triangle. Note: There is no action if the iterator is empty (i.e. if the function More returns false).-. | |
| int | Value () const |
| Returns the index of the current triangle to which the iterator, defined with the function Initialize, points. This is an index in the triangles table specific to the triangulation analyzed by this tool. | |
Provides an algorithm to explore, inside a triangulation, the adjacency data for a node or a triangle. Adjacency data for a node consists of triangles which contain the node. Adjacency data for a triangle consists of:
| Poly_Connect::Poly_Connect | ( | ) |
Constructs an uninitialized algorithm.
| Poly_Connect::Poly_Connect | ( | const occ::handle< Poly_Triangulation > & | theTriangulation | ) |
Constructs an algorithm to explore the adjacency data of nodes or triangles for the triangulation T.
Initializes an iterator to search for all the triangles containing the node referenced at index N in the nodes table, for the triangulation analyzed by this tool. The iterator is managed by the following functions:
| void Poly_Connect::Load | ( | const occ::handle< Poly_Triangulation > & | theTriangulation | ) |
Initialize the algorithm to explore the adjacency data of nodes or triangles for the triangulation theTriangulation.
|
inline |
Returns true if there is another element in the iterator defined with the function Initialize (i.e. if there is another triangle containing the given node).
| void Poly_Connect::Next | ( | ) |
Advances the iterator defined with the function Initialize to access the next triangle. Note: There is no action if the iterator is empty (i.e. if the function More returns false).-.
Returns, in n1, n2 and n3, the indices of the 3 nodes adjacent to the triangle referenced at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent nodes.
Returns the index of a triangle containing the node at index N in the nodes table specific to the triangulation analyzed by this tool.
Returns in t1, t2 and t3, the indices of the 3 triangles adjacent to the triangle at index T in the triangles table specific to the triangulation analyzed by this tool. Warning Null indices are returned when there are fewer than 3 adjacent triangles.
|
inline |
Returns the triangulation analyzed by this tool.
|
inline |
Returns the index of the current triangle to which the iterator, defined with the function Initialize, points. This is an index in the triangles table specific to the triangulation analyzed by this tool.