Algorithm Search⌘K

Definitionresearch

Generalized Bezier patch

Also called multi-sided Bezier patch.

Varady, Salvi and Kariko's n-sided patch with a Bezier-like control net, built by blending ribbons over a regular polygon domain, that matches neighbours with G1 continuity.

A Generalized Bézier patch, or GB patch, is a single surface patch with nn sides whose shape is set by a control net, like a tensor product Bézier patch. Várady, Salvi and Karikó introduced it in 2016 as a solution of the n-sided patch problem. Each side owns a few rows of control points, as a side of a Bézier patch does, and the rows of each side are blended in local parameters of that side over a regular polygon. Rational weights near the corners and one central control point complete the blend. The boundary of each side and the first cross derivative there come from the first two rows of that side, so the patch joins a Bézier neighbour with tangent plane continuity in the same way as two Bézier patches do.

Definition

Let n≥3n \ge 3 and let DD be the regular nn-gon with corners q1,…,qnq_1, \dots, q_n, indices modulo nn. Let λ1,…,λn\lambda_1, \dots, \lambda_n be the Wachspress coordinates of a point p=(u,v)p = (u, v) of DD: with A(a,b,c)A(a, b, c) the signed area of a triangle,

wi(p)=A(qi−1,qi,qi+1)A(p,qi−1,qi) A(p,qi,qi+1),λi=wi∑jwj,w_i(p) = \frac{A(q_{i-1}, q_i, q_{i+1})}{A(p, q_{i-1}, q_i) \, A(p, q_i, q_{i+1})}, \qquad \lambda_i = \frac{w_i}{\sum_j w_j},

continued to the boundary of DD by continuity. Side ii of DD joins qi−1q_{i-1} to qiq_i. Its local parameters are

si=λiλi−1+λi,hi=1−λi−1−λi,s_i = \frac{\lambda_i}{\lambda_{i-1} + \lambda_i}, \qquad h_i = 1 - \lambda_{i-1} - \lambda_i,

the side parameter and the distance parameter.

Fix a degree d≥3d \ge 3 and let l=⌈d/2⌉l = \lceil d/2 \rceil, the number of control rows of each side. The control points are Cj,kiC^i_{j,k} for 1≤i≤n1 \le i \le n, 0≤j≤d0 \le j \le d, 0≤k<l0 \le k < l, and a central point C0C_0. Here jj runs along side ii and kk counts the rows inward from it. A point near a corner belongs to two sides and has two names: Cj,ki=Ck, d−ji+1C^i_{j,k} = C^{i+1}_{k,\, d-j} whenever both indices are in range. The Generalized Bézier patch is

S(u,v)=∑i=1n∑j=0d∑k=0l−1μj,ki Bjd(si) Bkd(hi) Cj,ki+B0(u,v) C0,S(u, v) = \sum_{i=1}^{n} \sum_{j=0}^{d} \sum_{k=0}^{l-1} \mu^i_{j,k} \, B^d_j(s_i) \, B^d_k(h_i) \, C^i_{j,k} + B_0(u, v) \, C_0,

where BjdB^d_j are the Bernstein polynomials of degree dd and the weights μj,ki\mu^i_{j,k} are as follows. For the 2×22 \times 2 points at the corners of side ii, the weight is the rational function

αi=hi−1hi−1+hi(j≤1, k≤1),βi=hi+1hi+1+hi(j≥d−1, k≤1),\alpha_i = \frac{h_{i-1}}{h_{i-1} + h_i} \quad (j \le 1,\ k \le 1), \qquad \beta_i = \frac{h_{i+1}}{h_{i+1} + h_i} \quad (j \ge d - 1,\ k \le 1),

and for the other points it is a constant 00, 12\tfrac12 or 11, chosen in the original paper so that each point is counted the right number of times. The central blend is the weight deficiency

B0=1−∑i=1n∑j=0d∑k=0l−1μj,ki Bjd(si) Bkd(hi).B_0 = 1 - \sum_{i=1}^{n} \sum_{j=0}^{d} \sum_{k=0}^{l-1} \mu^i_{j,k} \, B^d_j(s_i) \, B^d_k(h_i).

The patch is defined so that, along side ii, SS is the Bézier curve of degree dd of the row C0,0i,…,Cd,0iC^i_{0,0}, \dots, C^i_{d,0}, and the cross derivative is that of the tensor product Bézier patch whose first two rows are rows 00 and 11 of side ii. These are the properties that the rational weights are there to give.

Lemma 1 (local parameters on the boundary). On side ii, hi=0h_i = 0 and sis_i runs linearly from 00 at qi−1q_{i-1} to 11 at qiq_i. On side ii also hi−1=sih_{i-1} = s_i, hi+1=1−sih_{i+1} = 1 - s_i, and hm=1h_m = 1 for every side mm that does not touch side ii. On side i−1i - 1, si=0s_i = 0, and on side i+1i + 1, si=1s_i = 1.

Proof. Wachspress coordinates are generalized barycentric coordinates: on a side of a convex polygon only the two coordinates of its ends are nonzero, and they are the linear coordinates of the segment. (In the formula, when pp tends to side ii, the area A(p,qi−1,qi)A(p, q_{i-1}, q_i) tends to 00, so wi−1w_{i-1} and wiw_i grow without bound and the other wjw_j stay bounded.) So on side ii, λi−1=1−t\lambda_{i-1} = 1 - t and λi=t\lambda_i = t for the linear parameter tt from qi−1q_{i-1} to qiq_i, and λm=0\lambda_m = 0 otherwise. Then si=ts_i = t and hi=1−(1−t)−t=0h_i = 1 - (1 - t) - t = 0. Also hi−1=1−λi−2−λi−1=1−(1−t)=th_{i-1} = 1 - \lambda_{i-2} - \lambda_{i-1} = 1 - (1 - t) = t, hi+1=1−λi−λi+1=1−th_{i+1} = 1 - \lambda_i - \lambda_{i+1} = 1 - t, and hm=1h_m = 1 when neither λm−1\lambda_{m-1} nor λm\lambda_m is one of λi−1,λi\lambda_{i-1}, \lambda_i. On side i−1i - 1, λi=0\lambda_i = 0 and λi−1>0\lambda_{i-1} > 0 away from qi−2q_{i-2}, so si=0s_i = 0; on side i+1i + 1, λi−1=0\lambda_{i-1} = 0 and λi>0\lambda_i > 0 away from qi+1q_{i+1}, so si=1s_i = 1. □\square

Corollary (the corner weights on the boundary). On side ii, away from its ends, αi=βi=1\alpha_i = \beta_i = 1. On side i−1i - 1, away from its ends, αi=0\alpha_i = 0, and on side i+1i + 1, βi=0\beta_i = 0.

Proof. On side ii, hi=0h_i = 0 and hi−1,hi+1>0h_{i-1}, h_{i+1} > 0 inside the side, so both quotients are 11. On side i−1i - 1, hi−1=0h_{i-1} = 0 by Lemma 1 for side i−1i - 1, and hi=1−λi−1>0h_i = 1 - \lambda_{i-1} > 0 away from qi−1q_{i-1}, so αi=0\alpha_i = 0. The case of βi\beta_i on side i+1i + 1 is the same. □\square

So a corner point of side ii has full weight on side ii and no weight, under its name of side ii, on the neighbouring side, where it is blended under its other name. This is how the double names at the corners do not count a point twice on the boundary.

Lemma 2 (affine invariance). The blending functions of SS sum to 11 at every point of DD. So for every affine map TT, applying TT to all control points gives the patch T∘ST \circ S.

Proof. The first claim is the definition of B0B_0. If blending functions ϕm\phi_m sum to 11 and T(x)=Mx+bT(x) = M x + b, then ∑mϕmT(Cm)=M∑mϕmCm+b∑mϕm=T(∑mϕmCm)\sum_m \phi_m T(C_m) = M \sum_m \phi_m C_m + b \sum_m \phi_m = T\bigl(\sum_m \phi_m C_m\bigr). □\square

Lemma 2 does not give the convex hull property, which would also need blends that are never negative. Later work by the same group reports that for larger nn or dd the central blend B0B_0 becomes too large, and changes the treatment of the central point.

Examples and non-examples

The centre of the domain. At the centre of the regular nn-gon, symmetry gives λi=1/n\lambda_i = 1/n for all ii. So si=12s_i = \tfrac12 and hi=1−2nh_i = 1 - \tfrac2n for every side. For n=5n = 5 this is hi=35h_i = \tfrac35, and for n=4n = 4 it is hi=12h_i = \tfrac12, the centre of a square in the usual parameters.

Counting control points. The rows of side ii have (d+1)l(d + 1) l names. The l×ll \times l block at each end of the rows is shared with a neighbour, by the rule Cj,ki=Ck,d−ji+1C^i_{j,k} = C^{i+1}_{k, d-j}, which applies when j>d−lj > d - l. Assign each shared point to the side in whose left block it lies. Then each side owns (d+1)l−l2=l(d+1−l)(d + 1) l - l^2 = l (d + 1 - l) points, and the patch has n l(d+1−l)+1n \, l (d + 1 - l) + 1 control points with the central one.

  • For d=3d = 3, l=2l = 2: 4n+14 n + 1 points, so 2121 for a five sided patch.
  • For n=4n = 4 and even dd, l=d/2l = d/2 gives 4⋅d2(d2+1)+1=(d+1)24 \cdot \frac d2 \bigl(\frac d2 + 1\bigr) + 1 = (d + 1)^2, the number of control points of a tensor product patch of degree dd.
  • For n=4n = 4 and odd dd it gives (d+1)2+1(d + 1)^2 + 1: the extra point is the central point, which a tensor product patch of odd degree does not have.

A five sided cubic patch. With n=5n = 5 and d=3d = 3, each side has two rows of four points. The first row of side ii is the cubic Bézier boundary curve, and the second row sets the cross derivative, as on the boundary of a bicubic patch. To join the patch to a bicubic neighbour with G1G^1 continuity, one chooses the second row of side ii to meet the G1G^1 conditions of the tangent plane continuity page with the neighbour's last two rows. The 2121st point, the centre, is free for the designer.

Non-example: the S-patch. The S-patch of Loop and DeRose is also a multi-sided generalization of Bézier surfaces over a polygon, but its control points are labeled by nn-tuples of nonnegative integers that sum to the degree dd. There are (d+n−1n−1)\binom{d + n - 1}{n - 1} such labels, by counting the ways to place dd units into nn slots: for n=5n = 5 and d=3d = 3, (74)=35\binom{7}{4} = 35, against 2121 for the GB patch. The GB control net keeps the layout of rows along the sides, which is the reason for its simpler structure.

Non-example: a split of the polygon. Cutting a five sided region into five four sided Bézier or Gregory patches solves the same problem with several patches and inner joins. A GB patch is one patch with one formula over the whole polygon.

Non-example: a polygon that is not convex. The definition uses a regular polygon, and Wachspress coordinates are made for convex polygons. Variants over curved or concave domains replace them by other coordinates, such as harmonic coordinates.

  • Bézier patch. The tensor product patch whose boundary rows the GB patch copies along each side.
  • N-sided patch. The problem the GB patch solves with a single patch.
  • Gregory patch. A four sided patch that uses rational weights so that each side sees only its own cross derivative data.
  • Coons patch. Transfinite multi-sided patches blend ribbons in a similar way, but without a control net in the interior.
  • Mean value coordinates. Another family of generalized barycentric coordinates, used for local parameters in some multi-sided schemes.
  • Bézier triangle. The three sided Bézier patch, whose control points are labeled like those of the S-patch with n=3n = 3.

References

  1. Tamás Várady, Péter Salvi and György Karikó, A multi-sided Bézier patch with a simple control structure, Computer Graphics Forum 35(2), 307 to 317, 2016, the original definition of the GB patch, its control structure and its G1 connection to adjacent Bézier surfaces
  2. Péter Salvi, Tamás Várady and Kenjiro T. Miura, Approximating point clouds by Generalized Bézier surfaces, Workshop on the Advances in Information Technology (WAIT), Budapest, 2018, Section 3, equations (1) to (4), a summary of the definition with the local parameters, the surface equation, the corner weights and the weight deficiency
  3. Tamás Várady, Péter Salvi and Márton Vaitkus, Genuine multi-sided parametric surface patches, a survey, Computer Aided Geometric Design 110, 102286, 2024, the place of GB patches among control point based multi-sided schemes (general locator)
  4. Charles T. Loop and Tony D. DeRose, A multisided generalization of Bézier surfaces, ACM Transactions on Graphics 8(3), 204 to 234, 1989, the S-patch, the earlier multi-sided generalization of Bézier surfaces

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/FD84ZX/text.yaml