04-29-2020
06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-29-2020
06:22 AM
Hi @liminma8458,
This sounds like a tough one. Are you using the RangeBox of a ComponentOccurrence or just making a box and trying to find whats in it? Without knowing why the box needs to be non-rectangular or other details, my first thought is to think of this problem as finding a point in a polygon. The non-rectangular box would be the polygon and the point would be a point on the part. Below is a link that has C# code to find a 3D point in a 3D polygon.
https://www.codeproject.com/Articles/1070593/Point-Inside-D-Convex-Polygon-in-Csharp
And maybe if you provided a little more information on why the box needs to be non-rectangular, someone could come up with some work around that doesn't require a non-rectangular box? Hope this helps!