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

Pulls OSut v0.5.0 #114

Merged
merged 8 commits into from
Apr 17, 2024
Merged

Pulls OSut v0.5.0 #114

merged 8 commits into from
Apr 17, 2024

Conversation

brgix
Copy link
Member

@brgix brgix commented Apr 4, 2024

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).

@brgix brgix added the enhancement New feature or request label Apr 4, 2024
@brgix brgix self-assigned this Apr 4, 2024
@@ -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)
Copy link
Member Author

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?
Copy link
Member Author

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):

  1. a "tiny" (i.e. invalid) surface, e.g. the width of one's finger
  2. 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.

@brgix brgix merged commit 9899a55 into develop Apr 17, 2024
7 checks passed
@brgix brgix deleted the osut050 branch April 17, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant