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

Support multidimensional minus in algebra mode #465

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

voneiden
Copy link
Contributor

@voneiden voneiden commented Jan 6, 2024

Previously algebra minus had a check that verified all arguments were of same dimension. However OCCT supports cutting a shape with shapes that are of equal OR larger dimension. This commit modifies the check to support larger dimensions and adds tests for all dimension variations.

Ref #446

Previously algebra minus had a check that verified all arguments were
of same dimension. However OCCT supports cutting a shape with shapes
that are of equal OR larger dimension. This commit modifies the check
to support larger dimensions and adds tests for all dimension
variations.
Copy link

codecov bot commented Jan 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5f9001d) 96.04% compared to head (3678691) 96.05%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #465      +/-   ##
==========================================
+ Coverage   96.04%   96.05%   +0.01%     
==========================================
  Files          24       24              
  Lines        7427     7428       +1     
==========================================
+ Hits         7133     7135       +2     
+ Misses        294      293       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MatthiasJ1
Copy link
Contributor

One note is you can in fact subtract one lower dimension, e.g 3d-2d or 2d-1d. The split operation (#427) is essentially subtracting 3d-2d with an extra step which separates the resulting parts based on their orientation relative to the splitting surfaces.

@gumyr gumyr merged commit d3ad4e9 into gumyr:dev Jan 7, 2024
12 checks passed
@gumyr
Copy link
Owner

gumyr commented Jan 7, 2024

Thank you!

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

Successfully merging this pull request may close these issues.

3 participants