const { makeBaseBox } = replicad;
export const defaultParams = {
width: 12,
height: 30,
thickness: 15,
};
export const defaultName= "A box"
export default function main(props) {
const { width, height, thickness } = props;
const shape = makeBaseBox(width, height, thickness);
return [
{
shape,
labels: [
{
label: `width ${width}`,
from: [-width / 2, -height / 2, thickness],
to: [width / 2, -height / 2, thickness],
offset: [0, -1, 0],
color: "green",
},
{
label: "thickness",
from: [width / 2, height / 2, 0],
to: [width / 2, height / 2, thickness],
offset: [0, 1, 0],
color: "yellow",
},
],
},
];
}