Algorithm Search⌘K

Definitionadvanced

Cross field

Also called 4-symmetry direction field, 4-RoSy field.

A field of four directions related by 90 degree turns on a surface, whose singularities set the irregular vertices of a field-aligned quad mesh.

A cross field on a surface gives, at each point, a cross: four tangent directions at right angles, with no first direction among them. It is the kind of field that a quad mesh follows, since the edges at a regular quad vertex form a cross. A smooth cross field cannot exist everywhere on most surfaces. It has isolated singular points, whose indices are multiples of 1/41/4 and add up to the Euler characteristic of the surface, by a form of the Poincaré-Hopf theorem. In a quad mesh built from the field, a singularity of index +1/4+1/4 becomes a vertex of valence 3 and one of index −1/4-1/4 a vertex of valence 5, so choosing the field chooses the irregular vertices of the mesh.

Definition

Let MM be a connected, oriented manifold mesh of triangles, with faces oriented by the right-hand rule, so that each triangle has a well-defined counterclockwise rotation JJ by 90°90° in its plane. A cross in a triangle ff is a set

{v,Jv,−v,−Jv}\{v, Jv, -v, -Jv\}

of four unit vectors in the plane of ff. In a fixed reference direction of ff, for example along one of its edges, the cross is given by the angle θf\theta_f of any of its four vectors, and θf\theta_f is defined modulo π/2\pi/2. A cross field on MM gives one cross in each triangle, or one in the tangent plane of each vertex in other discretizations. More generally, an NN-direction field or NN-RoSy field has NN directions at angles 2π/N2\pi/N; N=1N = 1 gives vector fields, N=2N = 2 line fields, such as the principal curvature directions, and N=4N = 4 cross fields.

Two representations.

  • Angle and period jump. Unfold two triangles ff and gg that share an edge into one plane. Let ρfg\rho_{fg} be the angle from the reference direction of ff to that of gg in this plane; it is the discrete parallel transport from ff to gg. The crosses of ff and gg are compared by θg−θf−ρfg\theta_g - \theta_f - \rho_{fg}, which is defined modulo π/2\pi/2. Fixing a representative θ\theta in each face, an integer pfgp_{fg}, the period jump or matching, says which of the four vectors of gg the vector θf\theta_f goes to. Smoothness energies in this form, ∑fgwfg(θg−θf−ρfg−pfgπ/2)2\sum_{fg} w_{fg}(\theta_g - \theta_f - \rho_{fg} - p_{fg}\pi/2)^2, mix real and integer unknowns.
  • Fourth power. The complex number zf=e4iθfz_f = e^{4i\theta_f} does not depend on which of the four vectors is chosen, because 4⋅π/2=2π4 \cdot \pi/2 = 2\pi. Transport across an edge multiplies by e4iρfge^{4i\rho_{fg}}. So a cross field is the same as a field of unit complex numbers in the face frames, with no integer unknowns, and the smoothness energy ∑fgwfg∣zg−e4iρfgzf∣2\sum_{fg} w_{fg}\lvert z_g - e^{4i\rho_{fg}} z_f\rvert^2 is a Hermitian quadratic form. This is the starting point of globally optimal direction fields.

Index of a vertex. Let vv be an inner vertex with the triangles f1,…,fmf_1, \dots, f_m around it in counterclockwise order, and let d(v)=2π−∑αd(v) = 2\pi - \sum\alpha be its angle defect, the discrete Gaussian curvature. For each step from fkf_k to fk+1f_{k+1} (with fm+1=f1f_{m+1} = f_1), let δk\delta_k be the smallest rotation that turns the transported cross of fkf_k onto the cross of fk+1f_{k+1}:

δk≡θfk+1−θfk−ρfkfk+1(modπ/2),−π4<δk≤π4.\delta_k \equiv \theta_{f_{k+1}} - \theta_{f_k} - \rho_{f_k f_{k+1}} \pmod{\pi/2}, \qquad -\frac{\pi}{4} < \delta_k \le \frac{\pi}{4}.

The index of vv is

I(v)=d(v)+∑k=1mδk2π.I(v) = \frac{d(v) + \sum_{k=1}^{m} \delta_k}{2\pi}.

Transport once around vv rotates every tangent vector by the defect d(v)d(v), and the crosses then turn by the δk\delta_k and come back to the cross they started from. So d(v)+∑kδkd(v) + \sum_k \delta_k is a multiple of π/2\pi/2, and I(v)I(v) is a multiple of 1/41/4. The vertex is singular if I(v)≠0I(v) \ne 0. The index of the fourth power field zz is 4I(v)4 I(v), an integer, the winding number of zz around vv measured against the transport.

Theorem (Poincaré-Hopf for cross fields). On a closed mesh with Euler characteristic χ=V−E+F=2−2g\chi = V - E + F = 2 - 2g, where gg is the genus, and with δ\delta chosen so that the step from gg to ff has δ=−δfg\delta = -\delta_{fg} for every edge,

∑vI(v)=χ.\sum_v I(v) = \chi.

Proof. By the discrete Gauss-Bonnet theorem, ∑vd(v)=2πχ\sum_v d(v) = 2\pi\chi. Each edge vwvw has two triangles ff and gg. The walk counterclockwise around vv crosses this edge in one direction, say from ff to gg, and the walk counterclockwise around ww crosses it from gg to ff, since the two walks run on opposite sides of the edge. The two terms are δfg\delta_{fg} and δgf=−δfg\delta_{gf} = -\delta_{fg}, so the δ\delta terms of all vertices add up to 0. Hence 2π∑vI(v)=2πχ2\pi \sum_v I(v) = 2\pi\chi. ■\blacksquare

The choice δgf=−δfg\delta_{gf} = -\delta_{fg} only matters when δfg=π/4\delta_{fg} = \pi/4 exactly, where both π/4\pi/4 and −π/4-\pi/4 are smallest rotations.

Examples and non-examples

  • The cube. Put on each face of a cube the cross along its edges, and split the faces into triangles. Across every edge the crosses match exactly after unfolding, so all δk=0\delta_k = 0. A corner has three right angles, so d=2π−3π/2=π/2d = 2\pi - 3\pi/2 = \pi/2 and I=1/4I = 1/4. The 8 corners give 8⋅1/4=2=χ8 \cdot 1/4 = 2 = \chi of the sphere. The quad mesh of the cube surface has 8 vertices of valence 3, one per singularity.
  • A flat singularity. Take six equilateral triangles around a vertex in the plane, so d=0d = 0, and in the triangle fkf_k the cross at the angle kπ/12k\pi/12, k=0,…,5k = 0, \dots, 5, in one global frame. The steps give δk=π/12\delta_k = \pi/12 for k=0,…,4k = 0, \dots, 4, and from f5f_5 back to f0f_0 the angle goes from 5π/125\pi/12 to 0≡π/20 \equiv \pi/2, again δ=π/12\delta = \pi/12. So I=6⋅(π/12)/(2π)=1/4I = 6 \cdot (\pi/12) / (2\pi) = 1/4. The fourth powers eikπ/3e^{ik\pi/3} go once around the unit circle, winding number 1=4⋅1/41 = 4 \cdot 1/4. A vector field cannot do this: going once around, it must turn by a multiple of 2π2\pi.
  • The torus. χ=0\chi = 0, so a cross field on a torus can have no singularities, like the field along the two grid directions of a flat torus. A field with singularities on a torus has as much positive index as negative index.
  • A surface of genus g≥2g \ge 2. The indices add up to 2−2g<02 - 2g < 0. With indices of −1/4-1/4 only, a field needs at least 4(2g−2)=8g−84(2g - 2) = 8g - 8 singularities; a quad mesh of a genus 2 surface needs at least 8 vertices of valence 5, or some of higher valence.
  • Quad meshes. In a closed quad mesh, the edges at a vertex of valence kk form a cross field with index (4−k)/4(4 - k)/4 at that vertex. The sum is ∑v(4−kv)/4=V−2E/4=V−E/2=V−E+F\sum_v (4 - k_v)/4 = V - 2E/4 = V - E/2 = V - E + F, because 4F=2E4F = 2E, which checks the theorem.
  • Non-example: a vector field read as a cross field. A field of single vectors gives a cross field, but not the other way round. The cross field of the flat example has no consistent choice of one of its four vectors around the vertex, so it is not a vector field with a 90°90° symmetry chosen at each point.
  • Non-example: four arbitrary directions. Four unit vectors at angles 0°0°, 80°80°, 180°180° and 260°260° are not a cross. A field of such frames is a non-orthogonal frame field, a wider class with its own representations.
  • Line fields and principal directions. The two principal curvature directions, from curvature tensor estimation, are a line field with N=2N = 2, the same idea with period π\pi. Taking both principal directions together gives a cross field away from the umbilic points, and quad meshing often aligns the cross field with them where the curvature is clearly anisotropic.
  • Smoothest cross field. With the fourth power representation, the smoothest unit cross field is approached by the eigenvector of the smallest eigenvalue of a Hermitian matrix like the cotangent Laplacian, the minimizer of its Rayleigh quotient. This is the algorithm of globally optimal direction fields, which places the singularities by itself.
  • Field-aligned parameterization. Mixed-integer quadrangulation computes a map whose gradients follow a given cross field, on the surface cut open along a cut graph through the singularities, with integer conditions across the cut so that the integer grid lines close up into quads.
  • Euler characteristic. The Euler-Poincaré formula gives the total index χ\chi that every cross field on the surface must have.

References

  1. Nicolas Ray, Bruno Vallet, Wan Chiu Li and Bruno Lévy, N-symmetry direction field design, ACM Transactions on Graphics 27(2), Article 10, 2008, the definition of N-symmetry direction fields on a triangle mesh, the period jumps across edges, and the index of a singularity with its relation to the Euler characteristic
  2. Amir Vaxman, Marcel Campen, Olga Diamanti, Daniele Panozzo, David Bommes, Klaus Hildebrandt and Mirela Ben-Chen, Directional field synthesis, design, and processing, Computer Graphics Forum 35(2), 545-572, 2016, the survey of representations (angles with period jumps, the power vector), discretizations, singularities and the Poincaré-Hopf theorem for directional fields
  3. Felix Knöppel, Keenan Crane, Ulrich Pinkall and Peter Schröder, Globally optimal direction fields, ACM Transactions on Graphics 32(4), Article 59, 2013, the representation of an n-direction field by the n-th power of a complex number, and the quadratic smoothness energy

Where this leads

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/E95VWG/text.yaml