Skip to content

Define bool2d module with the boolean operations #12

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

Open
carlos-adir opened this issue Apr 19, 2025 · 0 comments
Open

Define bool2d module with the boolean operations #12

carlos-adir opened this issue Apr 19, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@carlos-adir
Copy link
Contributor

Add the classes that can handles the boolean operations on 2D.

  • EmptyR2
  • WholeR2
  • SinglePoint
  • ContinuousCurve
  • SimpleShape
  • NotContainer
  • OrContainer
  • AndContainer

They must inherit from a class SubSetR2.
Each SubSetR2 instance needs to have the operations bellow, with symbols +, *, -, |, & and ^

  • Intersection: subseta & subsetb or subseta * subsetb
  • Union: subseta | subsetb or subseta + subsetb
  • Inversion: ~subseta or -subseta
  • Subtract: subseta - subsetb
  • XOR: subseta ^ subsetb

Define some functions:

  • unite: can make the union of arbitrary number of SubSetR2
  • intersect: computes the intersection
@carlos-adir carlos-adir added the enhancement New feature or request label Apr 19, 2025
@carlos-adir carlos-adir self-assigned this Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant