Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ianteneth
in reply to: liminma8458

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!