Log inGet started
World

BIG STEAL CAR: ANDREAS-SAN

Branchmain
Branchesmain
Commitf62a8bc4af

README.md

mesh — the little builder the hero is cut from

Lofts, boxes and blobs, with vertex colours.

A loft sweeps a stack of cross-sections along an axis. The sections are superellipses, so one primitive covers a round sleeve, a squared-off boot and everything between. A box is hard-edged and can be turned. A blob is an ellipsoid, for skulls, ears and shoulders.

Every builder takes a tint callback that paints each vertex from its own position, which is how the wear gets onto the cloth without a texture.

Faces are emitted counter-clockwise seen from outside, and normals are accumulated from that winding, so the two can never disagree. Mesh.signedVolume and Mesh.windingErrors audit a finished part numerically. Mesh.mirrorX cuts the right side from the left, reversing the triangles as well as the axis.