3d-model-generator-by-threejs
3D Model Generator by Three.js
Generate model-specific JavaScript while keeping model construction helpers, validation, export, and review deterministic and reusable.
Workflow
-
Choose a task output directory outside this skill.
-
Run
node scripts/init-model-task.mjs --out <task-dir>to copy the build-module template without overwriting existing work. -
Read
references/build-contract.md. Readreferences/builder-api.mdbefore using bundled builders or helpers. Readreferences/export-formats.mdbefore choosing formats. -
Edit only
<task-dir>/model-build.mjs. Export onebuildModel(ctx)function and keep it deterministic. -
Install the pinned runtime once with
npm ci --prefix scripts. -
Build, validate, and export:
node scripts/build-and-export.mjs --build <task-dir>/model-build.mjs --out <task-dir> --formats glb,obj,stl -
Inspect
<task-dir>/validation.json. Fix every error and evaluate warnings that affect the requested formats. -
Render a deterministic PNG preview of the exported artifact: