FlowCad is the fast, free, and precise web app for 3D design and printing. Build professional parametric models with ease-no programming required, but it's there if you need it.
const PARAMS = {
dim: 'disabled',
size: {
x: 50,
y: 50,
z: 20,
},
wall: {
value: 2,
min: 0.1,
},
bottomClosed: true,
}
let { size, dim, wall } = PARAMS
let result: Manifold
const outer = Manifold.cube([size.x, size.y, size.z], true)
let inner = Manifold.cube([size.x - wall.value * 2, size.y - wall.value * 2, size.z], true)
if (PARAMS.bottomClosed) {
inner = inner.translate([0, 0, wall.value])
}
result = outer.subtract(inner)
return { result, PARAMS }