-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add NumVert, NumContour, and Warp #370
Conversation
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.
Yes, I think a union after Warp is a good idea. I plan to eventually manage something equivalent in Manifold (#289).
EXPECT_EQ(sq.NumVert(), 4); | ||
EXPECT_EQ(sq.NumContour(), 1); | ||
Identical(Manifold::Extrude(a, 1.).GetMesh(), | ||
Manifold::Extrude(b, 1.).GetMesh()); |
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.
👍
Ok, I'll add that in then 👍 |
@@ -305,6 +305,24 @@ CrossSection CrossSection::Transform(const glm::mat3x2& m) const { | |||
return transformed; | |||
} | |||
|
|||
CrossSection CrossSection::Warp( |
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.
Also, either now or in a follow-on PR, would you mind adding docs to these functions? The CrossSection docs are looking a little sparse.
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.
Sure, I'll make that my next PR.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #370 +/- ##
==========================================
+ Coverage 85.37% 85.45% +0.08%
==========================================
Files 36 36
Lines 4375 4393 +18
==========================================
+ Hits 3735 3754 +19
+ Misses 640 639 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
A few more methods to
CrossSection
to bring it another step in line withManifold
.Warp
, do you guys think that it should go through a union to clean up any user induced shenanigans, or leave it be (similar to Manifold).