atap3d Posted June 17, 2009 Share Posted June 17, 2009 Hi. I have a lot of primitives and one point. I want to make following actions with each primitive: if point is not on primitive, it's necessary to remove this primitive. How to know, whether there is point on primitive? Quote Link to comment Share on other sites More sharing options...
SpencerL Posted June 17, 2009 Share Posted June 17, 2009 (edited) Hi. I have a lot of primitives and one point. I want to make following actions with each primitive: if point is not on primitive, it's necessary to remove this primitive. How to know, whether there is point on primitive? check out the pointdist() expression. You feed it a point and a surface and it will tell you the closest prim on the surface to that point. Ive attacted a simple example. pointDistEx.hip Edited June 17, 2009 by SpencerL Quote Link to comment Share on other sites More sharing options...
atap3d Posted June 17, 2009 Author Share Posted June 17, 2009 Good example. Thank you very much. The solution true not up to the end. If point is not on one of primitives, your example leave nearest to point primitive. It should not be. If point is not on one of primitives, all primitives should be removed. Quote Link to comment Share on other sites More sharing options...
atap3d Posted June 18, 2009 Author Share Posted June 18, 2009 I have solved a problem so. pointDist_atap3d.hip Quote Link to comment Share on other sites More sharing options...
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.