Jump to content
Sign in to follow this  
anbt

Avoiding self intersection when displace along N

Recommended Posts

I am trying to displace the mesh of a cloth along its normals with a PeakSOP but as there are a lot of wrinkles, it doesn't work as intended. Any idea how I can achieve the example bottom right?!
 
cheers
image.thumb.png.d369730a08ef8b04497eb30d843b8ec4.png

Share this post


Link to post
Share on other sites

You can filter and "smooth" the direction(N) you use to "peak" your surface. pcopen-pcfilter will do that just fine.

in vex:

int handle = pcopen(0, "P", @P, ch("radius"), chi("max_points"));
@P = pcfilter(handle,"P");

You can do similar in Vop too.

 

  • Like 1

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
Sign in to follow this  

×