Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld ad080bed-3…

geo

Procedural geometry for Fly Circus, as plain vertex data.

by◐rbiscutt·posted 1mo ago
What it does

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.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

newMesh( ) → Mesh

tri(m: Mesh, a: number, b: number, c: number) → void

argtypedescription
mMesh
anumber
bnumber
cnumber

coneShell(R: number, H: number, segs: number, parity: number?) → Mesh

Apex at (0, H, 0), eave circle of radius R at y = 0, open underneath. `parity` keeps only the wedges whose index has that remainder mod 2, which is how one striped big top is authored as two meshes sharing an axis: the red roof and the yellow roof each hold alternating wedges.

argtypedescription
Rnumber
Hnumber
segsnumber
paritynumber?

disc(R: number, segs: number) → Mesh

argtypedescription
Rnumber
segsnumber

annulus(rIn: number, rOut: number, segs: number) → Mesh

argtypedescription
rInnumber
rOutnumber
segsnumber

domeShell(R: number, H: number, segs: number, rings: number, parity: number?) → Mesh

A dome of radius R and height H, open underneath, facing outwards. `parity` splits it into alternating gores the same way `coneShell` does.

argtypedescription
Rnumber
Hnumber
segsnumber
ringsnumber
paritynumber?

wing(len: number, width: number, segs: number) → Mesh

A flat leaf lying in the XZ plane, root at the origin, tip at (0, 0, -len) so it points along the entity's forward. Thin, and the two faces are wound opposite ways so a translucent material reads from either side.

argtypedescription
lennumber
widthnumber
segsnumber

tube(R: number, H: number, segs: number) → Mesh

Used where a part has to be a clean tube rather than the engine's unit cylinder (insect leg segments, tent poles). Radius R, from y = 0 to y = H.

argtypedescription
Rnumber
Hnumber
segsnumber

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.