You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below are sections of my code causing issues. offset and width are variables with numerical values.
const botArc = new makerjs.models.EllipticArc(180, 0, width / 2, 25);
const botArcMoved = makerjs.model.moveRelative(botArc, [
width / 2 + offset,
offset,
]);
let box = new makerjs.models.Rectangle(100, 50);
box.origin = [0, 0];
let model = {
...
models: {
...
valve: makerjs.model.combineUnion(botArcMoved, box),
},
};
If I comment out valve: makerjs.model.combineUnion(botArcMoved, box) the code doesn't give me the type error and the rest of the models and lines are drawn correctly.
Doing this kind of combine also is giving me an error: makerjs.model.combine(botArcMoved, box, false, true, true, false).
The text was updated successfully, but these errors were encountered:
Below are sections of my code causing issues.
offset
andwidth
are variables with numerical values.If I comment out
valve: makerjs.model.combineUnion(botArcMoved, box)
the code doesn't give me the type error and the rest of the models and lines are drawn correctly.Doing this kind of combine also is giving me an error:
makerjs.model.combine(botArcMoved, box, false, true, true, false)
.The text was updated successfully, but these errors were encountered: