hi,
how is it possible to check if prim's centroid is within an other specific volume (mesh)?
I know I can use the group so to test if points are within a volume and delete those points, but how would I do this for a primitive?
any input welcome!
thanks,
m.
deleting prims with centroid within bounday
2959 8 2- deadalvs
- Member
- 196 posts
- Joined: Aug. 2011
- Offline
- matthias_k
- Member
- 483 posts
- Joined: Dec. 2006
- Offline
- deadalvs
- Member
- 196 posts
- Joined: Aug. 2011
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
Here is a VEX solution that evaluates the normal directions of your mesh volume against the direction of the primitive centroids towards the closest points of the mesh volume.
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- deadalvs
- Member
- 196 posts
- Joined: Aug. 2011
- Offline
- deadalvs
- Member
- 196 posts
- Joined: Aug. 2011
- Offline
- Konstantin Magnus
- Member
- 670 posts
- Joined: Sept. 2013
- Offline
where is your ‘centroid’ then in a case like this?
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
- matthias_k
- Member
- 483 posts
- Joined: Dec. 2006
- Offline
- matthias_k
- Member
- 483 posts
- Joined: Dec. 2006
- Offline
Hmmmm,
the question from Konstantin is perfect.
Maybe you need to convert every prim via primitive SOP to zero
and then check if the zero scaled prim points are inside your
“check against” geo.
But this can be slow, if I'm right
the question from Konstantin is perfect.
Maybe you need to convert every prim via primitive SOP to zero
and then check if the zero scaled prim points are inside your
“check against” geo.
But this can be slow, if I'm right
English is not my native language, sorry in advance for any misunderstanding :-)
-
- Quick Links