-
Notifications
You must be signed in to change notification settings - Fork 119
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
Change curvature API #448
Change curvature API #448
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #448 +/- ##
==========================================
+ Coverage 89.66% 89.77% +0.10%
==========================================
Files 35 35
Lines 4249 4274 +25
==========================================
+ Hits 3810 3837 +27
+ Misses 439 437 -2
☔ View full report in Codecov by Sentry. |
@@ -229,7 +229,7 @@ Module.setup = function() { | |||
}; | |||
|
|||
Module.Manifold.prototype.setProperties = function(numProp, func) { | |||
const oldNumProp = this.numProp; | |||
const oldNumProp = this.numProp(); |
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 was a bug - reading existing properties didn't work before.
Sounds goos, I'll plan to add the new bindings after these changes are in. |
* new curvature API compiles * tests pass * update JS example and fix bindings
I decided to update the curvature API, since I never much liked returning a list that one can only hope stays correlated to output vertices. Now that we have a properties API, I've updated this to simply fill that in as desired. I plan to follow this pattern to add a
CalculateNormals
API, which I swear I discussed with someone here, but I can't find the thread now. This is a breaking change, but I don't think we have many users of curvature yet.@geoffder I removed the c bindings related to the old API - the new one should be a lot simpler. I figure you can add it in when you have a chance?