meshgen
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
meshgen
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2arena/meshgen.module — bakes the arena's soft claymation meshes into durable `.mesh` assets under /source/arena/meshes (via arena.meshkit). Run once (or after changing a shape) with: require("arena.meshgen").generateAll() arena.layout only references the baked assets, so loading the scene never regenerates geometry. Why: mesh_gen was unavailable (upstream 402), and the arena was ~1100 primitive entities. These meshes give rounded clay silhouettes AND merge repeated pieces (fence runs, hedge ring, flowers, stones, canopies) into a handful of entities.
rnd( ) → number
jit(a: number) → number return
| arg | type | description |
|---|---|---|
| a | number |
qZ(d: number) → void
| arg | type | description |
|---|---|---|
| d | number |
qX(d: number) → void
| arg | type | description |
|---|---|---|
| d | number |
qY(d: number) → void
| arg | type | description |
|---|---|---|
| d | number |
fenceRun( ) → any
fuv(x: number, y: number, _z: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| _z | number |
at(px: number, py: number, pz: number) → void
body (origin at the ground, tilted as a whole)
| arg | type | description |
|---|---|---|
| px | number | |
| py | number | |
| pz | number |
hedgeRing( ) → any
bgTrees( ) → void
oak( ) → void
flowers( ) → void
stones( ) → any
crayons( ) → void
block( ) → any
cushion(sx: number, sy: number, sz: number, s: number) → any
| arg | type | description |
|---|---|---|
| sx | number | |
| sy | number | |
| sz | number | |
| s | number |
blanket( ) → any
rim(sx: number, sy: number, sz: number, s: number) → any
| arg | type | description |
|---|---|---|
| sx | number | |
| sy | number | |
| sz | number | |
| s | number |
box(sx: number, sy: number, sz: number, r: number, s: number) → any
tank pieces (cardboard: only slightly soft edges, handmade wobble)
| arg | type | description |
|---|---|---|
| sx | number | |
| sy | number | |
| sz | number | |
| r | number | |
| s | number |
cannon( ) → any
treadBand( ) → any
star( ) → any
plateWheel( ) → any
starPair( ) → void
treadPlain( ) → any
treadRidges( ) → any
pinecone( ) → void
poop( ) → void
juice( ) → void
bgBushes( ) → any
generateProps( ) → void
Bake the gameplay prop meshes (pinecone, poop, juice box) only.
save(name: string, B: any) → void
| arg | type | description |
|---|---|---|
| name | string | |
| B | any |
generateExtras( ) → void
Bake the round-3 arena additions (stars, treads, cushions, bushes).
save(name: string, B: any) → void
| arg | type | description |
|---|---|---|
| name | string | |
| B | any |
generateAll( ) → void
Rebuild every arena mesh asset under /source/arena/meshes. Returns { name = {verts, tris} }.
save(name: string, B: any) → void
| arg | type | description |
|---|---|---|
| name | string | |
| B | any |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.