-
Notifications
You must be signed in to change notification settings - Fork 4
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
Pulls OSut v0.5.0 #114
Pulls OSut v0.5.0 #114
Conversation
@@ -251,7 +251,7 @@ def faces(s = {}, e = {}) | |||
# | |||
# @return [Topolys::Vector3D] true normal vector of s | |||
# @return [nil] if invalid input (see logs) | |||
def trueNormal(s = nil, r = 0) | |||
def truNormal(s = nil, r = 0) |
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.
Distinguishes OSut's trueNormal
from TBD's internal truNormal
. The obvious way around this is proper namespaces, but this will do for now.
end | ||
|
||
angle = reference_V.angle(farthest_V) | ||
angle = 0 if angle.nil? |
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.
There are at least 2 circumstances that can trigger a nilled polar angle (around an edge):
- a "tiny" (i.e. invalid) surface, e.g. the width of one's finger
- when edges are "leader lines", as briefly discussed here
Getting the polar angle right allows TBD to distinguish concave vs convex corners, for instance. But in other cases, it has no effect (e.g. transition edges). The raised error was initially justified when dealing with bad geometry (something the user should remedy), yet "leader lines" (i.e. transition edges) shouldn't raise such an error. Simpler here to just mute the error entirely.
Preliminary testing of OSut v0.5.0 (branch "geo"), a TBD dependency. Although 99% done, there are likely minor improvements to add to OSut before releasing later this month. Very minor adjustments are expected for TBD (i.e. no anticipated change in test results).