Algorithm Search⌘K

Algorithmadvanced

Wires deformation

Also called wire deformer.

Deform a surface by moving space curves, where each point follows the nearest point of a wire with a falloff in distance.

Time
Θ(N w V) allΘ(V) per_point_per_wire
Space
O(w) extra
Where
N = the number of points; V = the number of vertices of one wire polyline; w = the number of wires
Properties
deterministicexactonlineiterative

Wires deformation moves the points of an object with space curves. Each wire is a pair of curves with the same parameter: the reference curve RR, which says where the wire was when the object was bound to it, and the wire curve WW, which the user moves. A point near RR finds its closest point R(u)R(u) and then follows WW at the same parameter: it is scaled about R(u)R(u), turned with the tangent, and moved by W(u)−R(u)W(u) - R(u), each by an amount FF that falls from 1 on the curve to 0 at the radius of influence. Karan Singh and Eugene Fiume (1998) introduced the method for modeling and animation; creases, lips and brows follow curves better than lattices. This page uses polylines for RR and WW; smooth curves such as NURBS work in the same way with a numerical closest point.

In plain words

Lay a piece of string on a soft surface, and draw a ring around the string to say how far its pull reaches. Now move the string. A point of the surface right under the string goes with it all the way. A point a little away from the string goes part of the way, and a point outside the ring does not move at all. To know which part of the string pulls it, each point looks for the closest place on the string in its starting position. If the string turns, the points near it turn with it, and if you ask for it, they also spread away from the string or pull in toward it.

The problem

The input is a point PP and a wire: the reference polyline RR and the wire polyline WW with the same number of vertices, the radius r>0r > 0, the scale s>0s > 0, and the falloff f:[0,∞)→[0,1]f: [0, \infty) \to [0, 1] with f(0)=1f(0) = 1 and f(x)=0f(x) = 0 for x≥1x \ge 1. The parameter u=i+tu = i + t with 0≤t≤10 \le t \le 1 means the point at the fraction tt of segment ii, so R(u)R(u) and W(u)W(u) correspond. The output is the moved point. The implementation uses f(x)=(1−x2)2f(x) = (1 - x^2)^2 for x<1x < 1; it has f′(0)=0f'(0) = 0 and f′(1)=0f'(1) = 0, so the move is smooth at the curve and at the radius. Any falloff with the properties above can be passed in.

The algorithm

R′(u)R'(u) and W′(u)W'(u) are the unit tangents of the segments that hold uu.

  1. WIRE(P, R, W, r, s, f)
  2. 1u ← the parameter of the point of R closest to P
  3. 2F ← f(|P - R(u)| / r)
  4. 3if F = 0 then return P
  5. 4Q ← R(u) + (1 + (s - 1)F)(P - R(u))
  6. 5a ← R'(u) × W'(u) / |R'(u) × W'(u)|; θ ← the angle from R'(u) to W'(u)
  7. 6Q ← R(u) + rot(a, Fθ)(Q - R(u))
  8. 7return Q + F(W(u) - R(u))

Line L1 is a closest point search; on a polyline it projects PP onto each segment and keeps the nearest, and on a smooth curve it is a Newton iteration such as Newton point inversion. Line L4 scales the offset from the curve: with s>1s > 1 points spread from the wire, with s<1s < 1 they gather to it, and with s=1s = 1 nothing changes. Lines L5 and L6 turn the offset by the fraction FF of the turn of the tangent, with Rodrigues' formula for rot; if the tangents are parallel the step does nothing. Line L7 adds the fraction FF of the move of the curve point. For several wires, the implementation computes the move Δj\Delta_j of each wire alone and returns P+∑jΔj∣Δj∣m/∑j∣Δj∣mP + \sum_j \Delta_j|\Delta_j|^m / \sum_j |\Delta_j|^m, so with m=0m = 0 the moves are averaged and with a large mm the largest move wins.

Example

Let RR be the straight polyline from (0,0,0)(0, 0, 0) to (3,0,0)(3, 0, 0), WW the same polyline moved by (0,1,0)(0, 1, 0), and r=1r = 1, s=1s = 1. The point P=(1.5,0.5,0)P = (1.5, 0.5, 0) has the closest point R(u)=(1.5,0,0)R(u) = (1.5, 0, 0) at the distance 0.50.5, so F=(1−0.25)2=0.5625F = (1 - 0.25)^2 = 0.5625. The tangents agree, so lines L5 and L6 do nothing, and line L7 gives (1.5,0.5+0.5625,0)=(1.5,1.0625,0)(1.5, 0.5 + 0.5625, 0) = (1.5, 1.0625, 0). With s=2s = 2, line L4 first moves the offset 0.50.5 to 0.5(1+0.5625)=0.781250.5(1 + 0.5625) = 0.78125, and the result is (1.5,1.34375,0)(1.5, 1.34375, 0). The point (1.5,1.2,0)(1.5, 1.2, 0) is farther than rr and does not move.

For the turn, let RR go from (0,0,0)(0, 0, 0) to (1,0,0)(1, 0, 0) and WW from (0,0,0)(0, 0, 0) to (0,1,0)(0, 1, 0), a turn of 90 degrees about zz. With a very large rr, F≈1F \approx 1, and the point (0,0.2,0)(0, 0.2, 0) turns with the tangent to (−0.2,0,0)(-0.2, 0, 0), while (0,0,0.2)(0, 0, 0.2) lies on the axis of the turn and stays.

Correctness

The method is a construction, so correctness means that it has the properties a user expects of it. These follow from the lines of the algorithm, and the proof gives them in full. If W=RW = R and s=1s = 1, line L4 keeps PP, line L6 turns by 0, and line L7 adds 0, so every point stays. A point at the distance rr or more has F=0F = 0 and stays, by line L3. A point on RR has F=1F = 1 and the offset 0, so it goes to W(u)W(u): the object follows the wire exactly along the curve. The turn at line L6 keeps the length of the offset, so with s=1s = 1 the distance of the moved point from R(u)+F(W(u)−R(u))R(u) + F(W(u) - R(u)) is the distance of PP from RR. As ∣P−R(u)∣→r|P - R(u)| \to r, F→0F \to 0, and every step tends to the identity, so the move is continuous across the boundary of the region of influence.

Proof: Wires deformation is the identity at rest, moves only points near the reference curve, interpolates the wire, and is continuous at the radius of influencefull

We use the notation of the page. Write c=R(u)c = R(u) for the closest point of line L1, d=∣P−c∣d = |P - c|, and Φ(P)\Phi(P) for the result of the algorithm. Let ρ=1+(s−1)F\rho = 1 + (s - 1)F be the factor of line L4 and TT the turn rot(a,Fθ)(a, F\theta) of line L6, or the identity if the tangents are parallel. Then, for F>0F > 0,

Φ(P)=c+ρ T(P−c)+F(W(u)−c).\Phi(P) = c + \rho\,T(P - c) + F(W(u) - c).

The closest point

Lemma 1. On a segment from AA to BB with A≠BA \ne B, the point closest to PP is A+t(B−A)A + t(B - A) with tt the value of (P−A)⋅(B−A)/∣B−A∣2(P - A)\cdot(B - A)/|B - A|^2 clamped to [0,1][0, 1].

Proof. g(t)=∣P−A−t(B−A)∣2g(t) = |P - A - t(B - A)|^2 is a quadratic in tt with the leading coefficient ∣B−A∣2>0|B - A|^2 > 0 and its minimum at the unclamped value. On [0,1][0, 1] a convex quadratic has its minimum at the clamped value. □\square

Taking the nearest of the segment points gives a closest point of the polyline, so dd is the distance from PP to RR.

Four properties

Theorem 1 (identity at rest). If W=RW = R and s=1s = 1, then Φ(P)=P\Phi(P) = P for every PP.

Proof. If F=0F = 0, line L3 returns PP. Otherwise ρ=1\rho = 1, the two tangents are the same, so aa is not defined and TT is the identity, and W(u)−c=0W(u) - c = 0. So Φ(P)=c+(P−c)=P\Phi(P) = c + (P - c) = P. □\square

Theorem 2 (locality). If d≥rd \ge r, then Φ(P)=P\Phi(P) = P.

Proof. d/r≥1d/r \ge 1, so F=f(d/r)=0F = f(d/r) = 0, and line L3 returns PP. □\square

Theorem 3 (interpolation). If PP lies on RR, then Φ(P)=W(u)\Phi(P) = W(u).

Proof. P=cP = c, so d=0d = 0 and F=f(0)=1F = f(0) = 1. The offset P−cP - c is 0, so ρT(0)=0\rho T(0) = 0, and Φ(P)=c+W(u)−c=W(u)\Phi(P) = c + W(u) - c = W(u). □\square

Theorem 4 (continuity at the radius). Let Pk→P∗P_k \to P^* with d(Pk)<rd(P_k) < r and d(P∗)=rd(P^*) = r, and let ff be continuous with f(1)=0f(1) = 0. Then Φ(Pk)→P∗=Φ(P∗)\Phi(P_k) \to P^* = \Phi(P^*).

Proof. The distance to RR is continuous in PP, so Fk=f(d(Pk)/r)→f(1)=0F_k = f(d(P_k)/r) \to f(1) = 0. Then ρk→1\rho_k \to 1 and Fkθk→0F_k\theta_k \to 0, with ∣θk∣≤π|\theta_k| \le \pi, so Tk→IT_k \to I uniformly. The offsets Pk−ckP_k - c_k are bounded by rr and the moves W(uk)−ckW(u_k) - c_k are bounded by the largest vertex move, because W−RW - R is piecewise linear in uu. So Φ(Pk)−Pk=(ρkTk−I)(Pk−ck)+Fk(W(uk)−ck)→0\Phi(P_k) - P_k = (\rho_kT_k - I)(P_k - c_k) + F_k(W(u_k) - c_k) \to 0, and Pk→P∗P_k \to P^*. □\square

The proof does not need uku_k to converge, so it holds even where the closest point is not unique.

The size of the offset

Theorem 5. For F>0F > 0, ∣Φ(P)−(c+F(W(u)−c))∣=ρ d|\Phi(P) - (c + F(W(u) - c))| = \rho\,d. In particular, with s=1s = 1 the moved point keeps its distance from the moved curve point c+F(W(u)−c)c + F(W(u) - c).

Proof. TT is a rotation, so ∣T(P−c)∣=∣P−c∣=d|T(P - c)| = |P - c| = d, and ρ>0\rho > 0 because s>0s > 0 and 0≤F≤10 \le F \le 1. □\square

Where the map jumps

Let PP have two closest points c1=R(u1)c_1 = R(u_1) and c2=R(u2)c_2 = R(u_2) with W(u1)−R(u1)≠W(u2)−R(u2)W(u_1) - R(u_1) \ne W(u_2) - R(u_2), and let s=1s = 1 and the tangents be unchanged. Points close to PP on either side of the set of such points bind to u1u_1 or to u2u_2, and their moves tend to F(W(u1)−c1)F(W(u_1) - c_1) and F(W(u2)−c2)F(W(u_2) - c_2), which differ when F>0F > 0. So the map is discontinuous there, which is the medial jump of the Pitfalls. The same argument with the turn TT in place of the move applies to a point whose closest point is an inner vertex of a polyline, where R′R' and W′W' change. Away from these sets, uu and the tangents depend continuously on PP, and so does Φ\Phi.

Complexity

Line L1 on a polyline with VV vertices projects onto V−1V - 1 segments, in Θ(V)\Theta(V) time; lines L2 to L7 take O(1)O(1). So NN points and ww wires cost Θ(NwV)\Theta(NwV) time. The closest parameter uu depends only on RR, so it can be computed once per point and wire and kept while WW moves, which makes each later frame O(Nw)O(Nw). A spatial grid over the segments of RR makes line L1 much faster for long wires.

Properties

  • Identity at rest (proved). W=RW = R with s=1s = 1 moves no point.
  • Local (proved). Only points within the distance rr of RR move.
  • Interpolates the wire (proved). A point on RR goes to the matching point of WW.
  • Continuous at the radius (proved). The move tends to 0 at the boundary of the region of influence.
  • Not continuous everywhere (proved). Where a point has two closest points on RR, as on the inside of a tight bend, uu jumps, and so can the move. A polyline also has a jump in its tangent at each inner vertex, so the turn of line L6 jumps for points whose closest point is that vertex.
  • Independent of the representation. Like FFD, wires move points, so they work on meshes, surfaces and point clouds.

Variants and improvements

  • Smooth curves. Use spline curves such as B-splines for RR and WW, with a smooth tangent, to remove the jump of the turn at the vertices.
  • Several wires. The blend of moves above with the exponent mm is one choice; other blends weight each wire by its falloff.
  • Holding a region still. In the blend above, a wire that does not move has the weight 0 and has no effect. To keep the upper lip still while the lower lip moves, the blend must give a fixed wire weight, for example by weighting each wire by its falloff FF.
  • Falloff and scale along the curve. rr, ss and the falloff can vary with uu, to make a crease sharp at one end and soft at the other.
  • Frames. The turn at line L6 uses only the change of the tangent; a full frame along the curve, such as a rotation-minimizing frame, also controls the twist about the tangent.

When to use it

Use wires when the shape change follows a curve on the object: a lip, a brow, a wrinkle, a seam, a tail. A curve is a natural handle for an artist, and it acts only near itself, so many wires can shape one face. For broad changes of a volume, use a lattice (FFD) or a cage; for a skeleton that bends limbs, use linear blend skinning.

Pitfalls

  • Medial jumps. A point that lies about as far from two parts of RR as from each, inside a bend, can switch its closest point between frames and jump. Keep rr smaller than the radius of curvature of RR.
  • Rebinding. The binding must use RR, not WW; finding the closest point on the moved wire changes uu and makes the result depend on the path of the edit.
  • Opposite tangents. A turn of 180 degrees has no defined axis; the implementation raises an error there.
  • Parameter mismatch. RR and WW must share the parameter, so they need the same number of vertices; a wire that is resampled after binding moves points along the curve.
  • Falloff with a kink. A falloff with f′(1)≠0f'(1) \ne 0, such as 1−x1 - x, makes a visible crease at the radius.

Implementations

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.

wire_deformation.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/wire-deformation/. The authors are listed in prov/TTFYST.jsonl.
"""Wires deformation in the spirit of Singh and Fiume (1998).

A wire is a pair of curves: the reference curve R and the wire curve W,
with the same parameter. Here both are polylines with the same number of
vertices, and the parameter u = i + t means the point at the fraction t of
segment i. A point P near R is bound to its closest point R(u). It then
moves with W: it is scaled about R(u), rotated by the turn from the tangent
R'(u) to the tangent W'(u), and translated by W(u) - R(u). The amount of
each step is the falloff F = f(|P - R(u)| / r), so points at distance r or
more from R do not move.

The falloff f(x) = (1 - x^2)^2 for x < 1, and 0 otherwise, is one smooth
choice: f(0) = 1, f(1) = 0 and f'(1) = 0. Any decreasing f with these
properties can be passed in.
"""

import math


def sub(a, b):
    return tuple(x - y for x, y in zip(a, b))


def add(a, b):
    return tuple(x + y for x, y in zip(a, b))


def scale(a, c):
    return tuple(c * x for x in a)


def dot(a, b):
    return sum(x * y for x, y in zip(a, b))


def cross(a, b):
    return (a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0])


def norm(a):
    return math.sqrt(dot(a, a))


def default_falloff(x):
    """Return (1 - x^2)^2 for 0 <= x < 1 and 0 for x >= 1."""
    if x >= 1:
        return 0.0
    return (1 - x * x) ** 2


def closest_parameter(poly, p):
    """Return (u, distance) of the point of the polyline closest to p.

    The search is brute force over all segments; ties keep the first segment.
    """
    best_u, best_d = 0.0, math.inf
    for i in range(len(poly) - 1):
        a, b = poly[i], poly[i + 1]
        d = sub(b, a)
        dd = dot(d, d)
        t = 0.0 if dd == 0 else min(1.0, max(0.0, dot(sub(p, a), d) / dd))
        dist = norm(sub(p, add(a, scale(d, t))))
        if dist < best_d:
            best_u, best_d = i + t, dist
    return best_u, best_d


def point_at(poly, u):
    """Return the polyline point with the parameter u."""
    i = min(int(math.floor(u)), len(poly) - 2)
    t = u - i
    return add(scale(poly[i], 1 - t), scale(poly[i + 1], t))


def tangent_at(poly, u):
    """Return the unit direction of the segment that holds the parameter u."""
    i = min(int(math.floor(u)), len(poly) - 2)
    d = sub(poly[i + 1], poly[i])
    return scale(d, 1 / norm(d))


def rotate(v, axis, angle):
    """Rotate v about the unit axis by angle (Rodrigues' formula)."""
    c, s = math.cos(angle), math.sin(angle)
    return add(add(scale(v, c), scale(cross(axis, v), s)), scale(axis, dot(axis, v) * (1 - c)))


def deform(p, ref, wire, radius, s=1.0, falloff=default_falloff):
    """Move the point p by one wire. Return the new point."""
    if len(ref) != len(wire) or len(ref) < 2:
        raise ValueError("R and W need the same number of vertices, at least 2")
    p = tuple(p)
    u, dist = closest_parameter(ref, p)  # @line L1
    f = falloff(dist / radius)  # @line L2
    if f == 0:  # @line L3
        return p
    c = point_at(ref, u)
    q = add(c, scale(sub(p, c), 1 + (s - 1) * f))  # @line L4
    tr, tw = tangent_at(ref, u), tangent_at(wire, u)
    axis = cross(tr, tw)  # @line L5
    sin_t, cos_t = norm(axis), dot(tr, tw)
    if sin_t > 1e-15:
        theta = math.atan2(sin_t, cos_t)
        q = add(c, rotate(sub(q, c), scale(axis, 1 / sin_t), theta * f))  # @line L6
    elif cos_t < 0:
        raise ValueError("the tangents are opposite; the rotation axis is not defined")
    return add(q, scale(sub(point_at(wire, u), c), f))  # @line L7


def deform_many(p, wires, m=1.0):
    """Blend several wires: p + sum d_i |d_i|^m / sum |d_i|^m.

    Each item of wires is a tuple (ref, wire, radius, s). With m = 0 this
    is the plain average of the moves; a large m lets the largest move win.
    """
    p = tuple(p)
    moves = [sub(deform(p, *w), p) for w in wires]
    weights = [norm(d) ** m if norm(d) > 0 else 0.0 for d in moves]
    total = sum(weights)
    if total == 0:
        return p
    out = p
    for d, w in zip(moves, weights):
        out = add(out, scale(d, w / total))
    return out
test_wire_deformation.py 105 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/wire-deformation/. The authors are listed in prov/TTFYST.jsonl.
import math
import random

from wire_deformation import closest_parameter, default_falloff, deform, deform_many, point_at


def close(a, b, eps=1e-12):
    return all(abs(x - y) <= eps for x, y in zip(a, b))


REF = [(0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (2.0, 0.0, 0.0), (3.0, 0.0, 0.0)]


def test_wire_equal_to_reference_is_identity():
    rng = random.Random(31)
    ref = [(rng.uniform(-1, 1), rng.uniform(-1, 1), rng.uniform(-1, 1)) for _ in range(6)]
    for _ in range(30):
        p = tuple(rng.uniform(-1.5, 1.5) for _ in range(3))
        assert close(deform(p, ref, ref, 0.8), p)


def test_far_points_do_not_move():
    wire = [(x, y + 1.0, z) for x, y, z in REF]
    rng = random.Random(32)
    for _ in range(30):
        p = (rng.uniform(-1, 4), rng.uniform(-3, 3), rng.uniform(-3, 3))
        _, d = closest_parameter(REF, p)
        if d >= 0.5:
            assert deform(p, REF, wire, 0.5, s=2.0) == p


def test_point_on_reference_follows_the_wire():
    wire = [(0.0, 0.0, 0.0), (1.0, 0.5, 0.0), (2.0, 0.5, 0.5), (3.0, 1.0, 0.0)]
    for u in (0.0, 0.3, 1.0, 1.75, 2.5, 3.0):
        p = point_at(REF, u)
        assert close(deform(p, REF, wire, 0.7, s=1.5), point_at(wire, u), 1e-12)


def test_translated_straight_wire_moves_points_by_falloff_times_offset():
    t = (0.0, 0.25, -0.5)
    wire = [tuple(a + b for a, b in zip(v, t)) for v in REF]
    rng = random.Random(33)
    for _ in range(30):
        p = (rng.uniform(0.2, 2.8), rng.uniform(-1, 1), rng.uniform(-1, 1))
        _, d = closest_parameter(REF, p)
        f = default_falloff(d / 1.2)
        q = deform(p, REF, wire, 1.2)
        assert close(q, tuple(a + f * b for a, b in zip(p, t)), 1e-12)


def test_worked_example():
    # A point at distance 0.5 from a straight wire of radius 1: F = (1 - 0.25)^2 = 0.5625.
    wire = [(x, 1.0, 0.0) for x, _, _ in REF]
    q = deform((1.5, 0.5, 0.0), REF, wire, 1.0)
    assert close(q, (1.5, 0.5 + 0.5625, 0.0))
    # With s = 2 the offset 0.5 from R grows to 0.5 (1 + 0.5625) first.
    q2 = deform((1.5, 0.5, 0.0), REF, wire, 1.0, s=2.0)
    assert close(q2, (1.5, 0.5 * 1.5625 + 0.5625, 0.0))


def test_closest_point_matches_dense_sampling():
    rng = random.Random(34)
    ref = [(rng.uniform(-1, 1), rng.uniform(-1, 1), rng.uniform(-1, 1)) for _ in range(5)]
    for _ in range(20):
        p = tuple(rng.uniform(-1.5, 1.5) for _ in range(3))
        u, d = closest_parameter(ref, p)
        best = min(math.dist(p, point_at(ref, k / 1000)) for k in range(4001))
        assert d <= best + 1e-12
        assert best - d < 2e-3
        assert abs(math.dist(p, point_at(ref, u)) - d) < 1e-12


def test_falloff_shape():
    assert default_falloff(0.0) == 1.0
    assert default_falloff(1.0) == 0.0
    h = 1e-6
    assert abs((default_falloff(1.0) - default_falloff(1.0 - h)) / h) < 1e-5
    xs = [k / 100 for k in range(101)]
    vals = [default_falloff(x) for x in xs]
    assert all(a >= b for a, b in zip(vals, vals[1:]))


def test_rotation_turns_offsets_with_the_tangent():
    # Turn a straight wire by 90 degrees about its first vertex in the xy plane.
    ref = [(0.0, 0.0, 0.0), (1.0, 0.0, 0.0)]
    wire = [(0.0, 0.0, 0.0), (0.0, 1.0, 0.0)]
    # A point at u = 0 with offset (0, 0, 0.2): the axis is z, so it does not turn.
    q = deform((0.0, 0.0, 0.2), ref, wire, 10.0)
    assert close(q, (0.0, 0.0, 0.2), 1e-12)
    # With a big radius F is near 1 and an offset along y turns towards -x.
    q = deform((0.0, 0.2, 0.0), ref, wire, 1e6)
    assert close(q, (-0.2, 0.0, 0.0), 1e-9)


def test_many_wires():
    w1 = [(x, 1.0, 0.0) for x, _, _ in REF]
    p = (1.5, 0.5, 0.0)
    single = deform(p, REF, w1, 1.0)
    assert close(deform_many(p, [(REF, w1, 1.0, 1.0)]), single)
    # Two equal wires give the same result as one.
    assert close(deform_many(p, [(REF, w1, 1.0, 1.0), (REF, w1, 1.0, 1.0)], m=2.0), single)
    # A wire that does not move adds a zero move with weight 0.
    assert close(deform_many(p, [(REF, w1, 1.0, 1.0), (REF, REF, 1.0, 1.0)], m=1.0), single)

History

Singh and Fiume presented wires at SIGGRAPH 1998 as a geometric deformation technique driven by space curves, with a radius of influence, a scale and a falloff for each wire. Earlier space deformations, such as Barr's closed-form maps and lattice FFD, used no curve as the handle. Wire deformers of this kind are now common in animation software.

References

  1. Karan Singh and Eugene Fiume, Wires: a geometric deformation technique, SIGGRAPH 98, 405-414, 1998, the whole paper (the reference curve and the wire curve, the radius of influence, the scale and the falloff, and the use of several wires)

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.all
  • a full proof of time.per_point_per_wire
  • 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)
WritingW2 basic
  • History with a source
  • at least three sources
  • a scene preset for the example