Log inGet started
World

Fly Circus — The Living Simulation

Branchmain
Branchesmain
Commitff727ce6b1

README.md

geo

Procedural geometry for Fly Circus, as plain vertex data.

Each function returns the shape asset.create("mesh", name, ...) takes — positions, indices, normals and uvs as flat arrays — so a scene build turns one into a durable mesh asset with build.asset. Nothing here touches the engine; it is arithmetic over triangles.

FunctionWhat it makes
coneShell(R, H, segs, parity?)a faceted cone roof, apex up, open underneath. parity keeps alternating wedges, which is how a striped big top is two meshes on one axis.
wall(R, H, segs, gapFrom?, gapTo?, parity?)a vertical curtain, open at both ends, with an optional doorway gap in radians.
domeShell(R, H, segs, rings, parity?)a hemispherical shell, open underneath, splittable into gores.
disc(R, segs)a flat disc facing +Y.
annulus(rIn, rOut, segs)a flat ring band facing +Y.
tube(R, H, segs)a capped tube from y = 0 to y = H.
wing(len, width, segs)an insect wing: a flat lens from the origin out along -Z.

Conventions: +Y is up, azimuth 0 is +Z, a mesh's origin sits at the centre of its base, and triangles are wound counter-clockwise as seen from the front face.