pub struct Node {}Expand description
One carving step. Uniform on purpose: every field exists for every node so the whole list is one Weft record type (and one JSON shape to learn).
Fields§
§prim: Stringsphere · box · cylinder · capsule · cone · torus · lathe.
(cyl and cube are accepted spellings.)
mode: StringHow this step combines with what’s carved so far: add (union),
blend (smooth union over k metres), cut, intersect. The first
step of a part is the seed whatever its mode.
part: u32Which part (material group) this step belongs to.
x: f32§y: f32§z: f32§rot: f32Y-rotation in degrees.
axis: StringLong axis for the rotational prims: y (default), x, z.
r: f32Radius (sphere/cylinder/capsule/cone/torus-major).
r2: f32Secondary radius (cone top / torus minor).
h: f32Height (cylinder/capsule/cone) and box Y.
w: f32Box X.
d: f32Box Z.
round: f32Box corner rounding.
k: f32Blend radius for mode: "blend".
profile: Vec<f32>Lathe profile as flat r, y pairs (prim: "lathe" only).