parapoly-engine
v3.0.4
Published
ParaPoly Engine Code3D (parapoly, code3d, pp3d): AI-assisted parametric 3D/CAD modeling and native STEP, STL, GLB export.
Maintainers
Readme
ParaPoly Engine Code3D
English | 简体中文
Create parametric 3D/CAD models with JavaScript, from individual parts to multi-part assemblies. Export real geometry as STEP, STL or GLB from the command line, a Node.js application or an AI-assisted modeling workflow.
Browse the model showcase for thumbnails, editable sources, downloadable GLB/STEP/BMAX models, multiple views and modeling skills. Models live in the showcase and are not bundled in this npm package.
Quick start
Requires Node.js 18+ on Windows x64 or Linux x64 with glibc 2.35+.
Install in your modeling project:
npm install parapoly-engineSave this as main.code3d.js:
let main = function (params) {
const code3d_doc = new PartCode3dDocument();
code3d_doc.box("union", params?.width ?? 40, 20, 30, "#5486ad");
return code3d_doc;
};Export the model:
npx --no-install parapoly-engine export ./main.code3d.js -o ./models -f glb,stl,stepThe files are written to models/. Model files run in the Code3D environment, which provides PartCode3dDocument; run them through the engine CLI. Dimensions conventionally use millimeters. One file can contain parameters and multiple named parts with their own positions and materials.
To try a larger model, download or clone the showcase and follow its example instructions.
Model with an AI assistant
Configure Codex, Claude Code or GitHub Copilot for the current project:
npx --no-install parapoly-engine setup-aiThen ask your assistant, for example: "Use ParaPoly to create a flange with four mounting holes and export STEP and GLB." The included skill locates the installed engine and its API documentation. See AI setup for client and scope options.
Explore the models
21 examples. Each row compares one model: CAD, BMAX 64, BMAX 32 and BMAX 16. Click a thumbnail for details, or open GLB, STEP, BMAX and source files in the showcase.
