Algorithm Search⌘K

Definitioncore

Cut graph

Also called seam graph, mesh cut to a disk.

A set of edges whose removal opens a closed mesh of genus g into a topological disk, needed before flattening, found from a spanning tree and cotree.

A cut graph of a closed surface mesh is a set of edges such that cutting the surface along them leaves one piece that is a topological disk. Flattening methods such as mesh parameterization and quad meshing work on disks, so a sphere, a torus or a surface with more handles must first be cut open, and the cut is the seam of the texture map. By the Euler characteristic, a cut graph of a surface of genus gg always has exactly 2g2g independent cycles, so a torus needs two loops and a sphere needs none. A cut graph is easy to find with a spanning tree of the mesh and a spanning tree of its dual; a shortest cut graph is NP-hard to find.

Definition

Let MM be a connected, closed, orientable manifold mesh with VV vertices, EE edges and FF triangles, oriented by the right-hand rule. Its Euler characteristic is χ=V−E+F=2−2g\chi = V - E + F = 2 - 2g, where gg is the genus, the number of handles. This is the Euler-Poincaré formula for a closed surface.

A cut graph of MM is a subgraph GG of the edge graph of MM such that M∖GM \setminus G, the surface with the points of GG removed, is homeomorphic to an open disk. Cutting MM along GG means making two copies of each edge of GG, one for each side, and enough copies of each vertex of GG to separate the fans of triangles between the cut edges. The result is a closed disk DD, and its boundary walks along each edge of GG twice, once on each side.

A cut graph is reduced if it has no vertex of degree 1. A vertex of degree 1 ends a branch that can be glued shut again without changing the disk, so every cut graph can be reduced by removing such branches, except on the sphere, where the reduced cut graph can be a single vertex.

Theorem (the number of loops). Let GG be a cut graph of MM with VGV_G vertices and EG≥1E_G \ge 1 edges. Then GG is connected, and

EG−VG+1=2g,E_G - V_G + 1 = 2g,

that is, GG has exactly 2g2g independent cycles, its cycle rank.

Proof. The boundary of DD is one closed walk that covers each edge of GG twice, so it has 2EG2E_G edges and 2EG2E_G corners. Each corner is a copy of a vertex of GG, and every edge of GG is on the walk, so GG is the image of one connected walk and is connected. The vertices of DD are the V−VGV - V_G vertices not on GG and the 2EG2E_G corners of the boundary. The edges of DD are the E−EGE - E_G edges not on GG and the 2EG2E_G copies. The triangles are the FF triangles of MM. A closed disk has Euler characteristic 1, so

1=(V−VG+2EG)−(E−EG+2EG)+F=χ−VG+EG=2−2g−VG+EG,1 = (V - V_G + 2E_G) - (E - E_G + 2E_G) + F = \chi - V_G + E_G = 2 - 2g - V_G + E_G,

which gives EG−VG+1=2gE_G - V_G + 1 = 2g. ■\blacksquare

Corollary (the size of a reduced cut graph). For g≥1g \ge 1, write a reduced cut graph as PP paths between the BB vertices of degree at least 3, with the vertices of degree 2 inside the paths. Then P−B=EG−VG=2g−1P - B = E_G - V_G = 2g - 1 and 2P=∑deg⁡≥3B2P = \sum \deg \ge 3B, so B≤4g−2B \le 4g - 2 and P≤6g−3P \le 6g - 3. If the graph has only one vertex of degree more than 2, it consists of 2g2g loops through that vertex, and cutting along them gives the classical 4g4g-gon of the classification of surfaces. For g=1g = 1 these are the two loops that open a torus to a square.

Construction by tree and cotree. Pick a spanning tree TT of the vertices and edges of MM, for example by breadth-first search. Then pick a spanning tree CC of the dual graph, which has a node for each triangle and an arc across each edge, using only edges not in TT. Such a tree exists because a tree on a surface has a small neighbourhood that is a disk, and removing a disk from a connected surface leaves it connected, so the triangles stay connected across the edges not in TT. The edges in neither tree are the leftover set XX, and

∣X∣=E−(V−1)−(F−1)=2−χ=2g.|X| = E - (V - 1) - (F - 1) = 2 - \chi = 2g.

The edges of T∪XT \cup X are a cut graph. Reason: the triangles glued along the F−1F - 1 edges of the tree CC form a disk, because gluing a triangle to a disk along one boundary edge gives a disk again. The edges not in CC are exactly the edges of T∪XT \cup X, and they are the boundary of this disk. So MM cut along T∪XT \cup X is that disk. Each edge of XX closes a cycle in TT, its fundamental cycle; the 2g2g cycles are the loops of the cut graph, and removing the branches of TT that lead nowhere reduces it. This is Eppstein's tree-cotree decomposition. Each step takes O(V+E+F)O(V + E + F) time.

Surfaces with boundary. If MM has b≥1b \ge 1 boundary loops, the boundary already counts as cut, and GG is a set of inner edges such that cutting along GG gives a disk. The same count, with the boundary edges walked once, gives a cycle rank of 2g+b2g + b for the graph G∪∂MG \cup \partial M. A disk needs no cut, and a cylinder (g=0g = 0, b=2b = 2) needs one path from one boundary loop to the other.

Examples and non-examples

  • Tetrahedron, g=0g = 0. V=4V = 4, E=6E = 6, F=4F = 4, χ=2\chi = 2. The three edges at one vertex form a cut graph: a tree, with EG−VG+1=3−4+1=0E_G - V_G + 1 = 3 - 4 + 1 = 0. Cutting along them unfolds the tetrahedron into a triangle made of four triangles. Any spanning tree of a convex polyhedron is a cut graph in the same way; an edge unfolding of a polyhedron cuts along a spanning tree.
  • Torus, g=1g = 1. Take a 3×33 \times 3 grid of vertices with opposite sides identified and each square split into two triangles: V=9V = 9, E=27E = 27, F=18F = 18, χ=0\chi = 0. One horizontal loop of 3 edges and one vertical loop of 3 edges through a common vertex form a cut graph with VG=5V_G = 5 and EG=6E_G = 6, so EG−VG+1=2E_G - V_G + 1 = 2. Cutting along them gives the square, made of 18 triangles. The tree-cotree count gives ∣X∣=27−8−17=2|X| = 27 - 8 - 17 = 2 leftover edges.
  • Genus 2. A reduced cut graph has cycle rank 4. It can be four loops at one vertex, which open the surface to an octagon, or up to 4g−2=64g - 2 = 6 vertices of degree 3 joined by 6g−3=96g - 3 = 9 paths.
  • Non-example: one loop on a torus. Cutting along one meridian gives a cylinder, which is not a disk. Its cycle rank is 1<21 < 2.
  • Non-example: the right count in the wrong place. Two parallel meridians of a torus, joined by a path, have cycle rank 2. Cutting along the two meridians gives two cylinders, and the path cuts only one of them into a disk, so the result is a disk and a cylinder, not one disk. The two loops fail because they go around the same handle in the same way. So the count EG−VG+1=2gE_G - V_G + 1 = 2g is necessary but not sufficient.
  • Non-example: a loop on a sphere. A closed loop of edges on a sphere cuts it into two disks, not one, so a cut graph of a sphere has no cycle, as the theorem says.
  • Cut graph and parameterization. The discrete conformal and other flattening methods lay out triangles across edges, which works only on a disk. The cut graph is the seam, and in a texture map the two sides of each seam edge get different texture coordinates. Methods for seamless maps, such as mixed-integer quadrangulation, require that the two sides match up to a rotation by a multiple of 90°90° and an integer translation.
  • Homology basis. A homology basis is a set of 2g2g loops such that every loop on the surface is, up to deformation and cancellation, a combination of them in exactly one way, counted with integer multiples. The 2g2g fundamental cycles of a cut graph are a homology basis: the surface is the cut graph with one disk glued on, and the boundary of the disk walks each edge once in each direction, so gluing it adds no relation between the cycles. The two parallel meridians of the non-example are not a basis, because they are the same loop up to deformation.
  • Graph genus. The genus of a graph is the smallest genus of a surface on which the graph embeds without crossings. The genus of a mesh is fixed by its Euler characteristic; the Euler formula is the case g=0g = 0.
  • Cycle basis. The fundamental cycles of a spanning tree are a cycle basis of the graph. The tree-cotree construction keeps only the 2g2g of them that come from the leftover edges.
  • Shortest cut graph. Erickson and Har-Peled showed that finding a cut graph of least total length is NP-hard, and gave an approximation with factor O(log⁡2g)O(\log^2 g). In practice, cuts are made short and placed along regions of high distortion or low visibility.

References

  1. Jeff Erickson and Sariel Har-Peled, Optimally cutting a surface into a disk, Discrete and Computational Geometry 31(1), 37-59, 2004, the definition of a cut graph, the count of its cycles from the Euler characteristic, and the NP-hardness of a shortest cut graph
  2. David Eppstein, Dynamic generators of topologically embedded graphs, Proceedings of the 14th ACM-SIAM Symposium on Discrete Algorithms, 599-608, 2003, the tree-cotree decomposition into a spanning tree, a dual spanning tree and 2g leftover edges
  3. Herbert Edelsbrunner and John Harer, Computational Topology, An Introduction, American Mathematical Society, 2010, Chapter II, Surfaces (triangulated surfaces, the Euler characteristic and the classification of 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/7H7VSS/text.yaml