Jump to content

How to flip reverse face orientations per connected piece


Recommended Posts

Hi;

I have an asset that I imported into Houdini that has pieces with reverse Vertex Normals inside a for each loop per connected piece node, I have written a vex code that finds their bbox center of a piece and tries to determine which pieces get flipped according to the dot product of the point positions and the the bbox center point and have gotten no result out of it :(

And this is what I could come up with for islands with volume. I have absolutely no idea as to how to handle flat plane like structures. Maybe compare their vertex normal orientations to the centroid of the entire enclosure? But then again my code doesn't do the job :(

Any help would be appreciated.

AJ


image.png.5a13850a7ac73de56e0ceacc74a5e125.png

image.png.b599ace5659df739136699e572a4ae7b.png

flip_reverse_prims.hiplc

Edited by noc2
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...