Try the SDK

Blacksmith in JavaScript

The same cadaclysm_blacksmith.js the SDK ships for Node.js, running in your browser over the WebAssembly build of the library. Shift+Enter runs a cell, Tab completes from the live namespace; the last expression, if it is a solid, a profile or an assembly, is drawn, and so is anything passed to show(); a profile is drawn as its outline, on the XY plane, and an assembly as everything placed in it, each part at its placement. A last expression that is an array of them draws them all in one view, as show(...items) would. A top-level const or let is shared with the cells after it. solid.coloured("#c8a060") is the solid coloured, solid.coloured(colour, i) one face of it, and what is made from it keeps the colours; part.step("plate.stp") offers the file to save. A cell may be TypeScript: annotations, interfaces and enums are stripped before it runs, not checked. Copy the script and it runs unchanged under Node next to the library (a TypeScript one under Node 22 with --experimental-strip-types). The menu holds more notebooks: sweeps and coils, revolves and lofts, shells, booleans, frames, and one in TypeScript.

loading…

This page needs WebGL2 or WebGPU, OffscreenCanvas, module workers and WebAssembly. The forge may still work here.

javascript runs in a worker in your browser · nothing is uploaded editor by CodeMirror (MIT) · third-party licenses