Jump to content
Sign in to follow this  
BastienOger

Reversing normals with center of a primitive

Recommended Posts

Hey Guys! 

I have those wonderful walls going through a for each loop and some of my normals and faces are reversed at the end.

I was thinking about getting the center of each prim and use a wrangle to reverse the normals but not quite sure how to approach that.

Thanks for the help.

image.thumb.png.06abfc4ed29262286f73423fbd9a889f.png

  

 

Share this post


Link to post
Share on other sites

i have bang my head a lot with some shitty mesh coming from C4D. the most effective way i found,  that work more than 95% of the time was to. 

loop each pieces, close them, convert to vdb then compare N with Grad and invert the direction if they are not the same. 

it might work in your case.

 

clean_normal.hiplc

Edited by sebkaine
  • Thanks 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  

×