Algorithm Search⌘K

Algorithmcore

Iso-planar toolpath

Also called drive plane toolpath.

Machines a surface along its cuts by a family of parallel planes, which run across patch boundaries, but the spacing on the surface grows where the surface is steep.

Time
O(K 2^m) worst
Space
O(m) extra
Where
K = number of drive planes; m = depth limit of the chord refinement
Properties
deterministicexactrecursive
Origin
Yunching Huang, James H. Oliver, 1994

An iso-planar toolpath machines a surface along the curves where it meets a family of parallel drive planes, x=c0,c1,…x = c_0, c_1, \dots, one pass per plane. Seen from above, the passes are straight and evenly spaced, as in a direction-parallel path, but in space they follow the surface. The planes do not care how the surface is cut into patches, so one pass runs across many patches. The cost is that the spacing on the surface is not the spacing of the planes: where the surface climbs steeply along xx, the passes lie farther apart on it. This is a manufacturing method of mechanical CAD: placement and routing here mean where a cutter goes and how it moves, not the placement and routing of a circuit. The code cuts a bilinear patch with exact rational points and a recursive chord refinement.

In plain words

Slice a loaf of bread with evenly spaced cuts. Each cut leaves a curve on the crust. An iso-planar path moves the tool along these curves, one after the other.

On the flat top of the loaf the curves are as far apart as the cuts. On the steep ends of the loaf the cuts still go straight down at the same spacing, but the crust is tilted, so the curves on the crust are farther apart than the cuts. A tool that leaves a smooth finish on top leaves ridges on the steep parts.

Each curve is drawn as a chain of short straight pieces. A piece is split when the curve bends too far away from it.

The problem

The input is a surface, a plane spacing gg and a chord tolerance ε\varepsilon. The output is a set of passes, one for each plane x=ckx = c_k that meets the surface, each a polyline of cutter contact points on the surface. A CAM system turns them into cutter location data, or it cuts the offset surface of the part by the planes and gets the tool centers directly.

The spacing on the surface follows from the gradient of xx along the surface. If nn is the unit normal, this gradient has length 1−nx2\sqrt{1 - n_x^2}, so two passes whose planes are gg apart lie about

g1−nx2\frac{g}{\sqrt{1 - n_x^2}}

apart on the surface. On a flat floor (nx=0n_x = 0) this is gg. On the plane z=mxz = mx it is exactly g1+m2g\sqrt{1 + m^2}. On a wall that faces the xx direction (nx=±1n_x = \pm 1) it is unbounded: such a wall lies in one plane or between two planes.

On a bilinear patch S(u,v)S(u, v), the coordinate x=A+Bu+Cv+Duvx = A + Bu + Cv + Duv is bilinear. The code requires xv=C+Du>0x_v = C + Du > 0 on the patch. Then each plane meets the patch in one curve v(u)=(c−A−Bu)/(C+Du)v(u) = (c - A - Bu)/(C + Du), and the range of uu comes from two linear inequalities.

The algorithm

  1. ISO-PLANAR(S, g, ε)
  2. 1for k ← 0, 1, ... while c_k = xmin + g/2 + k g < xmax do
  3. 2[u_lo, u_hi] ← the u for which the plane x = c_k meets the patch at 0 ≤ v ≤ 1
  4. 3if there is no such u then go to the next plane
  5. 4the cut curve is u ↦ S(u, v(u)) with v(u) = (c_k - A - B u)/(C + D u)
  6. 5REFINE(u_lo, u_hi): if the curve point at the middle is farther than ε from the chord, refine both halves, else keep the chord
  7. 6append the pass, forward for even k and backward for odd k
  8. 7return the passes

Line L5 is a recursive midpoint test with a depth limit. It is a heuristic: it checks one point of the curve per chord, not all of them. On a general surface, line L4 is replaced by a surface-plane intersection, which marches along the curve with Newton steps or follows it across the patches of a model.

Example

Take the plane z=34xz = \tfrac34 x over 0≤x≤100 \le x \le 10, 0≤y≤40 \le y \le 4, as the bilinear patch with corners (0,0,0)(0, 0, 0), (0,4,0)(0, 4, 0), (10,0,7.5)(10, 0, 7.5) and (10,4,7.5)(10, 4, 7.5), and take g=1g = 1.

step plane pass length
L1 to L6 x=0.5x = 0.5 (0.5,0,0.375)→(0.5,4,0.375)(0.5, 0, 0.375) \to (0.5, 4, 0.375) 4
L1 to L6 x=1.5x = 1.5 (1.5,4,1.125)→(1.5,0,1.125)(1.5, 4, 1.125) \to (1.5, 0, 1.125) 4
... ... ...
L1 to L6 x=9.5x = 9.5 (9.5,4,7.125)→(9.5,0,7.125)(9.5, 4, 7.125) \to (9.5, 0, 7.125) 4

Each cut curve is straight, so line L5 keeps one chord. Neighbouring passes are 1+(3/4)2=1.25\sqrt{1 + (3/4)^2} = 1.25 apart on the surface, not 1. With slope 43\tfrac43 they would be 53\tfrac53 apart. A floor at z=0z = 0 next to the ramp gets passes 1 apart from the same planes, so a single gg gives two different finishes.

Correctness

Theorem. If xv>0x_v > 0 on the patch, each plane meets it in one connected curve over the uu-interval of line L2, every returned point lies exactly on its plane and on the patch, and the refinement stops with at most 2m2^m chords per pass, each of which passes the midpoint test unless the depth limit was hit.

For fixed uu, xx grows linearly in vv, so each plane value is reached at exactly one v(u)v(u), and the condition 0≤v(u)≤10 \le v(u) \le 1 is a pair of linear inequalities in uu. The points are rational, so they are exact. The full proof is in the proof file.

What is measured. The chord error between midpoints is not bounded by the test. The spacing formula is a first-order estimate. The tests measure the spacing on curved random patches within 10 percent of g/1−nx2g/\sqrt{1 - n_x^2} for g=14g = \tfrac14, and they measure every inner sample point within about half the local spacing of a pass. Near a patch boundary that runs almost parallel to the planes, the passes end at a grazing angle and some boundary points are farther from the passes.

Proof: On a bilinear patch with x growing in v, each drive plane cuts one exact curve, and the refinement stops with every chord passing its midpoint testfull

Setting. S(u,v)S(u, v) is a bilinear patch on [0,1]2[0, 1]^2 with rational corners. Its first coordinate is x(u,v)=A+Bu+Cv+Duvx(u, v) = A + Bu + Cv + Duv, and the code requires C>0C > 0 and C+D>0C + D > 0. The drive planes are x=ck=xmin⁡+g/2+kgx = c_k = x_{\min} + g/2 + kg with ck<xmax⁡c_k < x_{\max}, where xmin⁡x_{\min} and xmax⁡x_{\max} are the smallest and largest xx of a corner. ε>0\varepsilon > 0 is the chord tolerance and mm the depth limit.

Claim. (a) xv(u)=C+Du>0x_v(u) = C + Du > 0 for all u∈[0,1]u \in [0, 1], and for each cc the set Σc={(u,v)∈[0,1]2:x(u,v)=c}\Sigma_c = \{(u, v) \in [0, 1]^2 : x(u, v) = c\} is the graph of v(u)=(c−A−Bu)/(C+Du)v(u) = (c - A - Bu)/(C + Du) over the interval of line L2, or empty when line L2 finds no interval. (b) Every point the code returns lies exactly on the plane x=cx = c and on the patch. (c) The refinement of line L5 stops, returns at most 2m2^m chords, and every chord whose recursion did not hit the depth limit passes the midpoint test. (d) The loop of line L1 stops after at most ⌈(xmax⁡−xmin⁡)/g⌉\lceil (x_{\max} - x_{\min})/g \rceil planes.

Proof of (a). C+DuC + Du is affine in uu, positive at u=0u = 0 and at u=1u = 1, so it is positive on [0,1][0, 1]. For a fixed uu, x(u,⋅)x(u, \cdot) is affine in vv with positive slope C+DuC + Du, so x(u,v)=cx(u, v) = c has exactly one solution v=v(u)v = v(u). That point is on the patch when 0≤v(u)≤10 \le v(u) \le 1. Multiplying by the positive denominator, this is c−A−Bu≥0c - A - Bu \ge 0 and c−A−Bu≤C+Duc - A - Bu \le C + Du, two affine inequalities in uu. The set of u∈[0,1]u \in [0, 1] that satisfy two affine inequalities is an interval (possibly empty), and line L2 computes it by intersecting [0,1][0, 1] with the half-line of each inequality: for au+b≥0a u + b \ge 0 it is u≥−b/au \ge -b/a when a>0a > 0, u≤−b/au \le -b/a when a<0a < 0, and all or nothing when a=0a = 0. So Σc\Sigma_c is the graph of vv over this interval, which is a single connected curve.

Proof of (b). Each returned point is S(u,v(u))S(u, v(u)) with uu in the interval of (a), so it is on the patch, and x(S(u,v(u)))=x(u,v(u))=cx(S(u, v(u))) = x(u, v(u)) = c by the choice of v(u)v(u). The values are rationals, so both facts hold exactly.

Proof of (c). Each call either appends one end and returns, or makes two calls with the depth one smaller. A call at depth 0 never recurses, so the recursion tree has height at most mm and at most 2m2^m leaves, and each leaf appends one chord end. The chords are the parameter intervals of the leaves, which partition [ulo,uhi][u_{\mathrm{lo}}, u_{\mathrm{hi}}] in order. A leaf reached with depth above 0 did not recurse, so its curve midpoint is within ε\varepsilon of its chord.

Proof of (d). Each pass of the loop adds g>0g > 0 to cc, and the loop stops when c≥xmax⁡c \ge x_{\max}. ■\blacksquare

What is not proved. The midpoint test does not bound the distance from every point of the curve to its chord, so the chord error is measured in the tests, not proved. The spacing of the passes on the surface is a first-order estimate: the gradient of xx along the surface has length 1−nx2\sqrt{1 - n_x^2}, where nn is the unit normal, so two level curves of xx that differ by gg lie about g/1−nx2g/\sqrt{1 - n_x^2} apart on the surface. For the plane z=mxz = mx this is exact: the passes x=cx = c and x=c+gx = c + g are parallel lines at distance g1+m2g\sqrt{1 + m^2}, and nx2=m2/(1+m2)n_x^2 = m^2/(1 + m^2). On a curved patch the tests measure the estimate within 10 percent for g=1/4g = 1/4.

Complexity

There are K≤⌈(xmax⁡−xmin⁡)/g⌉K \le \lceil (x_{\max} - x_{\min})/g \rceil planes. Each refinement makes at most 2m−12^m - 1 splits, each with a constant number of rational operations, so the time is O(K2m)O(K 2^m) in the worst case. In practice the number of chords on a pass is about L/8ρεL/\sqrt{8\rho\varepsilon}, where LL is the length of the pass and ρ\rho the radius of curvature of the curve, because a chord with sagitta ε\varepsilon on a circle of radius ρ\rho has length about 8ρε\sqrt{8\rho\varepsilon}. The extra space is the recursion depth O(m)O(m).

Properties

  • Across patches. The passes depend only on the planes and the geometry, not on the patches, so they run across the boundaries of a model of many patches.
  • Even when seen from above. The passes project to equally spaced lines in the plane of the machine table.
  • Spacing grows on steep slopes. On the surface the spacing is about g/1−nx2g/\sqrt{1 - n_x^2}, so the passes spread on slopes that are steep along xx and leave larger scallops there.
  • Steady along slopes in yy. A slope that climbs along yy, parallel to the planes, keeps the spacing gg, because nx=0n_x = 0 there.

Variants and improvements

  • Cutter location surface. Cutting the offset of the part surface by the planes gives the tool centers directly, and a ball end mill on these centers does not gouge the part. On a grid this is the idea of the inverse tool offset.
  • Two directions. A second pass set with planes y=cy = c machines the slopes that the first set treats badly. Some systems choose the direction per region from the normals.
  • Adaptive plane spacing. Choosing each next plane from the scallop height of the last pass gives an iso-scallop toolpath.
  • Z-level paths. Horizontal planes z=cz = c give the waterline passes of steep walls, the other half of the steep and shallow split. The same operation on a mesh is triangle mesh slicing.

When to use it

Use iso-planar passes for parts of many patches, and for shallow parts where nxn_x stays small. On parts with steep walls, combine them with waterline passes for the steep areas, or use an iso-scallop path.

Pitfalls

  • Walls that face the planes. A wall with normal along xx gets one pass or none. The code rejects a patch with xv≤0x_v \le 0 for this reason.
  • Grazing boundaries. A patch boundary that runs almost parallel to the planes is crossed at a grazing angle, and the material along it can be far from every pass. A last pass along the boundary fixes this.
  • Midpoint test only. A curve can bend away from a chord and come back at the middle. A tighter test checks more points or bounds the curvature.
  • Contact points, not centers. Offsetting the contact points along the normal can make the tool centers leave the planes and can gouge concave regions. Cutting the offset surface avoids both.

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.

iso_planar_toolpath.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/iso-planar-toolpath/. The authors are listed in prov/4X99MA.jsonl.

"""Iso-planar toolpath on a bilinear patch, with exact arithmetic.

The drive planes are x = c_k = xmin + g/2 + k g. On the bilinear patch
S(u, v), the coordinate x is A + B u + C v + D u v. The code needs
x_v = C + D u > 0 for 0 <= u <= 1, so that each plane meets the patch in one
curve v(u) = (c - A - B u) / (C + D u). This is a rational function, so every
point of the cut curve has rational coordinates and lies exactly on the plane
and on the patch.

Each curve is cut into chords by a recursive midpoint test: a chord is kept
when the curve point at the middle parameter is within eps of the chord.
This test is a heuristic. It does not bound the deviation at every point of
the curve, although on these smooth curves it does so in practice.
"""

from fractions import Fraction

Point = tuple[Fraction, Fraction, Fraction]


def _pt(p) -> Point:
    if len(p) != 3:
        raise ValueError("a corner needs 3 coordinates")
    return tuple(Fraction(c) for c in p)


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


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


def lerp(a, b, t):
    return tuple(x + t * (y - x) for x, y in zip(a, b))


def dist2_segment(p, a, b) -> Fraction:
    d = sub(b, a)
    dd = dot(d, d)
    t = 0 if dd == 0 else min(Fraction(1), max(Fraction(0), dot(sub(p, a), d) / dd))
    q = tuple(x + t * y - z for x, y, z in zip(a, d, p))
    return dot(q, q)


class BilinearPatch:
    def __init__(self, p00, p10, p01, p11):
        self.p00, self.p10, self.p01, self.p11 = map(_pt, (p00, p10, p01, p11))
        x00, x10, x01, x11 = self.p00[0], self.p10[0], self.p01[0], self.p11[0]
        self.A, self.B, self.C = x00, x10 - x00, x01 - x00
        self.D = x00 - x10 - x01 + x11
        if self.C <= 0 or self.C + self.D <= 0:
            raise ValueError("x must grow with v on the whole patch")

    def at(self, u, v) -> Point:
        return lerp(lerp(self.p00, self.p10, u), lerp(self.p01, self.p11, u), v)

    def v_on_plane(self, c, u) -> Fraction:
        return (c - self.A - self.B * u) / (self.C + self.D * u)

    def u_range(self, c):
        """The u for which the plane x = c meets the patch at 0 <= v <= 1, or None."""
        lo, hi = Fraction(0), Fraction(1)
        # v >= 0:  (c - A) - B u >= 0;  v <= 1:  (C - c + A) + (D + B) u >= 0
        for a, b in ((-self.B, c - self.A), (self.D + self.B, self.C - c + self.A)):
            if a == 0:
                if b < 0:
                    return None
            elif a > 0:
                lo = max(lo, -b / a)
            else:
                hi = min(hi, -b / a)
        return (lo, hi) if lo <= hi else None

    def x_range(self):
        xs = [p[0] for p in (self.p00, self.p10, self.p01, self.p11)]
        return min(xs), max(xs)


def _refine(curve, u0, u1, eps2, depth, out):
    """Append the chord ends for the curve between u0 and u1, without the start point."""
    um = (u0 + u1) / 2
    if depth > 0 and dist2_segment(curve(um), curve(u0), curve(u1)) > eps2:
        _refine(curve, u0, um, eps2, depth - 1, out)
        _refine(curve, um, u1, eps2, depth - 1, out)
    else:
        out.append(u1)


def iso_planar(patch: BilinearPatch, g, eps, max_depth=30):
    """The passes of an iso-planar path, as (c, [(u, point), ...]) from the lowest plane up.

    Even passes run in the direction of growing u, odd passes the other way.
    """
    g, eps = Fraction(g), Fraction(eps)
    if g <= 0 or eps <= 0:
        raise ValueError("g and eps must be positive")
    xmin, xmax = patch.x_range()
    passes = []
    k = 0
    c = xmin + g / 2
    while c < xmax:  # @line L1
        rng = patch.u_range(c)  # @line L2
        if rng is None:  # @line L3
            k, c = k + 1, c + g
            continue

        def curve(u, c=c):  # @line L4
            return patch.at(u, patch.v_on_plane(c, u))

        lo, hi = rng
        us = [lo]
        if hi > lo:
            _refine(curve, lo, hi, eps * eps, max_depth, us)  # @line L5
        pts = [(u, curve(u)) for u in us]
        passes.append((c, pts if k % 2 == 0 else pts[::-1]))  # @line L6
        k, c = k + 1, c + g
    return passes  # @line L7
test_iso_planar_toolpath.py 128 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/iso-planar-toolpath/. The authors are listed in prov/4X99MA.jsonl.

import math
import random
from fractions import Fraction as F

import pytest

from iso_planar_toolpath import BilinearPatch, dist2_segment, dot, iso_planar, sub


def ramp(m):
    """The plane z = m x over 0 <= x <= 10, 0 <= y <= 4, with x = 10 v."""
    return BilinearPatch((0, 0, 0), (0, 4, 0), (10, 0, 10 * m), (10, 4, 10 * m))


def random_patch(rng):
    j = lambda: F(rng.randrange(-8, 9), 4)
    x10 = j()
    p00 = (0, 0, F(rng.randrange(-20, 21), 4))
    p10 = (x10, 10 + j(), F(rng.randrange(-20, 21), 4))
    p01 = (10 + j(), j(), F(rng.randrange(-20, 21), 4))
    p11 = (x10 + 10 + j(), 10 + j(), F(rng.randrange(-20, 21), 4))
    return BilinearPatch(p00, p10, p01, p11)


def normal_x(patch, u, v):
    p00, p10, p01, p11 = patch.p00, patch.p10, patch.p01, patch.p11
    su = [float((1 - v) * (b - a) + v * (d - c)) for a, b, c, d in zip(p00, p10, p01, p11)]
    sv = [float((1 - u) * (c - a) + u * (d - b)) for a, b, c, d in zip(p00, p10, p01, p11)]
    n = (su[1] * sv[2] - su[2] * sv[1], su[2] * sv[0] - su[0] * sv[2], su[0] * sv[1] - su[1] * sv[0])
    return n[0] / math.sqrt(n[0] ** 2 + n[1] ** 2 + n[2] ** 2)


def fdist(p, pts):
    best = math.inf
    for a, b in zip(pts, pts[1:]):
        a, b = [float(x) for x in a], [float(x) for x in b]
        d = [y - x for x, y in zip(a, b)]
        dd = sum(x * x for x in d)
        t = 0.0 if dd == 0 else min(1.0, max(0.0, sum((float(pi) - ai) * di for pi, ai, di in zip(p, a, d)) / dd))
        best = min(best, math.dist([ai + t * di for ai, di in zip(a, d)], [float(x) for x in p]))
    return best


def test_ramp_example():
    passes = iso_planar(ramp(F(3, 4)), 1, F(1, 100))
    assert [c for c, _ in passes] == [F(2 * k + 1, 2) for k in range(10)]
    assert passes[0][1] == [(0, (F(1, 2), 0, F(3, 8))), (1, (F(1, 2), 4, F(3, 8)))]
    assert passes[1][1][0][1] == (F(3, 2), 4, F(9, 8))
    for (_, a), (_, b) in zip(passes, passes[1:]):
        d = sub(a[0][1], b[-1][1])
        assert dot(d, d) == F(25, 16)  # the spacing on the surface is 5/4 for g = 1


def test_points_are_on_the_plane_and_on_the_patch():
    rng = random.Random(1)
    for _ in range(25):
        patch = random_patch(rng)
        for c, pts in iso_planar(patch, F(rng.randrange(1, 9), 4), F(1, 50)):
            for u, p in pts:
                v = patch.v_on_plane(c, u)
                assert p[0] == c and 0 <= u <= 1 and 0 <= v <= 1
                assert p == patch.at(u, v)


def test_every_chord_passes_the_midpoint_test():
    rng = random.Random(2)
    for _ in range(25):
        patch = random_patch(rng)
        eps = F(1, rng.randrange(10, 200))
        for c, pts in iso_planar(patch, F(rng.randrange(1, 9), 4), eps):
            for (u0, a), (u1, b) in zip(pts, pts[1:]):
                um = (u0 + u1) / 2
                assert dist2_segment(patch.at(um, patch.v_on_plane(c, um)), a, b) <= eps * eps


def test_spacing_on_the_surface_matches_the_slope_estimate():
    """Measured, not proved: the gap on the surface is about g / sqrt(1 - n_x^2)."""
    rng = random.Random(3)
    g = F(1, 4)
    checked = 0
    for _ in range(6):
        patch = random_patch(rng)
        passes = iso_planar(patch, g, F(1, 1000))
        for (c, a), (_, b) in zip(passes[2:-3], passes[3:-2]):
            u, p = a[len(a) // 2]
            if not (F(1, 5) < u < F(4, 5)):
                continue
            v = patch.v_on_plane(c, u)
            est = float(g) / math.sqrt(1 - normal_x(patch, u, v) ** 2)
            got = fdist(p, [q for _, q in b])
            assert abs(got - est) <= 0.1 * est
            checked += 1
    assert checked > 50


def test_coverage_measured():
    """Measured, not proved: an inner sample point is within about half the local gap of a pass.

    Near a patch boundary that runs almost parallel to the planes, the passes
    end at a grazing angle and the distance can be larger, so the samples
    stay away from the boundary.
    """
    rng = random.Random(4)
    for _ in range(4):
        patch = random_patch(rng)
        g, eps = F(1, 2), F(1, 200)
        passes = iso_planar(patch, g, eps)
        polys = [[q for _, q in pts] for _, pts in passes]
        for _ in range(60):
            u, v = F(rng.randrange(10, 91), 100), F(rng.randrange(10, 91), 100)
            est = float(g) / math.sqrt(1 - normal_x(patch, u, v) ** 2)
            d = min(fdist(patch.at(u, v), poly) for poly in polys)
            assert d <= 0.55 * est + float(eps)


def test_a_wall_facing_the_planes_is_rejected():
    with pytest.raises(ValueError):
        BilinearPatch((5, 0, 0), (5, 4, 0), (5, 0, 3), (5, 4, 3))


def test_bad_input():
    with pytest.raises(ValueError):
        iso_planar(ramp(1), 0, 1)
    with pytest.raises(ValueError):
        iso_planar(ramp(1), 1, 0)

History

The drive surface of APT part programs, a plane that the tool follows while it touches the part surface, is the older form of the method. Huang and Oliver (1994) studied tool paths from the cuts of sculptured surfaces by parallel planes as an alternative to constant-parameter paths, and Choi and Jerard (1998) present iso-planar machining next to the iso-parametric and iso-scallop methods.

References

  1. Byoung K. Choi and Robert B. Jerard, Sculptured Surface Machining, Theory and Applications, Kluwer Academic Publishers, 1998, chapter 6, introduction to tool-path generation methods, the part on Cartesian (iso-planar) machining
  2. Yunching Huang and James H. Oliver, Non-constant parameter NC tool path generation on sculptured surfaces, International Journal of Advanced Manufacturing Technology 9(5), 281-290, 1994, the tool paths from the cuts of the surface by parallel planes, and the choice of the plane spacing

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.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)
WritingW2 basic
  • at least three sources
  • a scene preset for the example