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

feat(occara): various improvements and fixes #35

Merged
merged 11 commits into from
Oct 6, 2024

Conversation

maximmaxim345
Copy link
Owner

This PR implements various improvements to occara, as required for #32.
This mainly includes:

  • Implementing the Send and Sync traits for all types
  • Adding Debug and where possible Display implementations
  • Adding Shape::subtract() and Shape::intersect()
  • Removing leftover debug prints

Autocxx can not mark FFI types as thread safe, therefore this commit
manually implements the unsafe Send and Sync traits for all structs. We
can do this since OpenCASCADE is thread safe for read only methods.

This significantely increases the usability of this library.
This add get_components()/location()/direction() methods for Direction,
Direction2D, Axis, Axis2D, PaneAxis and SpaceAxis types.
This commit adds at least a Debug implementation to all types. Debug
messages that could be expanded in the future are marked with 'TODO'.
Now the resulting bottle shapes from the OpenCASCADE example and the
rust port of it are compared using boolean operations.
Due to the complexity, the test is not run by default for now.
@maximmaxim345 maximmaxim345 force-pushed the feat/occara-improvements branch from 21592d9 to a65d258 Compare October 6, 2024 11:50
@maximmaxim345 maximmaxim345 merged commit 5887156 into main Oct 6, 2024
10 checks passed
@maximmaxim345 maximmaxim345 deleted the feat/occara-improvements branch October 6, 2024 11:54
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.

1 participant