-
Notifications
You must be signed in to change notification settings - Fork 129
refactor #531
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
refactor #531
Conversation
@elalish btw if the set of changes is too large, let me know and I can split them into separate PRs. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #531 +/- ##
==========================================
+ Coverage 90.77% 91.29% +0.51%
==========================================
Files 34 34
Lines 4304 4467 +163
==========================================
+ Hits 3907 4078 +171
+ Misses 397 389 -8
☔ View full report in Codecov by Sentry. |
This looks amazing! I very much like the changes you've listed - I'll start reviewing now. I think we can probably leave it as one, but I'll let you know. Sounds like our next release will be v3.0 instead of v2.2, but I think that's fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic! Just some minor comments.
@@ -169,10 +166,10 @@ class CrossSection { | |||
///@} | |||
|
|||
private: | |||
mutable std::shared_ptr<const C2::PathsD> paths_; | |||
mutable std::shared_ptr<const PathImpl> paths_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @geoffder
|
||
#include "conv.h" | ||
#include "manifold.h" | ||
#include "public.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @geoffder
install( | ||
DIRECTORY include/ | ||
DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/manifold | ||
COMPONENT devel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it! Are we testing the install somehow in our CI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the nix build uses install, but we are not checking the file contents
@googlebot I signed it! |
Nice bug find - this all looks good to me; feel free to merge.
I don't quite understand what you mean - looking at our samples and tests it doesn't appear there was any breaking change to the SDF API. |
The policy parameter is replaced with a boolean |
Ah, thanks, I see it now. That's pretty minor, I'm pretty comfortable glossing over that as far as a breaking change. Probably still good with 2.2. |
* added bound check for vec_dh * fix cmakefile * refactored VecDH * renamed VecDH into Vec * better packaging * formatting * include <algorithm> * fix windows * documentation and copyright fixes * use shorter names and implicit conversions * formatting * minimum circular segments = 3
This does 5 things:
cross_section.h
so we no longer expose Clipper2 dependency to our users.Originally I only wanted to remove pointer usages, but as I was modifying things I suddenly want to do some refactor as the changes is already pretty large.
This change breaks the sdf API, as the original way of exposing sdf in header will make all our internal header files public.
Users of our library can now use compiled binaries and our header files. The only third party dependency they need is glm.