npm install @moicad/sdkimport { Shape } from '@moicad/sdk';
// Create a simple house
const house = Shape.cube(20)
.union(Shape.pyramid([20, 20, 15]).translate([0, 0, 10]))
.color('brown');
// Get geometry for 3D printing
const geometry = house.getGeometry();
console.log('Vertices:', geometry.vertices.length);
console.log('Volume:', house.getVolume());import { cube, pyramid, translate, union } from '@moicad/sdk';
// Create same house functionally
const house = union(
cube(20),
translate([0, 0, 10], pyramid([20, 20, 15]))
);
// Apply color
const coloredHouse = color('brown', house);Chainable methods for readable, maintainable code
10-20x faster than OpenSCAD with manifold-3d engine
Full TypeScript support with IntelliSense
98-99% language compatibility for easy migration
Built-in Three.js visualization and rendering
Works in browser and Node.js environments