Add enlarge method to BoundBox - #1356
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1356 +/- ##
=======================================
Coverage 94.16% 94.16%
=======================================
Files 26 26
Lines 5584 5590 +6
Branches 954 954
=======================================
+ Hits 5258 5264 +6
Misses 194 194
Partials 132 132
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Thanks, could you first explain why is this needed? |
|
This is useful for detecting when geometry is on the edge of (or just outside of) the original, un-enlarged bounding box. My particular use case is a custom Selector for geometry within a BoundBox using isInside(). I need to enlarge the box by a small margin, otherwise the Selector misses geometry on the edges. Apart from this niche case, I think this is generally helpful for those edge cases with isInside(). |
jmwright
left a comment
There was a problem hiding this comment.
Looks good to me. I've experimented with automatically finding interreference and excessive gaps between components in an assembly before, and this could be useful for that. Thanks @AshtonOhms
Surfaces Bnd_Box's Enlarge in the BoundBox class.