Jump to content
paullim

Detect if 3D point is inside a solid

Recommended Posts

 

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

Share this post


Link to post

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!!

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...