1. Introduction
In Computer-Aided Geometric Design (CAGD), a Coons patch refers to a particular representation of a parametric surface
that is fitted into a topologically four-sided loop of space curves [
1,
2]. If the interpolation curves lie in a plane, the Coons patch establishes a map from
to a planar domain bounded by four potentially curved sides. Therefore, Gordon already proposed that a planar Coons patch (hereafter referred to as a Coons map) could be used for creating planar reparametrizations, which are essential for various applications, including CAGD, mesh generation, and numerical integration [
3,
4,
5].
In CAGD, reparametrizations are needed for various tasks, but especially in the context of “surface trimming”. Trimming a model means removing parts of an existing design. This is carrjed kht by specifying “trimming curves” in the parameter domain of a tensor product surface to identify the part of the design to be removed. The introduction of trimmed surfaces has significantly extended the ability of CAD systems to represent complex shapes [
6] and the designs of most industrial products contain trimmed surfaces.
Figure 1 shows an example of the use of trimmed surfaces in car body design; further examples can be found in [
7].
However, trimming results in parameter domains of non-rectangular shape, often even bounded by curved lines. Thus, a trimmed surface generally cannot be represented as a polynomial tensor product patch defined on a rectangular parameter domain. A popular approach to overcome this problem is to approximate the trimmed surface by a collection of tensor product patches. Another approach restores the standard quadratic form of the parameter domain using certain reparametrizations that allow the trimmed surface to be represented as a single Coons patch (see [
8]). It has been shown in [
5,
8] that there are three different classes of reparametrizations that can be used for this task. Each of these reparametrizations can be represented as a Coons map, but the regularity of these maps depends on the waviness of the boundary curves, and methods are needed to check whether the regularity holds.
Regular reparametrizations also play an important role in the numerical solution of integral equations on closed surfaces. In the Wavelet Galerkin scheme, the surface must be decomposed into a collection of four-sided patches, each of which is a regular parametrization over the unit square (see, e.g., [
9,
10]).
In the context of mesh generation, Gordon had already proposed using a Coons map as a starting point and determining its regularity by visually inspecting the parameter lines. If regularity is not established, additional curves are specified within the domain and the resulting network of curves is interpolated using a more general transfinite interpolation scheme [
4]. However, in general, it is not clear whether such a subdivision approach always provides geometrically valid, i.e., regular sub-elements. Mandad and Campen recently showed that planar domains with piecewise polynomial boundaries can always be tessellated into regular higher-order triangular elements [
11]. For elements of non-triangular topology, however, it is still a problem to establish the regularity of the sub-elements and different algorithmic approaches are used. In isogeometric analysis, parameterizations of the computational domains are obtained by solving an optimization problem [
12,
13]. In [
13], criteria that ensure regularity are included as constraints in the optimization. However, given the substantial computing time demands of such an approach, it has been proposed to perform an unconstrained optimization and subsequently check the regularity of the resulting mesh [
12]. These methods rely on sufficient conditions for the regularity of planar parametrization that have been introduced in [
14] and then generalized to higher dimensions, different topologies and maps that dynamically change over time [
12,
13,
15]. However, relying solely on sufficient conditions carries the risk of over-restricting the tessellation. The only way to avoid this is to formulate a criterion that is both necessary and sufficient for regularity. The derivation of this criterion is the main result of this work and forms the basis of the algorithm for deciding regularity.
In our approach, we consider the problem in as general a form as possible and derive specific cases from the general consideration. This means that initially no assumptions are made about the type of mathematical representation of the boundary curves of a parameter range. This procedure becomes possible by using Coons surfaces to describe the parameterization.
In
Section 3, we show that the regularity of the map depends both on the waviness and on the similarity of the boundary curves. Constraining these properties allows to formulate a sufficient condition for regularity (Theorem 1). This condition is then used to show that there are two special cases in which the regularity of the Coons map is obvious: (a) if the parameter domain is bounded by line segments, and (b) if opposite boundary curves are parallel translates of each other. These special cases, which frequently occur in applications, can be used to sort out parameterizations whose regularity does not need to be checked. An example of the application of this principle to the reparamerization of a trimmed surface is given in
Section 4.
Starting with
Section 4, we suppose that both the boundary curves and the blending functions are polynomials represented in Bézier form. This allows us to formulate the conditions of Theorem 1 as inequalities for the Bézier coefficients. The conditions for regularity presented in Theorem 2 are easy to evaluate and can be intuitively related to the geometry of the considered cases. This is demonstrated by analyzing a parametric example in which the shape of the boundary curves is controlled by a parameter. However, our experiments showed that the derived sufficiency conditions restrict the variation in the boundary curves more than necessary to obtain a regular Coons map. Less restrictive conditions are obtained by considering the determinant of the Jacobian of the Coons map in the Bézier representation. The regularity of the Coons map is assured if all Bézier coefficients of the Jacobian have the same sign (Theorem 3).
In
Section 5, we apply a subdivision principle to formulate a criterion that is both necessary and sufficient for regularity. Theorem 4 states that a polynomial Coons map is regular if and only if it can be subdivided into submaps with equal signs of all Bézier coefficients of the Jacobians. Based on this theorem, we formulate an algorithm to decide on the regularity of a given Coons map
based on recursive adaptive subdivision. Sufficient criteria for non-regularity are used to abort the recursion.
In the presentation of our results, we refer to an example of the processing of trimmed surfaces to demonstrate the relevance of our method in CAGD. Certain shapes of parameter domains that appear in this example are considered prototypes of common cases. For these cases, we build parameterized models that allow us to modify the shape of the domain. In our experiments, we increase the shape parameter until the algorithm detects a non-regular Coons map. In this way, we precisely determine the transition between a regular and a non-regular Coons map in dependence on the shape parameter. This demonstrates that our method can be used by a CAD designer to determine existing margins and tolerances when defining decomposition curves. To visualize the quality of the parameterizations, we provide a plot of the scaled Jacobian function for the examples considered.
2. Transfinite Interpolation and Problem Setting
Let
,
,
,
be four
curves that fulfill the compatibility conditions (see
Figure 2) at the corners:
We assume that besides the common points in (
1), there are no further intersection points. Since our method of generating a map from the unit square to the four-sided domain
bounded by
,
,
,
is based on transfinite interpolation, we briefly recall some basic facts about this technique. For more details, see [
2,
3,
4,
5].
We are interested in generating a map
such that the boundary of the image of
coincides with the given four curves:
This transfinite interpolation problem can be solved by a planar Coons map which is defined as follows. Let,
where
and
denote two strictly monotone functions satisfying
Then, a Coons map
is defined by the relation
with
Inserting the definitions of the operators
and
into (
7), we obtain (see [
16])
Writing this equation in matrix form yields
This construction is due to S. M. Coons [
1] and it has been developed for free-form surface modeling. In that case, the given curves form a loop of space curves that is filled with a Coons patch. The Boolean sum character of a Coons patch has been discovered by W. Gordon [
16].
The differentiability of a Coons map is guaranteed if all curves and blending functions involved are themselves differentiable. The blending functions
,
can be chosen in several ways. Common choices involve linear blending functions:
and cubic ones:
Here,
denotes the cubic Bezier functions.
Note, that the results presented in
Section 3 are valid for a large variety of blending functions.
In
Figure 3, we illustrate that for simple boundary curves, the Coons map is regular. Also, note that under the constraints specified for the boundary curves, a regular Coons map establishes a diffeomorphism [
17]. However, when the boundaries become too wavy, like in
Figure 4, we observe overlapping isolines indicating that the map is not invertible.
3. Geometric Analysis of the Regularity of a Coons Map
In this section, we analyze how properties of the boundary curves affect the regularity of a Coons map
. To formulate a sufficient condition for regularity, we make use of the following definitions, which allows us to quantify the “waviness” of the boundary curves:
Furthermore,
with
Theorem 1. If there exists some such thatandthen the Coons map with respect to α,
β,
γ,
δ is regular. Proof of Theorem 1. Computing the partial derivatives of the Coons map
according to (
8) and using the definitions of
,
according to (
15) and
,
according to (
17), we obtain
By using (
14), we obtain
Exploiting the linearity of the determinant with respect to both arguments, we obtain
By using (
19), we obtain
Due to (
23), we obtain
Relation (
20) finally ensures that
. That means the Jacobian is nowhere zero. The inverse function theorem ensures therefore that the Coons map locally is a diffeomorphism. □
In the following, we give geometric interpretations of the terms used to formulate the above sufficient condition. The vectors
and
are defined as convex combinations of tangent vectors on opposite boundary curves and can be considered as approximations of the partial derivatives
,
of
. The lower bound (
19) related to
prevents the angle
between the vectors
and
from approaching 0 or
. See
Figure 5a.
The vectors
and
encode both the similarity and the “waviness” of opposite boundary curves as can be seen as follows (see
Figure 5b). Let
and
denote line segments joining the end points of the boundary curves
and
:
and
. Now, let
denote the deviation of
from
A and
denote the deviation of
from
B:
and
. Then,
is the difference in the deviations:
. From this reformulation, it is clear that
vanishes if
and
are line segments (because both deviations are zero) or if
and
are parallel translates (because the deviations are equal). The same applies to
. These special cases will be handled in the following corollaries.
Corollary 1. Suppose that and where and are constant vectors such that and .
If there exists some such thatthen the corresponding Coons map is regular. Proof. In this special case, we obtain
and similarly,
. Therefore, condition (
19) reduces to (
24). Since
and
are parallel translates
. Since
and
are also parallel, we obtain
. As a result, the value of
F from definition (
14) is zero and (
20) is trivially fulfilled. □
The following simple case allows to apply Coons maps to four-sided tesselations of complex domains.
Corollary 2. Suppose that the images of the curves α, β, γ, δ form a convex quadrilateral. Assume that the boundary curves are linearly parameterized. Then, the corresponding Coons map with the linear blending function is regular.
Proof. Let us denote the four corners of the quadrilateral by
A,
B,
C,
D as shown in
Figure 6b. Therefore, the expressions of
and
become:
Since we have the following convex combination parametrizations
we deduce
As a result, the value of
F from definition (
14) is zero and (
20) is trivially fulfilled. On the other hand, the tangents are constantly given by
As a consequence, the left hand side of (
19) becomes
The convexity of the quadrilateral
ensures that
Thus, (
19) holds with
being the minimum of the above four positive determinants. □
4. Sufficient Conditions for Polynomial Coons Maps
From now on, we suppose that the boundary curves
,
,
,
are Bézier curves of degree
n with control points
,
,
,
, respectively:
The polynomial blending function
is also expressed in Bézier form:
From Theorem 1, we will now derive conditions for the Bézier points of the boundary curves and blending functions that guarantee the regularity of the Coons map. For this, we introduce
Furthermore, we define
and
Theorem 2. Let be a constant such thatfor all and . Suppose that ,
,
,
are all positive for all .
Then,
is sufficient for to be regular. Proof of Theorem 2. According to the Bézier expression of
,
,
,
, we can formulate
and
in terms of the control points:
After a few rearrangements in which we use (
37), we obtain:
By using the Bézier representation, the function
can be expressed as
Additionally, the expression of
can be formulated in a similar way. Thus, relation (
40) implies the following bounds
According to the multilinearity of the determinant, we have
On account of the fact that
and similar relations for
,
,
, we deduce from (
39) that
The inequality
concludes the proof. □
We consider a parametrized example to illustrate the geometric meaning of the criterion (
41). Suppose that the boundary curves
,
,
,
are Bézier curves of degree 2 with end points
,
,
,
lying on the corners of a square of edge length
l and
,
,
, and
with
.
Figure 7a illustrates the situation.
To simplify the notation, we introduce the following vectors for the edges of the Bézier polygons of the four boundary curves:
In this situation, we obtain for the determinants
:
For reasons of symmetry, the determinants
,
,
provide the same expressions. Thus, we obtain for the minimum
of these determinants
.
is the right side of the inequality (
41) and corresponds to the smallest parallelogram spanned by two vectors of the four Bézier polygons.
Now, we will consider the terms on the left side of the sufficiency criterion (
41). To compute
according to (
38), we first note that
, because the points correspond to the corners of a square. Consequently, we obtain for
:
In our geometric situation, this simplifies to
with
. In a similar way, we obtain
, which means
.
In our example, we use linear blending functions, which yields
as the maximum value of
. As already mentioned in
Section 3,
relates to the deviation in waviness of opposite boundary curves, which in this example is bounded by
.
is an upper bound for
and
with
,
representing approximations of the partial derivatives of the Coons map with respect to
u and
v.
is computed from (
40), which involves the vectors
Here,
,
, and
are the coefficients of
degree elevated to a quadratic Bézier representation:
Thus, we obtain
According to (
40),
must be equal to or larger than twice the length of the longest of these vectors. This gives
Therefore, for our example, the sufficiency criterion
takes the form
Using the relation
, we obtain the inequality
Solving (
45) for
, we obtain
, i.e.,
This example shows the strengths and weaknesses of the regularity criterion (
41). On the one hand, the method allows us to calculate analytically parameter ranges for which the regularity of the mapping is ensured. On the other hand, our experiments showed that the criterion is sometimes much stricter than necessary.
Figure 7b shows the Coons map for
. However, visual inspection indicates that the considered Coons map is regular for much larger values of
. Therefore, we searched for less restrictive sufficient conditions for the regularity of a Coons map. As a starting point, we rewrite a polynomial Coons map as a bivariate Bézier map.
Lemma 1. Suppose the boundary curves α,
β,
γ,
δ and the blending function are given according to (35)–(37).
Then,
the Coons map is a bivariate polynomial that can be written in Bézier formwith control points Proof. Obvious. See also [
18] for a similar discussion. □
Theorem 3. A polynomial Coons map of degree with Bézier points according to (47) is regular, if for all whereand Proof of Theorem 3. The partial derivatives of the Bézier representation of
are
Consequently, the determinant can be expressed as follows
After application of degree elevation with respect to the indices
i and
l, we obtain
By using the product formula
the Jacobian can be written as
Since all coefficients
are positive, the Coons map
is regular. □
Our experiments showed that the conditions of Theorem 3 are less restrictive than those of Theorem 2. The example illustrated in
Figure 7 is an extreme case as the new conditions provide the regularity of the map for all
(see
Figure 8).
Figure 9 shows a different example with quartic boundary curves and shape parameter
. Here, our experiments with both criteria provided results that are not too far apart. While the criterion of Theorem 2 is fulfilled for
, the new criterion provides the regularity of the map for all
. What remains is to answer the question of how far the larger value is away from the smallest
for which the map is not regular, i.e., the quest for tight necessary and sufficient conditions for regularity. This is addressed in the next section.
5. An Algorithm to Decide on the Regularity of a Coons Map
In this section, we formulate a condition for the regularity of a polynomial Coons map that is both necessary and sufficient. This criterion is based on a subdivision principle that also serves as the backbone of our decision algorithm.
We use the following notation to define the subdivision process. A Bézier map
F defined on
can be subdivided into four Bézier submaps
A,
B,
C,
D each of which is defined on a corresponding subset:
Let
denote the control points of
F. The four submaps are obtained in the following steps. First, we apply deCastelau’s algorithm with
to the rows of the Bézier net:
Then, we subdivide
F at
in two maps
P,
Q with Bézier coefficients
and apply deCastelau’s algorithm with
to the columns of the Bézier nets of
P and
Q, i.e., for
, we compute
Then, the control points of
A,
B,
C and
D are as follows
,
,
,
for
.
Theorem 4. Let be a polynomial Coons map of degree . Assume that has been subdivided into submaps defined onLet denote the Jacobian of with Bézier coefficients , according to (56). - (i)
If there is , such that all coefficients have the same sign, is regular.
- (ii)
If is regular, then there is such that all coefficients have the same sign.
Proof (i) According to Theorem 3, each
is regular. Since each submap
is a restriction of the original map:
is regular on each
. Since the union of the intervals
is
,
is regular.
(ii) Since
is regular, its Jacobian
is of constant sign for all
. Without loss of generality, we suppose that the sign of
J is positive. Since the function
J is continuous on the compact parameter space
, there must exist some
such that
To simplify notation, we fix
and denote the domain of
by
. Let
be the blossom [
19] of the polynomial
:
where we use the notation
for an
m times repetition of
s.
Define
and
,
for
and
. Now, we apply the multivariate Taylor expansion of the first order to the blossom
at
.
Due to the symmetry [
19] of the blossom function, we obtain
Thus, we obtain the following for control points of
J:
Combining (
65) and (
68), there must exist some constant
such that
Since
, it follows that
for
. □
From Theorem 4, we can derive sufficient criteria for the non-regularity of a Coons map.
Corollary 3. Let be a Coons map of polynomial degree n which fulfills one of the following conditions:
- 1.
In the subdivision process, there exist and such that - 2.
In the subdivision process, there exists such that
Then, is not regular.
Proof of Corollary 3. The subpatches
and
with
and
according to (
72) are regular, since they fulfill condition (
48) and their Jacobians have different signs. Further subdivision of these patches will not change the sign of their Jacobians. Therefore, any further subdivision will always produce subpatches with constant but different signs of their Jacobian. This is a contradiction to the necessary condition for regularity of Theorem 4.
According to (
73), in the Bezier representation of the Jacobian
, one of the corner points of the Bezier net is zero. Since the corner points of the Bezier net are interpolated by the Bezier function, the value of the Jacobian of
is zero in the critical corner point. Since
is a subpatch of
, the Jacobian of
is zero at the critical point. □
Based on Theorem 4, we can formulate an algorithm to check the regularity of a given Coons map
based on the recursive subdivision of its Jacobian
J. If
is regular, Theorem 4 guarantees that the subdivision process terminates with sub-Jacobians all of the same sign. The iteration is aborted if one of the sufficient criteria for non-regularity of Corollary 3 is found to be fulfilled. Since the number of subdivision steps
needed to fulfill the criterion of Theorem 4 can be arbitrarily large, we also provide a negative answer for the regularity check after a default maximum of iteration steps has been reached. Note that we perform adaptive subdivision, i.e., only those Jacobians are subdivided that have Bézier coefficients with different signs. A pseudocode of the main idea of this algorithm is given in Algorithm 1.
Algorithm 1: Pseudocode of algorithm that decides on regularity. |
Check(Cell J) if hasConsistentSign(J) then return sign(J); else Subdivide(J); foreach do Check(); end foreach if sign() ≠ sign() then // cancel recursion return 0; // not diffeomorphic else return sign(); end if end if |
6. Results
In the presentation of our results, we refer to an example of the handling of trimmed surfaces in CAGD.
Figure 10 shows a CAD model consisting of six bicubic patches with a trimming curve that has been defined in the parameter space of the model. Our goal is to re-parameterize the trimmed model using Coons patches defined on the unit square. The first step is to tesselate the trimmed model so that each subpatch can be represented as a Coons patch. This tesselation is not unique, and a particular tesselation into eight subpatches is shown in
Figure 10. It has been shown in [
5,
8] that the representability as a Coons patch can be decided on the basis of the geometric form of the parameter space of each subpatch. Each of the eight sub-regions shown in
Figure 10a is either bounded by four lines or has exactly one curved side that can be mapped bijectively onto the opposite side. These cases are in accordance with the criteria of [
5,
8], so it is possible to represent the eight sub-patches as Coons patches. However, it is not guaranteed that the Coons patches are regular, which must be checked in the next step. The method presented in this paper is used for this task.
The Coons representation for each subpatch is obtained by concatenating a planar Coons map and the initial bicubic surface. Since the given bicubic surface is assumed to be regular, the resulting Coons patch is regular if the Coons map used for reparametrization has this property. This reduces the task to checking the regularity of the involved Coons maps. Obviously, the shapes of the eight parameter domains of our example can be divided into the following cases: parameter regions 2, 4 and 5 are rectangles, parameter region 7 is a non-rectangular convex quadrilateral, and parameter regions 1, 3, 6 and 8 have a curved side and either a convex or non-convex shape. According to Corollary 2, the Coons maps for the four convex quadrilaterals are regular. Therefore, only the four cases involving a curved side need to be discussed further.
To demonstrate the power of our method, we do not limit the regularity check to the particular parameter regions shown in
Figure 10, but construct parameterized models representing these regions and determine the parameter ranges for which the regularity holds.
In
Figure 11a, the curved side of the parameter space involves the parametrized Bézier points
,
with a parameter
. Positive values of
correspond to a non-convex shape of the parameter region. With the help of our method, we found that
is regular for
. For
,
is not regular. (The investigation was limited to two decimal places.) To visualize the quality of the parametrization, we show a plot of its scaled Jacobian function.
Note, that absolute values of
close to 1 indicate the orthogonality of the parameter lines. The non-regularity of this example with
is visible in
Figure 12b as a sharp drop of
to zero that occurs when the parametrization folds over. Also note that the plot of the parameter lines cannot be used to judge whether a Coons map is regular, since the plots in
Figure 11a and
Figure 12a look almost identical.
Negative values of
correspond to a convex shape of the parameter region and our method verifies that the Coons map is regular in this case. However, for large values of
, the parametrization gets very uneven.
Figure 13a shows the parametrization for
and
Figure 13b shows the corresponding scaled Jacobian.
For a convex quadrilateral, we know from Corollary 2 that the associated Coons map is regular. We use this case as a benchmark to see whether our algorithm verifies the regularity, if the shape of the quadrilateral is nearly triangular.
Figure 14 shows a parametrized quadrilateral consisting of the vertices
where the parameter
controls the distance of one corner to the origin. From Corollary 2, we know that the map is regular for
. In our tests, we received the results that the map is regular for
with
having a very small positive value (see
Figure 14d). For smaller values of
, our algorithm decides that the map is not regular.
Finally, we return to our initial examples introduced in
Section 4. For our first example from
Figure 7, we already mentioned that
is regular for
(see
Figure 8). For
,
is not regular. For our example from
Figure 9,
is regular for
. For
,
is not regular.