TempleParts: the free-standing masonry pieces of jungleProps' temple ruins,
merged into TempleGeo.SPECS: cut blocks and fallen blocks, doorways (a maya
corbel arch, a khmer lintel-and-pediment portal, a candi split gate) and
their collapsed versions, pillars and broken pillars, walls and ruined
walls, the shrine on the summit, the maya roof comb, prang / meru towers and
rubble piles. Every piece is laid from cut-stone blocks with TempleGeo's
masonry tools; colliders are boxes handed back in meta.colliders (plain
data the catalog reads). Bake-time only.
define(S: any, T: any) → void
Add the free-standing temple kinds to S (TempleGeo.SPECS), using TempleGeo T's masonry tools.
| arg | type | description |
|---|
| S | any | |
| T | any | |
styleOf(s: string?) → any
| arg | type | description |
|---|
| s | string? | |
lodOf(lod: number, form: string) → number
| arg | type | description |
|---|
| lod | number | |
| form | string | |
buf(parts: any, name: string) → any
| arg | type | description |
|---|
| parts | any | |
| name | string | |
tintOf(st: any, rng: any, p: Vec) → Vec
| arg | type | description |
|---|
| st | any | |
| rng | any | |
| p | Vec | |
chunk(g: any, rng: any, h: Vec, xf: any, col: Vec, detail: number, chips: number?) → void
a chipped, weathered stone: a box cut by chamfer planes and 1-3 chip planes, gently warped (standalone blocks, rubble)
| arg | type | description |
|---|
| g | any | |
| rng | any | |
| h | Vec | |
| xf | any | |
| col | Vec | |
| detail | number | |
| chips | number? | |
wall(parts: any, o: any) → number
a straight solid wall along X from x0 to x1 (centre line z = zc), full-depth blocks seen from both faces
| arg | type | description |
|---|
| parts | any | |
| o | any | |
band(parts: any, st: any, rng: any, seed: number, lod: number, x0: number, x1: number, y: number, hgt: number, th: number, zc: number?, part: string?) → void
a run of blocks laid along X at one height (a cornice / plinth band), proud by `out` on both faces
| arg | type | description |
|---|
| parts | any | |
| st | any | |
| rng | any | |
| seed | number | |
| lod | number | |
| x0 | number | |
| x1 | number | |
| y | number | |
| hgt | number | |
| th | number | |
| zc | number? | |
| part | string? | |
doorway(rng: any, v: number, lod: number, form: string, style: string?, collapsed: boolean) → void
| arg | type | description |
|---|
| rng | any | |
| v | number | |
| lod | number | |
| form | string | |
| style | string? | |
| collapsed | boolean | |
top(u: number) → number
| arg | type | description |
|---|
| u | number | |
hole(u: ?, vv: ?) → void
the corbel arch: courses step inward above the springing until they meet
missing(u: number, vv: number, isTop: boolean) → number
| arg | type | description |
|---|
| u | number | |
| vv | number | |
| isTop | boolean | |
outerTop(u: number) → number
the split gate: two stepped towers, flat inner faces, the outer silhouette stepping in as it rises
| arg | type | description |
|---|
| u | number | |
pillarShaft(parts: any, st: any, sty: string, rng: any, L: number, H: number, broken: boolean) → void
| arg | type | description |
|---|
| parts | any | |
| st | any | |
| sty | string | |
| rng | any | |
| L | number | |
| H | number | |
| broken | boolean | |
wallKind(rng: any, v: number, lod: number, form: string, style: string?, ruined: boolean) → void
| arg | type | description |
|---|
| rng | any | |
| v | number | |
| lod | number | |
| form | string | |
| style | string? | |
| ruined | boolean | |
top(u: number) → number
| arg | type | description |
|---|
| u | number | |
missing(u: ?, vv: ?, isTop: ?) → void
| arg | type | description |
|---|
| u | ? | |
| vv | ? | |
| isTop | ? | |
shrine(rng: any, v: number, lod: number, form: string, style: string?) → void
origin at floor level of its plinth's foot; door(s) on +Z; walk-in room inside
| arg | type | description |
|---|
| rng | any | |
| v | number | |
| lod | number | |
| form | string | |
| style | string? | |
missing(u: number, vv: number, isTop: boolean) → number
| arg | type | description |
|---|
| u | number | |
| vv | number | |
| isTop | boolean | |
frontHole(u: number, vv: number) → boolean
| arg | type | description |
|---|
| u | number | |
| vv | number | |
top(u: number) → number
| arg | type | description |
|---|
| u | number | |
slab(hx2: number, hz2: number, y: number, hgt: number, part: string) → void
| arg | type | description |
|---|
| hx2 | number | |
| hz2 | number | |
| y | number | |
| hgt | number | |
| part | string | |
top(u: number) → number
| arg | type | description |
|---|
| u | number | |