Algorithm Search⌘K

Data structureresearch

Polynomial spline over hierarchical T-mesh

Also called PHT-spline.

Deng and coauthors' C1 bicubic splines on a hierarchical T-mesh built from vertex basis functions, with simple local refinement for adaptive analysis.

Time
O(V L + n r) worst · average · best
Space
O(V + n r) extra
Where
L = the number of levels; V = the number of vertices after the step; n = the number of basis functions before the step; r = the number of cells split in the step
Properties
deterministiciterative
Origin
Jiansong Deng, Falai Chen, Xin Li, Changqi Hu, Weihua Tong, Zhouwang Yang, Yuyu Feng, 2008

A PHT-spline is a function that is a bicubic polynomial on each cell of a hierarchical T-mesh and has continuous first derivatives. The mesh starts as a grid, and each refinement step splits some cells of the finest level into four by a cross. Deng, Chen, Li, Hu, Tong, Yang and Feng introduced the space and its basis in 2008. The space has dimension 4(Vb+V+)4(V_b + V_+), where VbV_b is the number of boundary vertices and V+V_+ the number of interior crossing vertices. Each such basis vertex carries four basis functions, so the spline is fixed by its value, its two first derivatives and its mixed derivative at the basis vertices. Because the continuity is only C1C^1, the T-junctions do not spread through the mesh, and refinement is simple and local. This makes PHT-splines a natural choice for adaptive isogeometric analysis.

In plain words

Lay a grid over a square and put a cubic patch on each cell, so that the surface and its slopes match across every edge. Where you need more detail, cut a cell into four by a cross. A new corner in the middle of a side can touch the side of a neighbour that was not cut. That is a T-junction.

Describe the surface by four numbers at each corner: the height, the two slopes and the twist. At a T-junction these numbers must be what the big neighbour cell has at that point, or the surface breaks. At the other corners they are free.

So each free corner gets four bumps. When you cut cells, the old bumps are set to zero at the new free corners, and four new small bumps are added there.

The abstract type

A PHT-spline space on [0,n]2[0, n]^2 stores a hierarchical T-mesh and a basis of S(3,3,1,1,T)S(3, 3, 1, 1, T), the C1C^1 functions that are bicubic on each leaf cell. The operations are:

  • REFINE(R)(R): split each cell of RR, which must be leaf cells of the finest level, into four by a cross, and update the basis.
  • EVALUATE(b,x,y)(b, x, y): the value, the two first derivatives and the mixed derivative of a function at a point.
  • COEFFICIENTS(f)(f): the coefficients on the basis of a spline given by its data at the basis vertices.

A vertex is a boundary vertex if it lies on the boundary of the square. An interior vertex is a T-junction if it lies inside a side of a leaf cell; this cell is its host. The other interior vertices are crossings. The basis vertices are the boundary vertices and the crossings.

Representation

A cell (ℓ,i,j)(\ell, i, j) is the square of side h=2−ℓh = 2^{-\ell} with lower left corner (ih,jh)(ih, jh). The leaves are a hash set. Every function is a sparse map from vertices to its Hermite data (f,fx,fy,fxy)(f, f_x, f_y, f_{xy}) there. On each leaf cell the function is the bicubic Hermite interpolant of the data at its four corners, the tensor product of the cubic Hermite shapes in xx and yy. So EVALUATE locates the leaf that contains the point and sums 16 products.

The basis has four functions for each basis vertex vv, one for each pair (α,β)∈{0,1}2(\alpha, \beta) \in \{0, 1\}^2. Let ℓ\ell be the level at which vv became a basis vertex and h=2−ℓh = 2^{-\ell}. In one direction, the two C1C^1 cubic B-splines of vv have the knots (v−h,v−h,v,v,v+h)(v - h, v - h, v, v, v + h) and (v−h,v,v,v+h,v+h)(v - h, v, v, v + h, v + h); at the boundary the outside knots are replaced by vv. With h−h_- and h+h_+ the spacings on the two sides of vv, 00 at the boundary, and H=h−+h+H = h_- + h_+, their values and slopes at vv are

(h+H,−3H) and (h−H,3H).\Bigl(\frac{h_+}{H}, -\frac{3}{H}\Bigr) \text{ and } \Bigl(\frac{h_-}{H}, \frac{3}{H}\Bigr).

The data of the function (v,α,β)(v, \alpha, \beta) at vv are the products of the pair α\alpha in xx and the pair β\beta in yy: value times value, slope times value, value times slope, and slope times slope. Its data at every other basis vertex are zero. Its data at T-junctions are stored too, so that every leaf can be evaluated from its own corners.

Operations

  1. REFINE(R) ▷ R: leaf cells of the finest level K
  2. 1split each cell of R into four by a cross; K ← K + 1; classify the vertices
  3. 2N ← the basis vertices that were not basis vertices before; their level is K
  4. 3for each basis function b do
  5. 4for each new vertex w of a split cell P where b is not zero: data_b(w) ← (f, f_x, f_y, f_xy) of b on P at w
  6. 5for each v in N: data_b(v) ← 0
  7. 6for each v in N and (α, β) ∈ {0, 1}²: add the function with data D_v(α, β) at v and 0 elsewhere

Line L4 is the subdivision of the old polynomial on the split cell, the Hermite form of de Casteljau subdivision of a Bézier patch. Line L5 is the modification of Deng and coauthors: the old function keeps its data at the old vertices and gets zero data at the new basis vertices. The classification in line L1 tests, for each vertex and each level, whether the cells of that level to its left and right, or below and above, are leaves that contain the vertex inside a side.

COEFFICIENTS uses the dual functionals of the B-splines: at a basis vertex with data (f,fx,fy,fxy)(f, f_x, f_y, f_{xy}), the coefficient of (v,α,β)(v, \alpha, \beta) is f+sαfx+tβfy+sαtβfxyf + s_\alpha f_x + t_\beta f_y + s_\alpha t_\beta f_{xy}, with s0=−h−/3s_0 = -h_-/3 and s1=h+/3s_1 = h_+/3 in xx, and t0,t1t_0, t_1 the same in yy.

Example

Take n=2n = 2. The level 0 mesh has 9 vertices, all basis vertices, and 36 basis functions, the tensor products of the C1C^1 cubic B-splines on the knots 0,0,0,0,1,1,2,2,2,20, 0, 0, 0, 1, 1, 2, 2, 2, 2. The function of the centre (1,1)(1, 1) with α=β=0\alpha = \beta = 0 has the knots (0,0,1,1,2)(0, 0, 1, 1, 2) in both directions and the data (14,−34,−34,94)(\tfrac14, -\tfrac34, -\tfrac34, \tfrac94) at (1,1)(1, 1).

Split the cell [0,1]2[0, 1]^2. The centre (12,12)(\tfrac12, \tfrac12) is a crossing, and (12,0)(\tfrac12, 0) and (0,12)(0, \tfrac12) are boundary vertices, so there are 12 basis vertices and 48 functions. The midpoints (1,12)(1, \tfrac12) and (12,1)(\tfrac12, 1) lie inside sides of the cells [1,2]×[0,1][1, 2] \times [0, 1] and [0,1]×[1,2][0, 1] \times [1, 2], so they are T-junctions. The function of (1,1)(1, 1) above had the value 49256\tfrac{49}{256} at (12,12)(\tfrac12, \tfrac12). After the step its data there are zero, its value at (34,34)(\tfrac34, \tfrac34) falls from 656116384\tfrac{6561}{16384} to 6492048\tfrac{649}{2048}, and its value at (32,32)(\tfrac32, \tfrac32) stays 1256\tfrac{1}{256}. Its data at the T-junction (1,12)(1, \tfrac12) are (732,−2132,916,−2716)(\tfrac{7}{32}, -\tfrac{21}{32}, \tfrac{9}{16}, -\tfrac{27}{16}), which are the values of the host cell's polynomial there.

Now split [12,1]2[\tfrac12, 1]^2. Only its centre is a new basis vertex; its four side midpoints are T-junctions. The mesh has 13 basis vertices and 6 T-junctions, and the space has dimension 52. A direct count of all piecewise bicubics with the C1C^1 conditions across every shared edge also gives 52.

Correctness

The proof rests on one fact about hierarchical T-meshes. Every T-junction lies inside a side of exactly one leaf cell, its host, and the corners of the host appeared at an earlier step than the T-junction. A C1C^1 piecewise bicubic has well defined Hermite data at every vertex, including the mixed derivative. On each cell it is the Hermite interpolant of its corner data, and the data at a T-junction are those of the host's polynomial. By induction over the steps, the data at the basis vertices fix all data, and any data at the basis vertices extend to a C1C^1 function. So the map to the data at the basis vertices is a bijection and the dimension is 4(Vb+V+)4(V_b + V_+).

The constructed functions are in the space, because lines L4 and L5 keep the T-junction data equal to the host's. Each function has data only at its own basis vertex, given by an invertible 4×44 \times 4 block, so the functions are a basis. The blocks of one vertex sum to (1,0,0,0)(1, 0, 0, 0), so the functions sum to 1. The proofs are in the correctness proof.

Proof: The PHT-spline space has dimension 4(V_b + V_+), and REFINE builds a basis with partition of unityfull

We use the notation of the page. The domain is Ω=[0,n]2\Omega = [0, n]^2. A cell of level ℓ\ell is a square [ih,(i+1)h]×[jh,(j+1)h][i h, (i+1) h] \times [j h, (j+1) h] with h=2−ℓh = 2^{-\ell}. The mesh T0T_0 is the set of the n2n^2 cells of level 0. If the finest level of TkT_k is KK, then Tk+1T_{k+1} comes from TkT_k when we replace some leaves of level KK by their four children. The vertices are the corners of the leaves. S(T)S(T) is the set of C1C^1 functions on Ω\Omega that are bicubic polynomials on each leaf. The order of a point vv is the least m≥0m \ge 0 with v∈(2−mZ)2v \in (2^{-m}\mathbb{Z})^2. The data of a function at a vertex are (f,fx,fy,fxy)(f, f_x, f_y, f_{xy}) there.

Lemma 1 (the mesh). Let T=TkT = T_k.

  1. Every vertex has order at most the finest level KK, and a vertex of order mm is a corner only of leaves of level at least mm.
  2. Two leaves whose sides lie on the same line and overlap in a segment of positive length have nested sides.
  3. A vertex lies inside a side (not at an end) of at most one leaf. If it lies inside a side of a leaf CC of level ℓ\ell, then its order is greater than ℓ\ell, the vertex is not on ∂Ω\partial\Omega, and each corner of CC has order at most ℓ\ell.

Proof. (1) A corner of a cell of level ℓ\ell lies in (2−ℓZ)2(2^{-\ell}\mathbb{Z})^2, so its order is at most ℓ≤K\ell \le K. If vv of order mm is a corner of a leaf of level ℓ\ell, then m≤ℓm \le \ell.

(2) The sides are dyadic intervals [a2−ℓ,(a+1)2−ℓ][a 2^{-\ell}, (a+1) 2^{-\ell}]. Two dyadic intervals with overlapping interiors are nested.

(3) Say vv lies inside a side of CC, and the side is vertical; the other case is the same. Then CC covers the points next to vv on one side of the line, above and below vv. A leaf DD with vv as a corner exists, because vv is a vertex. DD cannot lie on the side of CC, because leaves do not overlap. So DD lies on the other side, and the line is not part of ∂Ω\partial\Omega near vv. The same argument shows that vv is not on ∂Ω\partial\Omega at all: if vv were on the boundary, the side of CC would have to lie on the boundary, and then no leaf could have vv as a corner. Now suppose that vv also lies inside a side of a leaf C′≠CC' \ne C. If that side is on the same line, C′C' lies on the other side, and covers the points next to vv there, so no leaf has vv as a corner. If that side is horizontal, CC and C′C' overlap in a quadrant next to vv. Both cases are impossible. Last, the coordinate of vv along the side lies strictly between two neighbouring multiples of 2−ℓ2^{-\ell}, so its order is greater than ℓ\ell, while the corners of CC have order at most ℓ\ell. □\square

So the vertices split into the boundary vertices, the T-junctions (the interior vertices that lie inside a side of a leaf, which is their unique host), and the crossings (the other interior vertices). The basis vertices are the boundary vertices and the crossings. The test of CLASSIFY is this definition: vv lies inside a vertical side of a cell of level ℓ\ell exactly when 2ℓvx2^\ell v_x is an integer and 2ℓvy2^\ell v_y is not, and the cell is then one of the two cells of level ℓ\ell to the left and right of vv.

Lemma 2 (data of a spline). Let f∈S(T)f \in S(T).

  1. At every vertex vv, the data of the polynomials of all leaves that contain vv are equal. So the data of ff at vv are well defined.
  2. On each leaf CC, ff is the bicubic Hermite interpolant of its data at the four corners of CC.

Proof. (1) Let AA and BB be leaves on the two sides of a vertical line x=ax = a, with a common segment II of positive length. Since ff is C1C^1, pA(a,y)=pB(a,y)p_A(a, y) = p_B(a, y) and ∂xpA(a,y)=∂xpB(a,y)\partial_x p_A(a, y) = \partial_x p_B(a, y) for y∈Iy \in I. Differentiate in yy: ∂ypA=∂ypB\partial_y p_A = \partial_y p_B and ∂xypA=∂xypB\partial_{xy} p_A = \partial_{xy} p_B on II. These are polynomials, so the equalities also hold at the ends of II. The same holds for a horizontal line. The leaves that contain vv cover a neighbourhood of vv in Ω\Omega. When we go around vv, two consecutive leaves share a segment of positive length that ends at vv. So all their data at vv are equal.

(2) In one variable, cubic Hermite interpolation on an interval reproduces every cubic, because a cubic with zero value and slope at both ends is zero. The bicubic Hermite interpolant is the tensor product of two such operators, so it reproduces every bicubic. □\square

Lemma 3 (when cellwise data give a spline). Let DD assign data to every vertex of TT. Let gg be the function that is, on each leaf, the bicubic Hermite interpolant of DD at the corners of the leaf. Then g∈S(T)g \in S(T) if and only if, for each T-junction ww with host CC, D(w)D(w) equals the data at ww of the polynomial g∣Cg|_C. Call this condition (T).

Proof. If g∈S(T)g \in S(T), then (T) holds by Lemma 2. Conversely, assume (T). Let AA and BB be leaves with a common segment of positive length on a line, say x=ax = a. By Lemma 1(2) the sides are nested; say the side σB\sigma_B of BB lies in the side σA\sigma_A of AA. Each end ww of σB\sigma_B is a corner of AA or lies inside σA\sigma_A. In the second case ww is a T-junction with host AA, by Lemma 1(3). In both cases D(w)D(w) equals the data of pAp_A at ww: in the first case because pAp_A interpolates DD at its corners, in the second case by (T).

On the line x=ax = a, the trace pB(a,⋅)p_B(a, \cdot) on σB\sigma_B is the cubic Hermite interpolant of the values ff and slopes fyf_y of DD at the ends of σB\sigma_B, because the xx shapes are 1 or 0 at x=ax = a and their slopes are 0. In the same way, ∂xpB(a,⋅)\partial_x p_B(a, \cdot) is the cubic Hermite interpolant of fxf_x and fxyf_{xy} at the ends. The traces of pAp_A on σB\sigma_B are cubics with the same data at the ends, so by Lemma 2(2) in one variable they are equal. So pA=pBp_A = p_B and ∂xpA=∂xpB\partial_x p_A = \partial_x p_B on σB\sigma_B, and then also ∂ypA=∂ypB\partial_y p_A = \partial_y p_B there. So gg and ∇g\nabla g are continuous across every common segment of two leaves. Each is a polynomial on each leaf, so each is continuous on Ω\Omega, and g∈S(T)g \in S(T). □\square

Theorem 1 (dimension). The map that takes f∈S(T)f \in S(T) to its data at the basis vertices is a linear bijection onto (R4)Vb+V+(\mathbb{R}^4)^{V_b + V_+}. So dim⁡S(T)=4(Vb+V+)\dim S(T) = 4(V_b + V_+).

Proof. By Lemmas 2 and 3, f↦f \mapsto (its data at all vertices) is a linear bijection from S(T)S(T) onto the set of DD that satisfy (T). Let EE be any data at the basis vertices. We define DD at the T-junctions in increasing order. For a T-junction ww with host CC, the corners of CC have a smaller order than ww by Lemma 1(3), so DD is already defined at them. Set D(w)D(w) to the data at ww of the Hermite interpolant of DD at the corners of CC. Then DD satisfies (T), and it agrees with EE. Every DD that satisfies (T) and agrees with EE is equal to this one, by the same induction. So the restriction to the basis vertices is a bijection from the set of DD that satisfy (T). □\square

Lemma 4 (one step). Let T′=Tk+1T' = T_{k+1} come from T=TkT = T_k by splitting a set RR of leaves of the finest level KK. Then:

  1. The new vertices are the side midpoints and centres of the cells of RR. They have order K+1K + 1.
  2. The host of every T-junction of T′T' is a leaf of TT that is not split. Its corners are vertices of TT.
  3. The old T-junctions stay T-junctions with the same host, and the old basis vertices stay basis vertices. So the set NN of line L2 contains only new vertices.

Proof. (1) The new leaves are the children of the cells of RR. Their corners are the corners of the parents and these five points of order K+1K + 1. A point of order K+1K + 1 is not a vertex of TT, by Lemma 1(1).

(2) A host of level K+1K + 1 would make a T-junction of order greater than K+1K + 1, by Lemma 1(3). That is not possible by Lemma 1(1). So the host has level at most KK and is a leaf of TT that is not split.

(3) An old T-junction ww has order at most KK, so its host has level less than KK, by Lemma 1(3). The host is not split, so ww still lies inside its side. An old basis vertex vv does not lie inside a side of an old leaf. It also does not lie inside a side of a new leaf, because that would give vv an order greater than K+1K + 1. So vv is still a basis vertex. □\square

Invariant. For a basis vertex vv of level ℓ\ell (the step at which it became a basis vertex), let h=2−ℓh = 2^{-\ell}. Let h−h_- and h+h_+ be hh, or 00 when vx=0v_x = 0 or vx=nv_x = n on that side, and let H=h−+h+H = h_- + h_+. Let AvA_v be the 2×22 \times 2 matrix with the rows (h+/H,−3/H)(h_+/H, -3/H) and (h−/H,3/H)(h_-/H, 3/H). Define BvB_v in the same way in yy. The function (v,α,β)(v, \alpha, \beta) has the data Dv(α,β)=(Aα0Bβ0,Aα1Bβ0,Aα0Bβ1,Aα1Bβ1)D_v(\alpha, \beta) = (A_\alpha^0 B_\beta^0, A_\alpha^1 B_\beta^0, A_\alpha^0 B_\beta^1, A_\alpha^1 B_\beta^1) at vv, where AαiA_\alpha^i is the entry in row α\alpha and column ii of AvA_v. The invariant after step kk is this. For each stored function, the stored data (zero where nothing is stored) satisfy (T) on TkT_k, they are Dv(α,β)D_v(\alpha, \beta) at its own vertex vv, and they are zero at every other basis vertex.

Theorem 2 (REFINE keeps the invariant). The invariant holds after every step.

Proof. At step 0 there are no T-junctions, and each function stores Dv(α,β)D_v(\alpha, \beta) at vv only. So the invariant holds.

Assume that it holds for T=TkT = T_k. Let g∈S(T)g \in S(T) be an old function. By Theorem 1 and Lemma 3 its stored data are its data at all vertices of TT. The function gg is also in S(T′)S(T'), because a polynomial on a split cell is a polynomial on each child. Its data at the old vertices do not change. Line L4 computes its data at the new vertices from the polynomial of a split cell PP that contains the new vertex. If PP has zero data at its four corners, the polynomial is zero and line L4 can skip PP. A new vertex on a side shared by two split cells gets the same data from both cells, by Lemma 2(1). So after line L4 the stored data are the data of gg at all vertices of T′T', and they satisfy (T) on T′T'.

Line L5 sets the data at the vertices of NN to zero. Call the result D′D'. Let ww be a T-junction of T′T' with host CC. By Lemma 4(2) the corners of CC are vertices of TT, so by Lemma 4(3) they are not in NN. Also w∉Nw \notin N, because ww is not a basis vertex. So D′D' equals the data of gg at ww and at the corners of CC, and D′D' still satisfies (T). At the old basis vertices D′D' is unchanged, so it is Dv(α,β)D_v(\alpha, \beta) at its own vertex and zero at the others. At the vertices of NN it is zero.

Line L6 stores, for each v∈Nv \in N, the data Dv(α,β)D_v(\alpha, \beta) at vv and zero elsewhere. For a T-junction ww with host CC, the corners of CC are old vertices, so they are not vv, and the polynomial on CC is zero. So the stored zero at ww satisfies (T). □\square

Theorem 3 (basis and partition of unity). After any sequence of steps, the stored functions form a basis of S(T)S(T) and sum to 1.

Proof. det⁡Av=3h+/H2+3h−/H2=3/H≠0\det A_v = 3 h_+/H^2 + 3 h_-/H^2 = 3/H \ne 0, and the same holds for BvB_v. The four vectors Dv(α,β)D_v(\alpha, \beta) are the rows of the Kronecker product Av⊗BvA_v \otimes B_v, with the columns in a fixed order. This product has the determinant (det⁡Av)2(det⁡Bv)2≠0(\det A_v)^2 (\det B_v)^2 \ne 0. By Theorem 2, the images of the functions under the bijection of Theorem 1 form a block diagonal matrix with these invertible 4×44 \times 4 blocks. So the 4(Vb+V+)4(V_b + V_+) functions are a basis.

The rows of AvA_v sum to (1,0)(1, 0), and so do the rows of BvB_v. So ∑α,βDv(α,β)=(1,0,0,0)\sum_{\alpha, \beta} D_v(\alpha, \beta) = (1, 0, 0, 0). At a basis vertex vv, only the four functions of vv have nonzero data. So the sum of all the functions has the data (1,0,0,0)(1, 0, 0, 0) at every basis vertex. The constant 1 has the same data. By Theorem 1 the sum is 1. □\square

Theorem 4 (COEFFICIENTS). Let s∈S(T)s \in S(T) have the data E(v)=(f,fx,fy,fxy)E(v) = (f, f_x, f_y, f_{xy}) at the basis vertex vv. Let s0=−h−/3s_0 = -h_-/3, s1=h+/3s_1 = h_+/3, and define t0,t1t_0, t_1 in the same way in yy. Then s=∑cv,α,β bv,α,βs = \sum c_{v, \alpha, \beta}\, b_{v, \alpha, \beta}, with cv,α,β=f+sαfx+tβfy+sαtβfxyc_{v, \alpha, \beta} = f + s_\alpha f_x + t_\beta f_y + s_\alpha t_\beta f_{xy}.

Proof. Write E(v)E(v) as EijE_{ij}, where ii and jj are the orders of the derivatives in xx and yy. Then cv,α,β=∑i,jEijsαitβjc_{v, \alpha, \beta} = \sum_{i, j} E_{ij} s_\alpha^i t_\beta^j. We have ∑αAα=(1,0)\sum_\alpha A_\alpha = (1, 0), and

∑αsαAα=(−h−3h+H+h+3h−H, h−33H+h+33H)=(0,1).\sum_\alpha s_\alpha A_\alpha = \Bigl(-\frac{h_-}{3} \frac{h_+}{H} + \frac{h_+}{3} \frac{h_-}{H},\ \frac{h_-}{3} \frac{3}{H} + \frac{h_+}{3} \frac{3}{H}\Bigr) = (0, 1).

So ∑αsαiAαi′=δii′\sum_\alpha s_\alpha^i A_\alpha^{i'} = \delta_{i i'}, and the same holds in yy. The data at vv of the sum are

∑α,βcv,α,βAαi′Bβj′=∑i,jEij(∑αsαiAαi′)(∑βtβjBβj′)=Ei′j′.\sum_{\alpha, \beta} c_{v, \alpha, \beta} A_\alpha^{i'} B_\beta^{j'} = \sum_{i, j} E_{ij} \Bigl(\sum_\alpha s_\alpha^i A_\alpha^{i'}\Bigr) \Bigl(\sum_\beta t_\beta^j B_\beta^{j'}\Bigr) = E_{i' j'}.

At vv only the functions of vv contribute. So the sum has the data EE at all basis vertices, and by Theorem 1 it equals ss. □\square

Remarks. (1) A new basis vertex vv of step k+1k + 1 has order K+1K + 1. By Lemma 1(1), the leaves with corner vv are the four (or two, at the boundary) children around vv. The new function of line L6 is zero on every other leaf, because its data are zero at all other vertices. On these leaves it has the same data as the tensor product of the C1C^1 cubic B-splines with the local knots (v−h,v−h,v,v,v+h)(v - h, v - h, v, v, v + h) and (v−h,v,v,v+h,v+h)(v - h, v, v, v + h, v + h), h=2−(K+1)h = 2^{-(K+1)}. Both are in S(T′)S(T'), so they are equal. At step 0 the same argument shows that the basis is the tensor product C1C^1 cubic B-spline basis. (2) By Theorems 2 and 4, an old function gg changes in one step to g−∑v∈N∑α,βcv,α,β(g) bv,α,βg - \sum_{v \in N} \sum_{\alpha, \beta} c_{v, \alpha, \beta}(g)\, b_{v, \alpha, \beta}. Both sides have the same data at all basis vertices of T′T'. This is the modification of Deng and coauthors. (3) The functions are nonnegative. This is proved in the paper of Deng and coauthors, and it is not proved here. The tests check it at sample points.

So EVALUATE, which evaluates the Hermite interpolant of the stored data on the leaf that contains the point, returns the function. REFINE keeps a basis of S(T)S(T) with partition of unity, and COEFFICIENTS gives the coordinates of a spline in that basis. ■\blacksquare

Complexity

Let VV be the number of vertices after the step, LL the number of levels, nn the number of basis functions before the step and rr the number of split cells. The classification in line L1 does O(L)O(L) hash lookups per vertex, so O(VL)O(V L). Lines L3 to L5 test each old function against each split cell and compute at most five new data per cell, so O(nr)O(n r); with an index of the functions by cell, only the O(r)O(r) functions near the split cells do work. Line L6 adds O(r)O(r) functions. The extra space is O(V)O(V) for the classification and O(nr)O(n r) for the new data in the worst case. EVALUATE takes O(L)O(L) time to locate the cell and O(1)O(1) to evaluate.

Variants

  • Modified PHT-splines. Ni, Wang and Deng also allow a cell to be split in half, horizontally or vertically, and build the basis in the same way.
  • Bases without decay. Under some refinements the modified old functions become very small, which hurts the condition number. Kang, Xu, Chen and Deng proposed a basis of tensor B-splines on 2×22 \times 2 submeshes, at the cost of partition of unity, and later work restores partition of unity with weights.
  • Other degrees. Spline spaces over T-meshes with bidegree (m,n)(m, n) and smoothness (α,β)(\alpha, \beta) have a simple dimension formula when m≥2α+1m \ge 2\alpha + 1 and n≥2β+1n \ge 2\beta + 1, by Deng, Chen and Feng. Bicubic C1C^1 is the case used in practice.
  • Related local refinement. Hierarchical and truncated hierarchical B-splines, T-splines and LR B-splines keep C2C^2 cubic splines, so a refinement affects a larger region.

When to use it

Use PHT-splines for adaptive analysis and surface fitting where C1C^1 continuity is enough, for example second order problems in isogeometric analysis, and where you want a refinement that only touches the split cells and their neighbours. Their Hermite data also make interpolation of given values and derivatives at the vertices direct. For problems that need C2C^2 continuity or the higher smoothness of B-splines, use truncated hierarchical B-splines or analysis-suitable T-splines.

Pitfalls

  • Free data at T-junctions. The data at a T-junction must be those of the host's polynomial. Setting them freely gives a function that is not C1C^1, and the tests show the jump in the slope.
  • Splitting a coarse cell late. The construction assumes that each step splits leaf cells of the finest level. Splitting an older cell can turn a T-junction into a crossing, and then the basis update needs extra care.
  • Decay of the basis. Repeated refinement around the same region can make modified old functions very small. Watch the condition number, or use a basis that does not decay.
  • Lower smoothness. The functions are only C1C^1, so the continuity across cells is lower than for cubic B-splines with simple knots, and the number of functions per cell is higher.

Implementations

The Python module stores the leaves in a hash set and each basis function as exact Hermite data at the vertices, classifies the vertices, refines by lines L1 to L6, evaluates by bicubic Hermite interpolation, and computes the coefficients of a spline from its data. The tests check that level 0 gives the tensor C1C^1 cubic B-splines of a Cox-de Boor reference, the counts of the example, that the number of functions equals 4(Vb+V+)4(V_b + V_+) and the dimension of a brute force system of all piecewise bicubics with C1C^1 conditions, linear independence by exact rank, partition of unity, C1C^1 continuity across every T-junction by one-sided finite differences fitted exactly with cubics, that wrong T-junction data break it, that one step equals the subtraction formula of Deng and coauthors with B-splines of the new level, nested spaces, and nonnegativity at sample points.

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

pht_spline.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/pht-spline/. The authors are listed in prov/BQ9V8S.jsonl.

"""PHT-splines (Deng, Chen, Li, Hu, Tong, Yang and Feng), in exact arithmetic.

The domain is [0, n]^2. A cell (l, i, j) is the square of side h = 2^-l with
lower left corner (i h, j h). The mesh starts with the n x n cells of level 0,
and step k + 1 splits some leaf cells of level k into four by a cross. This
is a hierarchical T-mesh.

A function of S(3, 3, 1, 1, T), bicubic on each leaf cell and C^1, is stored
by its Hermite data (f, f_x, f_y, f_xy) at the vertices of the mesh. On each
leaf cell it is the bicubic Hermite interpolant of the data at the four
corners. A vertex is a basis vertex if it lies on the boundary or is an
interior crossing; the other interior vertices are T-junctions, which lie
inside a side of a leaf cell.

Each basis vertex v of level l carries four basis functions. Their data at v
are the products of the values and derivatives at v of the two C^1 cubic
B-splines with knots (v - h, v - h, v, v, v + h) and (v - h, v, v, v + h,
v + h), h = 2^-l, in each direction. At a refinement the old functions are
subdivided on the split cells and their data at the new basis vertices are
set to zero, and four new functions are added at each new basis vertex.
"""

from fractions import Fraction

ZERO = (Fraction(0),) * 4


def hermite_1d(a, b, x):
    """Values and derivatives at x of the cubic Hermite shapes on [a, b].

    The shapes are, in order: value at a, slope at a, value at b, slope at b.
    """
    h = b - a
    t = (x - a) / h
    return [
        (2 * t**3 - 3 * t**2 + 1, (6 * t**2 - 6 * t) / h),
        (h * (t**3 - 2 * t**2 + t), 3 * t**2 - 4 * t + 1),
        (-2 * t**3 + 3 * t**2, (-6 * t**2 + 6 * t) / h),
        (h * (t**3 - t**2), 3 * t**2 - 2 * t),
    ]


def cell_box(cell):
    l, i, j = cell
    h = Fraction(1, 2**l)
    return i * h, (i + 1) * h, j * h, (j + 1) * h


def bicubic(corner_data, box, x, y):
    """(f, f_x, f_y, f_xy) at (x, y) of the bicubic Hermite interpolant on the box.

    corner_data[(cx, cy)] is the data at the corner, cx, cy in {0, 1}.
    """
    x0, x1, y0, y1 = box
    X, Y = hermite_1d(x0, x1, x), hermite_1d(y0, y1, y)
    out = [Fraction(0)] * 4
    for cx in (0, 1):
        for cy in (0, 1):
            d = corner_data[(cx, cy)]
            vx, sx = X[2 * cx], X[2 * cx + 1]  # value shape, slope shape: (value, derivative)
            vy, sy = Y[2 * cy], Y[2 * cy + 1]
            for k, (px, py) in enumerate(((vx, vy), (sx, vy), (vx, sy), (sx, sy))):
                out[0] += d[k] * px[0] * py[0]
                out[1] += d[k] * px[1] * py[0]
                out[2] += d[k] * px[0] * py[1]
                out[3] += d[k] * px[1] * py[1]
    return tuple(out)


class PHT:
    def __init__(self, n):
        self.n, self.K = n, 0
        self.leaves = {(0, i, j) for i in range(n) for j in range(n)}
        self.classify()
        self.vlevel = {v: 0 for v in self.basis_vertices}
        self.funcs = {(v, a, b): {v: self.vertex_data(v, a, b)} for v in sorted(self.basis_vertices) for a in (0, 1) for b in (0, 1)}

    # --- the mesh -------------------------------------------------------
    def corners(self, cell):
        x0, x1, y0, y1 = cell_box(cell)
        return {(0, 0): (x0, y0), (1, 0): (x1, y0), (0, 1): (x0, y1), (1, 1): (x1, y1)}

    def classify(self):
        """Split the vertices into boundary, crossing and T-junction vertices."""
        self.vertices = {p for c in self.leaves for p in self.corners(c).values()}
        self.boundary = {v for v in self.vertices if v[0] in (0, self.n) or v[1] in (0, self.n)}
        self.tjunctions = {}
        for v in self.vertices - self.boundary:
            for l in range(self.K + 1):
                s = 2**l
                x, y = v[0] * s, v[1] * s
                if x.denominator == 1 and y.denominator != 1:
                    hosts = [(l, int(x) - 1, y.numerator // y.denominator), (l, int(x), y.numerator // y.denominator)]
                elif y.denominator == 1 and x.denominator != 1:
                    hosts = [(l, x.numerator // x.denominator, int(y) - 1), (l, x.numerator // x.denominator, int(y))]
                else:
                    continue
                host = [c for c in hosts if c in self.leaves]
                if host:
                    self.tjunctions[v] = host[0]
                    break
        self.crossings = self.vertices - self.boundary - set(self.tjunctions)
        self.basis_vertices = self.boundary | self.crossings

    def locate(self, x, y):
        for l in range(self.K + 1):
            s = 2**l
            i = min(int(x * s), self.n * s - 1)
            j = min(int(y * s), self.n * s - 1)
            if (l, i, j) in self.leaves:
                return (l, i, j)
        raise ValueError("point outside the domain")

    # --- functions --------------------------------------------------------
    def vertex_data(self, v, a, b):
        """Data at v of the basis function (a, b) of the basis vertex v."""
        h = Fraction(1, 2 ** self.vlevel[v])

        def one(u, c):
            hm = h if u > 0 else Fraction(0)
            hp = h if u < self.n else Fraction(0)
            return (hp / (hm + hp), -3 / (hm + hp)) if c == 0 else (hm / (hm + hp), 3 / (hm + hp))

        (vx, dx), (vy, dy) = one(v[0], a), one(v[1], b)
        return (vx * vy, dx * vy, vx * dy, dx * dy)

    def cell_values(self, data, cell, x, y):
        cs = self.corners(cell)
        return bicubic({k: data.get(p, ZERO) for k, p in cs.items()}, cell_box(cell), x, y)

    def evaluate(self, data, x, y):
        """(f, f_x, f_y, f_xy) of the function with the given vertex data, at (x, y)."""
        return self.cell_values(data, self.locate(x, y), x, y)

    def refine(self, cells):
        """One refinement step: split leaf cells of the finest level by a cross."""
        cells = set(cells)
        if any(c not in self.leaves or c[0] != self.K for c in cells):
            raise ValueError("only leaf cells of the finest level are split")
        old_vertices = self.vertices
        for l, i, j in cells:  # @line L1
            self.leaves.remove((l, i, j))
            self.leaves |= {(l + 1, 2 * i + a, 2 * j + b) for a in (0, 1) for b in (0, 1)}
        self.K += 1
        self.classify()
        new_basis = sorted(v for v in self.basis_vertices if v not in self.vlevel)  # @line L2
        for v in new_basis:
            self.vlevel[v] = self.K
        for data in self.funcs.values():  # @line L3
            add = {}
            for c in cells:  # @line L4
                cs = self.corners(c)
                if not any(data.get(p, ZERO) != ZERO for p in cs.values()):
                    continue
                x0, x1, y0, y1 = cell_box(c)
                for w in ((x0 + x1) / 2, y0), ((x0 + x1) / 2, y1), (x0, (y0 + y1) / 2), (x1, (y0 + y1) / 2), ((x0 + x1) / 2, (y0 + y1) / 2):
                    if w not in old_vertices:
                        add[w] = self.cell_values(data, c, w[0], w[1])
            data.update({w: d for w, d in add.items() if d != ZERO})
            for v in new_basis:  # @line L5
                data.pop(v, None)
        for v in new_basis:  # @line L6
            for a in (0, 1):
                for b in (0, 1):
                    self.funcs[(v, a, b)] = {v: self.vertex_data(v, a, b)}
        return new_basis

    def coefficients(self, data):
        """Coefficients on the basis of a spline given by its data at the basis vertices.

        For each basis vertex the four coefficients are the B-spline coefficients
        c = f + s f_x + t f_y + s t f_xy, with s in {-h_minus/3, h_plus/3}.
        """
        out = {}
        for v in sorted(self.basis_vertices):
            h = Fraction(1, 2 ** self.vlevel[v])
            f, fx, fy, fxy = data.get(v, ZERO)
            zero = Fraction(0)
            sx = (-(h if v[0] > 0 else zero) / 3, (h if v[0] < self.n else zero) / 3)
            sy = (-(h if v[1] > 0 else zero) / 3, (h if v[1] < self.n else zero) / 3)
            for a in (0, 1):
                for b in (0, 1):
                    out[(v, a, b)] = f + sx[a] * fx + sy[b] * fy + sx[a] * sy[b] * fxy
        return out
test_pht_spline.py 270 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/pht-spline/. The authors are listed in prov/BQ9V8S.jsonl.

import copy
import random
from fractions import Fraction as F

from pht_spline import PHT, ZERO, cell_box


def cubic_bspline(t, x, end):
    """Reference: cubic B-spline on 5 local knots by Cox-de Boor, closed at the domain end."""
    vals = [F(int(t[k] <= x < t[k + 1] or (x == end and t[k] < t[k + 1] == end))) for k in range(4)]
    for d in range(1, 4):
        vals = [
            ((x - t[k]) / (t[k + d] - t[k]) * vals[k] if t[k + d] != t[k] else 0)
            + ((t[k + d + 1] - x) / (t[k + d + 1] - t[k + 1]) * vals[k + 1] if t[k + d + 1] != t[k + 1] else 0)
            for k in range(len(vals) - 1)
        ]
    return vals[0]


def local_knots(u, h, n, c):
    """Local knots of the C^1 cubic B-spline c in {0, 1} of the vertex u with spacing h."""
    lo, hi = max(u - h, F(0)), min(u + h, F(n))
    if u == 0:
        lo = F(0)
    return (lo, lo, u, u, hi) if c == 0 else (lo, u, u, hi, hi)


def tensor_bspline(v, h, n, a, b, x, y):
    return cubic_bspline(local_knots(v[0], h, n, a), x, F(n)) * cubic_bspline(local_knots(v[1], h, n, b), y, F(n))


def example():
    T = PHT(2)
    T.refine([(0, 0, 0)])
    T.refine([(1, 1, 1)])
    return T


def random_mesh(rng, n=2, steps=3):
    T = PHT(n)
    for _ in range(steps):
        finest = sorted(c for c in T.leaves if c[0] == T.K)
        T.refine(rng.sample(finest, min(len(finest), rng.randint(1, 3))))
    return T


def cases():
    rng = random.Random(1)
    yield example()
    for _ in range(2):
        yield random_mesh(rng)


def pts(rng, k, n):
    return [(F(rng.randint(0, 1000 * n), 1000), F(rng.randint(0, 1000 * n), 1000)) for _ in range(k)]


def combine(T, coeffs):
    out = {}
    for key, c in coeffs.items():
        for v, d in T.funcs[key].items():
            out[v] = tuple(a + c * b for a, b in zip(out.get(v, ZERO), d))
    return out


def rank(vectors):
    pivots = {}
    for v in vectors:
        v = {k: x for k, x in v.items() if x}
        while v:
            k = min(v)
            if k not in pivots:
                pivots[k] = v
                break
            p = pivots[k]
            f = v[k] / p[k]
            for kk, x in p.items():
                v[kk] = v.get(kk, F(0)) - f * x
            v = {kk: x for kk, x in v.items() if x}
    return len(pivots)


def brute_dimension(T):
    """dim S(3, 3, 1, 1, T) from all piecewise bicubics with C^1 conditions across each shared edge."""
    cells = sorted(T.leaves)
    idx = {c: k for k, c in enumerate(cells)}
    eqs = []
    for A in cells:
        ax0, ax1, ay0, ay1 = cell_box(A)
        for B in cells:
            bx0, bx1, by0, by1 = cell_box(B)
            if ax1 == bx0 and min(ay1, by1) > max(ay0, by0):
                line, swap = ax1, False
            elif ay1 == by0 and min(ax1, bx1) > max(ax0, bx0):
                line, swap = ay1, True
            else:
                continue
            for q in range(4):
                for deriv in (0, 1):
                    e = {}
                    for p in range(4):
                        w = line**p if deriv == 0 else (p * line ** (p - 1) if p else F(0))
                        k = 4 * q + p if swap else 4 * p + q  # the power p is in the normal direction
                        if w:
                            e[16 * idx[A] + k] = e.get(16 * idx[A] + k, F(0)) + w
                            e[16 * idx[B] + k] = e.get(16 * idx[B] + k, F(0)) - w
                    eqs.append(e)
    return 16 * len(cells) - rank(eqs)


def fit_cubic(vals):
    """Coefficients a0..a3 of the cubic through (k, vals[k-1]), k = 1..4."""
    rows = [[F(k) ** e for e in range(4)] + [vals[k - 1]] for k in range(1, 5)]
    for c in range(4):
        piv = next(r for r in range(c, 4) if rows[r][c])
        rows[c], rows[piv] = rows[piv], rows[c]
        for r in range(4):
            if r != c and rows[r][c]:
                f = rows[r][c] / rows[c][c]
                rows[r] = [a - f * b for a, b in zip(rows[r], rows[c])]
    return [rows[c][4] / rows[c][c] for c in range(4)]


def jumps(T, data, p, axis, d):
    """Jumps of f and of its derivative along `axis` across the line through p.

    The one-sided values f(p +- k d e) for k = 1..4 are fitted by cubics, which
    is exact since f is a cubic on each side; the fits give the one-sided
    limits of f and of the derivative at p.
    """
    e = (1, 0) if axis == 0 else (0, 1)
    R = fit_cubic([T.evaluate(data, p[0] + k * d * e[0], p[1] + k * d * e[1])[0] for k in range(1, 5)])
    L = fit_cubic([T.evaluate(data, p[0] - k * d * e[0], p[1] - k * d * e[1])[0] for k in range(1, 5)])
    return R[0] - L[0], (R[1] + L[1]) / d


def tjunction_probes(T):
    """Points next to each T-junction on the long side and on the stem, with the normal axis."""
    eps = F(1, 2 ** (T.K + 2))
    out = []
    for v, C in sorted(T.tjunctions.items()):
        x0, x1, y0, y1 = cell_box(C)
        if v[0] in (x0, x1):  # the long side is vertical
            out += [((v[0], v[1] + eps), 0), ((v[0], v[1] - eps), 0)]
            stem_x = v[0] - eps if v[0] == x0 else v[0] + eps
            out.append(((stem_x, v[1]), 1))
        else:
            out += [((v[0] + eps, v[1]), 1), ((v[0] - eps, v[1]), 1)]
            stem_y = v[1] - eps if v[1] == y0 else v[1] + eps
            out.append(((v[0], stem_y), 0))
    return out, eps / 8


def test_level_0_basis_is_the_tensor_c1_bicubic_b_splines():
    T = PHT(3)
    assert len(T.funcs) == 4 * 16
    rng = random.Random(2)
    for (v, a, b), data in T.funcs.items():
        for x, y in pts(rng, 4, 3):
            assert T.evaluate(data, x, y)[0] == tensor_bspline(v, F(1), 3, a, b, x, y)


def test_dimension_formula_against_brute_force():
    T = PHT(2)
    dims = [len(T.funcs)]
    T.refine([(0, 0, 0)])
    dims.append(len(T.funcs))
    T.refine([(1, 1, 1)])
    dims.append(len(T.funcs))
    assert dims == [36, 48, 52]
    assert len(T.tjunctions) == 6
    for T in cases():
        n_basis = 4 * (len(T.boundary) + len(T.crossings))
        assert len(T.funcs) == n_basis == brute_dimension(T)


def support_cells(T, data):
    """The leaf cells with a corner where the data are not zero; the function is zero on the others."""
    return [c for c in sorted(T.leaves) if any(p in data for p in T.corners(c).values())]


def grid(c, k):
    x0, x1, y0, y1 = cell_box(c)
    return [(x0 + (x1 - x0) * s / (k + 1), y0 + (y1 - y0) * t / (k + 1)) for s in range(1, k + 1) for t in range(1, k + 1)]


def test_basis_is_linearly_independent():
    # a bicubic on a cell is fixed by its values on a 4 x 4 grid, so the rank of
    # these values is the rank of the functions
    for T in cases():
        vecs = []
        for data in T.funcs.values():
            vecs.append({(c, s): T.cell_values(data, c, x, y)[0] for c in support_cells(T, data) for s, (x, y) in enumerate(grid(c, 4))})
        assert rank(vecs) == len(T.funcs)


def test_partition_of_unity():
    rng = random.Random(3)
    for T in cases():
        total = combine(T, {k: F(1) for k in T.funcs})
        for x, y in pts(rng, 10, T.n):
            assert T.evaluate(total, x, y) == (1, 0, 0, 0)


def test_c1_across_t_junctions_by_finite_differences():
    rng = random.Random(4)
    for T in cases():
        probes, d = tjunction_probes(T)
        assert probes
        spline = combine(T, {k: F(rng.randint(-9, 9)) for k in T.funcs})
        some = rng.sample(sorted(T.funcs), 2)
        for p, axis in probes:
            assert jumps(T, spline, p, axis, d) == (0, 0)
            for key in some:
                assert jumps(T, T.funcs[key], p, axis, d) == (0, 0)


def test_wrong_t_junction_data_breaks_c1():
    T = example()
    spline = combine(T, {k: F(1) for k in T.funcs})
    v, C = sorted(T.tjunctions.items())[0]
    f, fx, fy, fxy = spline[v]
    spline[v] = (f, fx + 1, fy + 1, fxy)
    probes, d = tjunction_probes(T)
    near = [(p, axis) for p, axis in probes if abs(p[0] - v[0]) + abs(p[1] - v[1]) < F(1, 2**T.K)]
    assert any(jumps(T, spline, p, axis, d)[1] != 0 for p, axis in near)


def test_refinement_matches_deng_truncation_formula():
    rng = random.Random(5)
    T0 = PHT(2)
    T = copy.deepcopy(T0)
    new = T.refine([(0, 0, 0), (0, 1, 0)])
    h = F(1, 2)
    for (v0, a0, b0), data in T0.funcs.items():
        dual = {}
        for v in new:
            f, fx, fy, fxy = T0.evaluate(data, v[0], v[1])
            sx = (-(h if v[0] > 0 else F(0)) / 3, (h if v[0] < 2 else F(0)) / 3)
            sy = (-(h if v[1] > 0 else F(0)) / 3, (h if v[1] < 2 else F(0)) / 3)
            for a in (0, 1):
                for b in (0, 1):
                    dual[(v, a, b)] = f + sx[a] * fx + sy[b] * fy + sx[a] * sy[b] * fxy
        for x, y in pts(rng, 6, 2):
            ref = tensor_bspline(v0, F(1), 2, a0, b0, x, y)
            ref -= sum(c * tensor_bspline(v, h, 2, a, b, x, y) for (v, a, b), c in dual.items())
            assert T.evaluate(T.funcs[(v0, a0, b0)], x, y)[0] == ref


def test_refinement_gives_nested_spaces():
    rng = random.Random(6)
    T = PHT(2)
    for _ in range(3):
        old = copy.deepcopy(T)
        spline = combine(old, {k: F(rng.randint(-5, 5)) for k in old.funcs})
        finest = sorted(c for c in T.leaves if c[0] == T.K)
        T.refine(rng.sample(finest, min(2, len(finest))))
        data = {v: old.evaluate(spline, v[0], v[1]) for v in T.basis_vertices}
        again = combine(T, T.coefficients(data))
        for x, y in pts(rng, 8, 2):
            assert T.evaluate(again, x, y)[0] == old.evaluate(spline, x, y)[0]


def test_basis_functions_are_nonnegative_at_samples():
    for T in cases():
        for data in T.funcs.values():
            assert all(T.cell_values(data, c, x, y)[0] >= 0 for c in support_cells(T, data) for x, y in grid(c, 3))

History

Deng, Chen and Feng gave the dimension of spline spaces over T-meshes in 2006. In 2008 Deng, Chen, Li, Hu, Tong, Yang and Feng defined PHT-splines on hierarchical T-meshes, with the level by level basis and its use for surface fitting. Nguyen-Thanh, Nguyen-Xuan, Bordas and Rabczuk used them for isogeometric analysis of elastic solids in 2011. Later work changed the basis to avoid decay and allowed splits in half.

References

  1. Jiansong Deng, Falai Chen, Xin Li, Changqi Hu, Weihua Tong, Zhouwang Yang and Yuyu Feng, Polynomial splines over hierarchical T-meshes, Graphical Models 70(4) (2008), 76 to 86, the hierarchical T-mesh, the basis vertices, the level by level construction of the basis with modification of the old functions, and its properties (general locator)
  2. Jiansong Deng, Falai Chen and Yuyu Feng, Dimensions of spline spaces over T-meshes, Journal of Computational and Applied Mathematics 194(2) (2006), 267 to 283, the dimension formula for spline spaces over T-meshes, which gives 4(V_b + V_+) for C1 bicubic splines on hierarchical T-meshes (general locator)
  3. Qian Ni, Xuhui Wang and Jiansong Deng, Modified PHT-splines, Computer Aided Geometric Design 73 (2019), 37 to 53, Section 2.3, formula (1), the dimension formula; Definition 4, modification by setting the Bezier ordinates of the new basis vertices to zero; Definition 5 and Theorem 6, the basis and its properties, for meshes that also allow splits in half
  4. N. Nguyen-Thanh, H. Nguyen-Xuan, S. P. A. Bordas and T. Rabczuk, Isogeometric analysis using polynomial splines over hierarchical T-meshes for two-dimensional elastic solids, Computer Methods in Applied Mechanics and Engineering 200(21-22) (2011), 1892 to 1908, adaptive isogeometric analysis of plane elasticity with PHT-splines (general locator)
  5. Hongmei Kang, Jinlan Xu, Falai Chen and Jiansong Deng, A new basis for PHT-splines, Graphical Models 82 (2015), 149 to 159, the decay of the original basis functions under some refinements, and a basis of tensor B-splines on 2 by 2 submeshes (general locator)

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 proofH1 sketch
  • a full proof of time.average
  • a full proof of time.best
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/BQ9V8S/text.yaml