OpenSCAD Kernel
WebAssembly build of OpenSCAD that accepts standard .scad syntax.
Usage
- Load/create a file ending with
.scador set the build asset language toopenscad. - The CAD machine will automatically choose the OpenSCAD kernel and spin up the
openscad.worker. - All Replicad viewer features work (mesh display, export).
Example
send({
type: 'initializeModel',
code: `cube(10);`,
parameters: {},
kernelType: 'openscad',
});
// cad.machine detects `.scad` → initializes OpenSCAD kernelOpenSCAD Syntax
Standard OpenSCAD syntax is supported:
// Basic shapes
cube([10, 20, 30]);
sphere(r=5);
cylinder(h=10, r=3);
// Boolean operations
difference() {
cube(10);
sphere(r=6);
}
// Transformations
translate([5, 0, 0]) rotate([0, 0, 45]) cube(5);