Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: c.links[1].walkedPath.pathContext.bezierData is undefined for combineUnion on EllipticArc and Rectangle #596

Open
M-Valentino opened this issue Jul 16, 2024 · 0 comments

Comments

@M-Valentino
Copy link

M-Valentino commented Jul 16, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant