This routine is partly derived from material in the MODULEF package from INRIA (Institut National de Recherche en Informatique et Automatique).
None.
- 1: – Real (Kind=nag_wp)Input
-
On entry: the relative precision of the restitching of the two input meshes (see
Section 9).
Suggested value:
.
Constraint:
.
- 2: – IntegerInput
-
On entry: the total number of vertices in the first input mesh.
Constraint:
.
- 3: – IntegerInput
-
On entry: the number of triangular elements in the first input mesh.
Constraint:
.
- 4: – IntegerInput
-
On entry: the number of boundary edges in the first input mesh.
Constraint:
.
- 5: – Real (Kind=nag_wp) arrayInput
-
On entry: contains the coordinate of the th vertex of the first input mesh, for ; while contains the corresponding coordinate.
- 6: – Integer arrayInput
-
On entry: the specification of the boundary edges of the first input mesh. and contain the vertex numbers of the two end points of the th boundary edge. is a user-supplied tag for the th boundary edge.
Constraint:
and , for and .
- 7: – Integer arrayInput
-
On entry: the connectivity between triangles and vertices of the first input mesh. For each triangle
, gives the indices of its three vertices (in anticlockwise order), for and .
Constraints:
- ;
- ;
- and , for and .
- 8: – Integer arrayInput
-
On entry: contains the user-supplied tag of the th triangle from the first input mesh, for .
- 9: – IntegerInput
-
On entry: the total number of vertices in the second input mesh.
Constraint:
.
- 10: – IntegerInput
-
On entry: the number of triangular elements in the second input mesh.
Constraint:
.
- 11: – IntegerInput
-
On entry: the number of boundary edges in the second input mesh.
Constraint:
.
- 12: – Real (Kind=nag_wp) arrayInput
-
On entry: contains the coordinate of the th vertex of the second input mesh, for ; while contains the corresponding coordinate.
- 13: – Integer arrayInput
-
On entry: the specification of the boundary edges of the second input mesh. and contain the vertex numbers of the two end points of the th boundary edge. is a user-supplied tag for the th boundary edge.
Constraint:
and , for and .
- 14: – Integer arrayInput
-
On entry: the connectivity between triangles and vertices of the second input mesh. For each triangle
, gives the indices of its three vertices (in anticlockwise order), for and .
Constraints:
- ;
- ;
- and , for and .
- 15: – Integer arrayInput
-
On entry: contains the user-supplied tag of the th triangle from the second input mesh, for .
- 16: – IntegerOutput
-
On exit: the total number of vertices in the resulting mesh.
- 17: – IntegerOutput
-
On exit: the number of triangular elements in the resulting mesh.
- 18: – IntegerOutput
-
On exit: the number of boundary edges in the resulting mesh.
- 19: – Real (Kind=nag_wp) arrayOutput
-
Note: the second dimension of the array
coor3
must be at least
.
On exit: will contain the coordinate of the th vertex of the resulting mesh, for ; while will contain the corresponding coordinate.
- 20: – Integer arrayOutput
-
Note: the second dimension of the array
edge3
must be at least
. This may be reduced to
once that value is known.
On exit: the specification of the boundary edges of the resulting mesh.
will contain the vertex number of the
th end point (
) of the
th boundary or interface edge.
If the two meshes overlap, will contain the same tag as the corresponding edge belonging to the first and/or the second input mesh.
If the two meshes are adjacent,
(i) |
if the th edge is part of the partition interface, will contain the value where and are the tags for the same edge of the first and the second mesh respectively; |
(ii) |
otherwise, will contain the same tag as the corresponding edge belonging to the first and/or the second input mesh. |
- 21: – Integer arrayOutput
-
Note: the second dimension of the array
conn3
must be at least
. This may be reduced to
once that value is known.
On exit: the connectivity between triangles and vertices of the resulting mesh.
will give the indices of its three vertices (in anticlockwise order), for and .
- 22: – Integer arrayOutput
-
Note: the dimension of the array
reft3
must be at least
. This may be reduced to
once that value is known.
On exit: if the two meshes form a partition,
will contain the same tag as the corresponding triangle belonging to the first or the second input mesh, for . If the two meshes overlap,
will contain the value where and are the user-supplied tags for the same triangle of the first and the second mesh respectively, for .
- 23: – IntegerInput
-
On entry: the level of trace information required from
d06dbf.
- No output is generated.
- Details about the common vertices, edges and triangles to both meshes are printed on the current advisory message unit (see x04abf).
- 24: – Integer arrayWorkspace
- 25: – IntegerInput
-
On entry: the dimension of the array
iwork as declared in the (sub)program from which
d06dbf is called.
Constraint:
.
- 26: – IntegerInput/Output
-
On entry:
ifail must be set to
,
. If you are unfamiliar with this argument you should refer to
Section 3.4 in How to Use the NAG Library and its Documentation for details.
For environments where it might be inappropriate to halt program execution when an error is detected, the value
is recommended. If the output of error messages is undesirable, then the value
is recommended. Otherwise, if you are not familiar with this argument, the recommended value is
.
When the value is used it is essential to test the value of ifail on exit.
On exit:
unless the routine detects an error or a warning has been flagged (see
Section 6).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
Not applicable.
d06dbf finds all the common vertices between the two input meshes using the relative precision of the restitching argument
eps. You are advised to vary the value of
eps in the neighbourhood of
with
to get the optimal value for the meshes under consideration.
For this routine two examples are presented. There is a single example program for d06dbf, with a main program and the code to solve the two example problems given in Example 1 (EX1) and Example 2 (EX2).
This example involves the unit square
meshed uniformly, and then translated by a vector
(using
d06daf). This translated mesh is then restitched with the original mesh. Two cases are considered:
(a) |
overlapping meshes (, ), |
(b) |
partitioned meshes (, ). |
The mesh on the unit square has
vertices,
triangles and its boundary has
edges.
In the partitioned case the resulting geometry is shown in Figure 1 in
Section 10.3 while the restitched mesh is shown in Figure 2 in
Section 10.3.
In the overlapping case the geometry and mesh are shown in Figure 3 and Figure 4 in
Section 10.3.
This example restitches three geometries by calling the routine
d06dbf twice. The result is a mesh with three partitions. The first geometry is meshed by the Delaunay–Voronoi process (using
d06abf), the second one meshed by an Advancing Front algorithm (using
d06acf), while the third one is the result of a rotation (by
) of the second one (using
d06daf). The resulting geometry is shown in Figure 5 in
Section 10.3 and restitched mesh in Figure 6 in
Section 10.3.