Jump to content
vrman

Condition for choosing between Polyextrude or Polyfill

Recommended Posts

Posted (edited)

i have a model with 2000 pieces , some of them need to use polyfill and some of them need to use polyextrude.
the problem is i cant find a way to make a condition to seperating them.

the correct result should be like this (pic_1) :
Pic_1.thumb.jpg.7ddd211ef8cf6e776167b255f9566146.jpg

when they only use polyextude (pic_2) :
Pic_2.thumb.jpg.b2ada1d0f66f0befb3bc0528dd73b355.jpg

and when the only use polyfill (pic_3) :
Pic_3.thumb.jpg.62b553869414d9e37bc2f4156757b864.jpg

i want to make a condition for change switch node to use correct sop for each object.
is there any solution to fix this situation ?

thanks alot

Condition_problem.hipnc

Edited by vrman

Share this post


Link to post
Share on other sites

Best way is to deal with it upstream than post-process collapsed geometry.

How about grouping unshared points and counting them using npointsgroup() expression function? Grid will have plenty of points in that group, while piece missing a quad will have only 4.

Condition_problem_fix.hipnc

Share this post


Link to post
Share on other sites
8 hours ago, f1480187 said:

 while piece missing a quad will have only 4.

Condition_problem_fix.hipnc

what if the pieces are more complexed...ie. the hole is not a nice quad ?

Here's my workaround, I've added a subdiv to the box to force non-quad hole. Then use the 'default' Bool operation to detect self-intersection which is the problem when you cap/fill a somewhat planar/sheet object.

Condition_problem_vu_mod.hipnc

choose1.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×