paullim Posted October 3, 2020 Share Posted October 3, 2020 Is there any way of calculating if a 3D point is inside a 3D shape? In the same way that vs.PtinPoly() works in 2D? Thanks! Paul Quote Link to comment
Pat Stanford Posted October 3, 2020 Share Posted October 3, 2020 I don't believe there is a 3D equivalent of PtInPoly. I can think of a couple of possible work arounds. Perhaps someone else will have a better solution. 1. Extract Surfaces from a Top and Elevation view of the volume you are interested in and then use PtInPoly to see if the point is in both. If it is, then you have your answer. 2. If the volume in question is a Solid, then create another small solid and place it at the point in question and Intersect Solids. If you get anything other than a NIL handle returned then the small solid at least partially overlaps with the original solid. 3. ??? Batter Up!! Quote Link to comment
paullim Posted October 4, 2020 Author Share Posted October 4, 2020 Pat, you're a legend. #2 totally worked. I simplified DomC's SolidIntersectList and added some bits to get the points. (file is vw2021) 3D point intersect.vwx Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.