Trophy Room: Trophies and Podiums Kit
README.md
geometry
A small mesh kit for building made objects from profiles: trophyKit makes every trophy and podium with it, and any other script can too.
A builder keeps one triangle soup per material slot. Generators append to a slot: lathe (a profile revolved round Y), roundRect (a profile swept round a rounded rectangle), slab (a beveled rounded block), box, extrude (a star-shaped outline extruded with chamfered faces), starOutline, tube (a round tube swept along a path), and voxels (cells with only exposed faces drawn). mark and apply move what was added since a mark (with rotX, rotY, rotZ). finish welds each slot into { positions, normals, uvs, colors, indices } with normals smoothed under a crease angle, ready for renderer.mesh.create; push grows a shell for ink outlines.
local G = require("trophyKit.geometry")
local b = G.new()
G.lathe(G.slot(b, "gold"), { { 0, 0 }, { 0.1, 0 }, { 0.12, 0.3 }, { 0, 0.32 } }, { seg = 48 })
local geos = G.finish(b, { angle = 35 })
local mesh = renderer.mesh.create(geos.gold)