Skip to content

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

@M-Valentino

Description

@M-Valentino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions