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

fn Shape::symmetric_difference(&self, &Shape) -> BooleanShape #193

Open
mkovaxx opened this issue Jan 15, 2025 · 1 comment
Open

fn Shape::symmetric_difference(&self, &Shape) -> BooleanShape #193

mkovaxx opened this issue Jan 15, 2025 · 1 comment

Comments

@mkovaxx
Copy link
Collaborator

mkovaxx commented Jan 15, 2025

Aka. exclusive-or, XOR, etc.

As of now, one has to write something like x.union(y).subtract(x.intersect(y)) which is not ideal from a performance perspective.

@mkovaxx mkovaxx changed the title Provide Shape::symmetric_difference(&Self, &Shape) Provide Shape::symmetric_difference(&Self, &Shape) -> Shape Jan 15, 2025
@mkovaxx mkovaxx changed the title Provide Shape::symmetric_difference(&Self, &Shape) -> Shape Provide Shape::symmetric_difference(&Self, &Shape) -> BooleanShape Jan 15, 2025
@mkovaxx mkovaxx changed the title Provide Shape::symmetric_difference(&Self, &Shape) -> BooleanShape fn Shape::symmetric_difference(&Self, &Shape) -> BooleanShape Jan 15, 2025
@mkovaxx mkovaxx changed the title fn Shape::symmetric_difference(&Self, &Shape) -> BooleanShape fn Shape::symmetric_difference(&self, &Shape) -> BooleanShape Jan 15, 2025
@bschwind
Copy link
Owner

which is not ideal from a performance perspective

Do you know if OCCT has this built-in, or would we implement it with the operation you wrote out?

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

2 participants