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

The Boolean operation result does not meet expectations. #2089

Open
PPDEMOone opened this issue Oct 29, 2024 · 0 comments
Open

The Boolean operation result does not meet expectations. #2089

PPDEMOone opened this issue Oct 29, 2024 · 0 comments

Comments

@PPDEMOone
Copy link

PPDEMOone commented Oct 29, 2024

Description/Steps to reproduce

I want to get the result of the union of two SVG paths.

paper.setup(new paper.Size(1, 1));

const up = new paper.Path(pathString);

const down = new paper.Path(pathString);

paper.project.activeLayer.addChild(down);
paper.project.activeLayer.addChild(up);

const svg = down.unite(up, {
  insert: true,
});

console.log(svg.pathData);

I got this

image

I'm not very clear on the rules for merging, even for intersect and subtract.

Link to reproduction test-case

https://stackblitz.com/~/github.com/PPDEMOone/paper-boolean-operation-testing-snippet?file=index.ts

Expected result

image image

Additional information

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