Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract
We present a formulation of Willmore flow for triangulated sur-
faces that permits extraordinarily large time steps and naturally
preserves the quality of the input mesh. The main insight is
that Willmore flow becomes remarkably stable when expressed
in curvature space we develop the precise conditions under
which curvature is allowed to evolve. The practical outcome is
a highly efficient algorithm that naturally preserves texture and
does not require remeshing during the flow. We apply this algo-
rithm to surface fairing, geometric modeling, and construction
of constant mean curvature (CMC) surfaces. We also present a
new algorithm for length-preserving flow on planar curves, which Figure 1: A detailed frog flows to a round sphere in only three large,
provides a valuable analogy for the surface case. explicit time steps (top). Meanwhile, the quality of the triangula-
tion (bottom) is almost perfectly preserved.
CR Categories: I.3.5 [Computer Graphics]: Computational Ge-
ometry and Object ModelingGeometric algorithms, languages,
and systems
of position, we work with a quantity called mean curvature half-
Keywords: digital geometry processing, discrete differential density. Not surprisingly, curvature-based energies become much
geometry, geometric modeling, surface fairing, shape spaces, con- easier to minimize when working directly with curvature itself!
formal geometry, quaternions, spin geometry However, we must now understand the precise integrability con-
ditions under which curvature variables remain valid, i.e., when
Links: DL PDF can curvature be integrated to recover position? Kamberov et
al. [1998] and later Crane et al. [2011] investigate this ques-
tion in the case of topological spheres; we complete the picture
1 Introduction by establishing previously unknown integrability conditions for
surfaces of arbitrary topological type. In this paper we focus on
At the most basic level, a curvature flow produces successively curvature flow, providing a drop-in replacement for applications
smoother approximations of a given piece of geometry (e.g., a involving surface fairing and variational surface modeling in
curve or surface), by reducing a fairing energy. Such flows have particular, we show how to express Willmore flow via gradient
far-ranging applications in fair surface design, inpainting, de- descent on a quadratic energy subject to simple linear constraints.
noising, and biological modeling [Helfrich 1973; Canham 1970]; These insights are not specific to curvature flow, however, and
they are also the central object in mathematical problems such can be applied to any geometry processing application where
as the Willmore conjecture [Pinkall and Sterling 1987]. preservation of the texture or mesh is desirable.
Numerical methods for curvature flow suffer from two principal
difficulties: (I) a severe time step restriction, which often yields 2 Preliminaries
unacceptably slow evolution and (II) degeneration of mesh ele-
ments, which necessitates frequent remeshing or other corrective
devices. We circumvent these issues by (I) using a curvature- We adopt two essential conventions from Crane et al. [2011].
based representation of geometry, and (II) working with confor- First, we interpret any surface in R3 (e.g., a triangle mesh) as
mal transformations, which naturally preserve the aspect ratio of the image of a conformal immersion (Section 2.2.1). Second,
triangles. The resulting algorithm stably integrates time steps or- we interpret three-dimensional vectors as imaginary quaternions
ders of magnitude larger than existing methods (Figure 1), result- (Section 2.3). Proofs in the appendix make use of quaternion-
ing in substantially faster real-world performance (Section 6.4.2). valued differential forms; interested readers may benefit from
the material in [Kamberov et al. 2002].
The success of our method results from a judiciously-chosen
change of variables: instead of expressing energy as a function
f = EW ( f ).
Figure 4: We work with angle-preserving or conformal maps, which A bi-Laplacian term also appears in surface diffusion flow [Schnei-
simplify analytical expressions and result in numerical robustness der and Kobbelt 2001]. Importantly, all these flows are nonlinear
at the computational level. PDEs since the operator is itself a function of the immersion f .
Figure 5: Left: a bump representative of small surface detail. Cen-
ter: standard fairing distorts texture, even with tangential smooth-
ing (method of Yoshizawa & Belyaev [2002] applied to the method Figure 7: Fairing a triangle mesh (left) via standard methods
of Desbrun et al. [1999]). Right: conformal fairing preserves tex- such as implicit mean curvature flow (center) produces significant
ture while producing a pleasing geometric shape. conformal distortion () and sharp geometric discontinuities. Pro-
jecting onto an angle-preserving deformation does not help, since
in the discrete case such deformations are rigid and one simply
From this perspective, many algorithms for surface fairing arise recovers the initial surface (right).
from different choices of spatial and temporal discretization:
Brakkes Surface Evolver [1992] minimizes membrane energy via
explicit gradient descent, corresponding to mean curvature flow Existing flows also produce unwanted metric distortion which
via the forward Euler method; Taubins | algorithm [1995] degrades texture and mesh elements, and further exacerbates sta-
amounts to bi-Laplacian flow via forward Euler when = ; bility issues. By working with conformal immersions we naturally
and the implicit fairing method of Desbrun et al. [1999] corre- preserve these features. Simpler alternatives do not quite work
sponds to mean curvature flow via backward Euler. More recently, as desired. For instance, Laplacian-based tangential smoothing
Bobenko and Schrder [2005] and Wardetzky et al. [2007] inves- helps avoid degenerate elements, at the cost of distorting texture
tigate discrete Willmore flow, using a semi-implicit quasi-Newton (Figure 5) and suffers from the same stability issues as curvature
scheme to cope with nonlinearity. Common to all these meth- flow itself [Yoshizawa and Belyaev 2002]. Similarly, adaptive
ods are time step restrictions based on the smallest edge length remeshing helps maintain element quality [deGoes et al. 2008],
h at a practical level performance degrades rapidly as resolu- but neither prevents texture distortion nor improves asymptotic
tion increases or elements degenerate. Explicit methods typically stability. Another tempting idea is to project an existing flow onto
exhibit restrictions of O(h2 ) and O(h4 ) for mean curvature and the nearest angle-preserving deformation, yet in the discrete case
Willmore flow, respectively (see [Olischlger and Rumpf 2009] this approach is far too rigid since neighboring triangles are
for a proposal to ameliorate this restriction). Implicit integrators forced to have identical scale. Figure 7 demonstrates that projec-
such as backward Euler improve the situation, but do not guar- tions via ShapeUp [Bouaziz et al. 2012] very nearly restore the
antee unconditional stability since flows are inherently nonlinear, original surface, reverting any fairing that may have occurred.
due to the dependence of on f (cf. [Desbrun et al. 1999]). In
Finally, conformal flows of the metric (e.g., Yamabe) have proven
light of this situation, it is rather remarkable to find a change of
invaluable for applications like parameterization [Gu et al. 2011].
variables that evades this restriction.
However, these methods work with intrinsic (Gaussian) curvature
One can also compare geometric qualities of these methods. For which is insufficient to determine the three-dimensional geom-
example, mean curvature flow can develop sharp singularities etry of a surface, and hence cannot be used for fairing. To our
which undermine the fairing process, even in the continuous knowledge, ours is the first method for extrinsic conformal flow,
setting [Colding and Minicozzi 2009]. Kazhdan et al. propose a making it naturally suited to surfaces immersed in R3 .
modification that helps avoid degeneracy but can still produce
sharp features; in contrast, Willmore or bi-Laplacian flow tend 4 Curvature Flow in Curvature Space
to produce rounder, more sthetic shapes (Figure 6). These
flows also permit tangent constraints at the boundary, valuable Our main point of departure from existing algorithms is that we
for geometric modeling [Celniker and Gossard 1991; Welch and manipulate curvature directly for now, let u denote a generic
Witkin 1994; Clarenz et al. 2004]. curvature variable equal to either for curves or for surfaces.
Fairness is measured via the quadratic energy
E(u) := ||u||2 ,
u = 2u. (1)
Table 1: Our algorithms for curve (left) and surface (right) flows are nearly identical in structure.
P
v v i v, ci ci . To recover the final geometry we integrate 5 Isometric Curve Flows
curvature to get tangents, then integrate tangents to get posi-
tions, as discussed in Sections 5 and 6. The overall procedure is Let f : [0, L] R2 be an isometrically immersed curve with unit
outlined in Table 1. tangents T = f 0 and curvature normal N = T 0 . A natural fairing
energy is just the squared L 2 norm of curvature
Our formulation has a number of valuable consequences. First,
since only curvatures are prescribed, we are free to reconstruct RL
positions that preserve lengths (Figure 9) or angles (Figure 1). EC () := 0
2 d` = ||||2 .
Unlike constraint- or penalty-based methods, these quantities are
preserved by construction. Note that this energy would be rather difficult to express in terms
of the positions f , involving second derivatives and a high degree
Second, this scheme leads to greatly improved stability, chiefly of nonlinearity.
because the flow we want to integrate (Eq. (1)) involves no spa-
tial derivatives. Therefore, our one and only stability criterion For open curves, the resulting flow can be integrated without
is that |1 2| < 1, or equivalently, < 1. (The addition of modification. In the case of a closed regular curve, however,
constraints only improves stability, since projection onto the con- must satisfy two additional constraints: endpoints must meet
straint set reduces the norm of the speed function.) Experiments ( f (0) = f (L)), and tangents must agree at endpoints (T (0) =
agree perfectly with this analysis: setting just above 1 yields T (L)). How do we express these constraints in terms of ? The
an unstable flow; setting it just below 1 produces a stable flow, latter condition implies that the tangent turns around a whole
independent of mesh quality or resolution (Figure 18). number of times as we walk around the curve, or equivalently,
RL
Note that the flow u = 2u gives an appearance different from that the total curvature 0 d` equals 2k for some fixed turning
traditional smoothing, since we take the gradient of E with re- number k Z. If satisfies this condition at time t = 0, it will
spect to a nonstandard metric (L 2 norm on curvature rather remain satisfied as long as the total curvature does not change,
RL
than position). In particular, large features shrink at the same i.e., as long as 0 d` = 0. The condition f (0) = f (L) is not quite
rate as small bumps see Figure 19 and Appendix F. To achieve as easy to reformulate, but a fairly straightforward derivation
more typical behavior, one can simply filter the flow direction v (Appendix A) reveals another simple linear condition, namely
we use the spectral filter RL
0
f d` = 0. A concise way to write the whole collection of
v v (id k )1 v, constraints is then
5.2 Spatial Discretization for new positions f. A surface obtained this way will have curva-
ture = + ( )|df|, and will by construction be a conformal
deformation of the original surface. We solve these equations as
We discretize f as a collection of vertex coor- fi Ti,i+1 described in [Crane et al. 2011], except that for convenience we
dinates f1 , . . . , f m R2 , tangents Tij = fj fi now specify as a value per vertex Appendix G gives a simple
associated with edges, and curvatures i R fi1 fi+1
facewise construction of the final matrix used to solve Eq. (5).
at vertices. Let `ij = |Tij | be the edge lengths of the initial curve.
To recover tangents we compute cumulative sums 6.1 Willmore Flow
k
The key motivation for working with this setup is that Willmore
X
1
k = 0 + (`i1,i + `i,i+1 )i .
2 energy amounts to a simple quadratic function of mean curvature
i=1
half density:
New tangent vectors are then given by Tij = `ij (cos i , sin i ). To R R
recover positions we solve the discrete Poisson equation L f = b EW () = M
H 2 |df|2 = M
2 = kk2 .
where L is an m m matrix with off-diagonal entries Lij = 1/`ij
for any edge (i, j) and diagonal entries Lii = 1/`i1,i + 1/`i,i+1 . The Gradient flow with respect to is then quite simply = 2,
right-hand side b is the discrete divergence of the new tangent or equivalently, = H (Appendix F). We again apply the for-
field, given by bi = Ti,i+1 /`i,i+1 Ti1,i /`i1,i at each vertex. (Note ward Euler scheme m+1 = m 2H m , where H m is the mean
curvature of the current mesh computed via the cotan opera- to any remaining constraints. Figure 12 compares surfaces of non-
tor [Desbrun et al. 1999]. In practice we express with respect trivial genus obtained with and without our exactness constraint.
to the previous surface in the flow, hence m = 0 and we simply Notice that this constraint is crucial not only for preserving tex-
solve the smallest eigenvalue problem (D + H m ) = . ture, but also for preventing degenerate geometry. Figure 13
illustrates scale artifacts resulting from sphere inversions, and
the improved area distribution resulting from Mbius balancing.
Figure 13: Topologists view a of a coffee cup. Top: Sphere inver- Figure 14: Top left: prescribing new boundary data from the N B
sions neither distort angles nor increase Willmore energy, but dis- plane (excluding N ) results in a well-behaved boundary value
tort area in undesirable ways. Bottom: a simple linear constraint problem. For instance, rotated binormals at the top of a cylinder
prevents unnecessary inversion, and improves area distortion by produce a natural bend (top right); oscillating binormals on the
flowing toward a desired metric. hemisphere yield a CMC surface (bottom).
A B C D E
on mesh quality. Our method is also the first to gracefully pre- Chen, Y., Davis, T. A., Hager, W. W., and Rajamanickam, S. 2008.
serve the appearance of texture throughout the flow. Note that CHOLMOD, Supernodal Sparse Cholesky Factorization and
although we have developed this machinery in the context of Update/Downdate. ACM Trans. Math. Softw. 35.
Willmore flow, it could be applied to other flows of interest by Clarenz, U., Diewald, U., Dziuk, G., Rumpf, M., and Rusu, R.
simply changing the initial flow direction u. A promising avenue 2004. A Finite Element Method for Surface Restoration with
for future work is a more thorough investigation of curvature- Smooth Boundary Conditions. Comput. Aided Geom. Des. 21,
based filtering, as already hinted at in Section 4. We are also 5, 427445.
eager to investigate whether this type of approach can be used
to help stabilize flows based on higher-order fairness energies. Colding, T. H., and Minicozzi, II, W. P. 2009. Generic mean
curvature flow I; generic singularities. ArXiv e-prints.
Crane, K., Pinkall, U., and Schrder, P. 2011. Spin Trans-
Acknowledgments This research was supported by a Google
formations of Discrete Surfaces. ACM Trans. Graph. 30, 4,
PhD Fellowship, the Hausdorff Research Institute for Mathemat-
104:1104:10.
ics, BMBF Research Project GEOMEC, SFB / Transregio 109 Dis-
cretization in Geometry and Dynamics, and the TU Mnchen Crane, K., 2012. SpinXForm. http://multires.caltech.edu/
Institute for Advanced Study, funded by the German Excellence ~keenan/project_spinxform.html#sourcecode.
Initiative. Meshes provided by the Stanford Computer Graphics deGoes, F., Goldenstein, S., and Velho, L. 2008. A simple and
Laboratory and the AIM@SHAPE Shape Repository. flexible framework to adapt dynamic meshes. Comp. & Graph.
32, 2, 141148.
References Desbrun, M., Meyer, M., Schrder, P., and Barr, A. 1999. Im-
plicit Fairing of Irregular Meshes using Diffusion and Curvature
Blaschke, W. 1929. Vorlesungen ber Differentialgeometrie III. Flow. In Proc. ACM/SIGGRAPH Conf., 317324.
Springer. Eckstein, I., Pons, J.-P., Tong, Y., Kuo, C. J., and Desbrun, M.
Bobenko, A., and Schrder, P. 2005. Discrete Willmore Flow. In 2007. Generalized Surface Fows for Mesh Processing. In Proc.
Proc. Symp. Geom. Proc., 101110. Symp. Geom. Proc., 183192.
Bohle, C., and Pinkall, U. 2013. Conformal deformations of Gu, X., Zeng, W., Luo, F., and Yau, S.-T. 2011. Numerical Com-
immersed discs in $R3$ and elliptic boundary value problems. putation of Surface Conformal Mappings. Comp. Meth. & Fun.
ArXiv e-prints (Jan.). Theory. 11, 2, 747787.
Botsch, M., and Kobbelt, L. 2004. A Remeshing Approach to Helfrich, W. 1973. Elastic Properties of Lipid Bilayers: Theory
Multiresolution Modeling. In Proc. Symp. Geom. Proc., 185 and Possible Experiments. Z. Naturf. C 28, 11, 693703.
192. Kamberov, G., Pedit, F., and Pinkall, U. 1998. Bonnet Pairs and
Bouaziz, S., Deuss, M., Schwartzburg, Y., Weise, T., and Pauly, Isothermic Surfaces. Duke Math. J. 92, 3, 637644.
M. 2012. Shape-Up: Shaping Discrete Geometry with Projec- Kamberov, G., Norman, P., Pedit, F., and Pinkall, U. 2002. Quater-
tions. Proc. Symp. Geom. Proc. 31, 5. nions, Spinors and Surfaces, Vol. 299 of CONM. AMS.
Brakke, K. 1992. The Surface Evolver. Experiment. Math. 1, 2, Kazhdan, M., Solomon, J., and Ben-Chen, M. 2012. Can Mean-
141165. Curvature Flow Be Made Non-Singular? Comp. Graph. Forum.
Canham, P. B. 1970. The Minimum Energy of Bending as a Olischlger, N., and Rumpf, M. 2009. Two Step Time Dis-
Possible Explanation of the Biconcave Shape of the Human cretization of Willmore Flow. In Mathematics of Surfaces XIII,
Red Blood Cell. J. Th. Bio. 26, 1, 6181. Vol. 5654/2009 of Lect. N. in Comp. Sc. 278292.
Celniker, G., and Gossard, D. 1991. Deformable Curve and Pan, H., Choi, Y.-K., Liu, Y., Hu, W., Du, Q., Polthier, K., Zhang,
Surface Finite-Elements for Free-Form Shape Design. Comp. C., and Wang, W. 2012. Robust modeling of constant mean
Graph. (Proc. of ACM/SIGGRAPH Conf.) 25, 4, 257266. curvature surfaces. Proc. ACM/SIGGRAPH Conf. 31, 4.
Pinkall, U., and Sterling, I. 1987. Willmore Surfaces. Math. C Exactness
Intell. 9, 2, 3843.
A transformation is integrable as long as the resulting differ-
Sander, P. V., Snyder, J., Gortler, S. J., and Hoppe, H. 2001.
Texture Mapping Progressive Meshes. In Proc. ACM/SIGGRAPH ential := df is exact ( = d f for some new immersion f).
Conf., 409416. When M is simply-connected, it is sufficient for to be closed
(d = 0) this condition leads directly to Eq. (5) (see [Crane
Schneider, R., and Kobbelt, L. 2001. Geometric Fairing of et al. 2011, App. B]). When M is not simply connected, we must
Irregular Meshes for Free-From Surface Design. Comput. Aided also ensure that has no harmonic component. Here we seek the
Geom. Des. 18, 4, 359379. corresponding condition on curvature.
Taubin, G. 1995. A Signal Processing Approach to Fair Surface Let {i }, i = 1, . . . , 2g be a basis for real-valued harmonic 1-forms
Design. In Proc. ACM/SIGGRAPH Conf., 351358. on a closed surface M , and note that H-linear combinations of
Wardetzky, M., Bergou, M., Harmon, D., Zorin, D., and Grin- these bases span all harmonic 1-forms. To preserve integrability,
spun, E. 2007. Discrete Quadratic Curvature Energies. Comput. then, we must ensure that , i = 0 for all i. Differentiating
Aided Geom. Des. 24, 8-9, 499518. with respect to time yields = df + df = 2 Im(df ) which
Welch, W., and Witkin, A. 1994. Free-Form Shape Design Using R that must satisfy Im(df ), i = 0, or equivalently
means
Triangulated Surfaces. Comp. Graph. (Proc. of ACM/SIGGRAPH Im M ?i df = 0 for all i. Evaluating the integrand yields
Conf.) 28, 247256.
?i df (X , J X ) = i (J X )df (J X ) + i (X )df (X )
Yoshizawa, S., and Belyaev, A. G. 2002. Fair Triangle Mesh
Generation with Discrete Elastica. In Geo. Mod. & Proc., 119 = df (i (X )X + i (J X )J X ) = df (Yi ) =: i ,
| {z }
123. =:Yi
= M Zi a, D = M Zi a, = M Zi , a .
Finally, V, E, and F denote vertices, edges, and faces, respectively.
where we have used the identity ddt q1 = q1 qq1 . Hence, Figure 19: Left: original surface. Gradient descent with respect to
d f = df (a f ) + ( f a)df . But since df (t) = (t)df (0)(t) and scales features uniformly (center left). Removing low-frequency
df , implying that = a f . components of the flow (center right) closely approximates stan-
(0) = 1, we also have d f = df +
dard (position-based) Willmore flow (right).
The corresponding change in curvature is determined via the
relationship D = . In particular, let b R3 be the component
of a orthogonal to N so that a = b + a, N N . Then E.1 Implementation
df b df (X , J X ) = df (X )b df (J X ) df (J X )b df (X ) On a mesh with vertex areas i , desired vertex areas i , and ver-
= df (X )bN df (X ) N df (X )b df (X ) tex normals Ni the balancing direction a is computed as follows:
= df (X )(bN + N b)df (X ) = 0, I. Compute scale factors ui 1
log(i /i ) at each vertex.
2
where we have used the identities N df (X ) = df (J X ), N df (X ) = P|V | P|V |
df (X )N , and bN = N b. Hence D(b f ) = 0 and we find that II. Remove the mean via u0i ui i=1 i ui / i=1 i .
any curvature change corresponding to an inversion has the form P
III. Compute the vector v i i fi u0i .
df a, N N df 2N |df|2
IV. Solve Ba = v where B = 4 i i Ni Ni T .
P
= D = = a, N N = 2 a, N
|df|2 |df|2
V. Normalize a a/Ba, a1/2 .
for some a R3 . To avoid such motions, we therefore require
, N x = , N y = , N z = 0 F Scaling Flow
x y z
where N , N , N are the scalar components of the normal N . Consider an immersed surface f : M R3 . In a sufficiently
small ball around any point
p M we can express f via
E Mbius Balancing the height function h p (q) = N (p), f (q) f (p) . Noting that
N (p) and f (p) are constant with respect to q, we have h p =
N (p), f = 2H N (p), N . In particular, when q = p we get
We seek a sphere inversion that moves our current surface to-
wards a desired distribution of area, up to uniform global scaling. H(p) = 12 (h p )(p). Now consider an evolution of the surface that
If dA is the desired metric, then we have |df|2 = e2u dA for some looks like h p = h p at some point p, i.e., an exponential scaling
real function u. Since the metric of the transformed surface is down of height over the tangent plane. Then differentiating H(p)
|d f|2 = ||4 |df|2 , the change in scale factor is u = 12 ddt log ||4 =
in time yields H(p) = 12 (h p )(p) = 21 (h p )(p) = 12 H(p), i.e.,
2 Re(). For a sphere inversion, = a f for some a R3 (Ap- the change in H must be proportional to H itself. This evolution
pendix D). Hence, u = 2a, f . The optimal direction for a is is the same as the evolution = 21 H, since a small normal
found by solving
deformation f = f + hN over a plane is isometric (hence con-
max u, mean(u) u,
|a| =1 order. Inparticular, dN = 0
for a plane,
formal) up to first
hence g(u, v) = d f(u), d f(v) = g(u, v) + (dh(u) N , df (v) +