noc2 Posted 17 hours ago Share Posted 17 hours ago (edited) 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 flip_reverse_prims.hiplc Edited 17 hours ago by noc2 Quote Link to comment Share on other sites More sharing options...
fencer Posted 15 hours ago Share Posted 15 hours ago How about compare only once prim to vertex normal for each piece. flip_reverse_prims_v02.hipnc Quote Link to comment Share on other sites More sharing options...
noc2 Posted 4 hours ago Author Share Posted 4 hours ago Thank you so much Paul <3 Quote Link to comment Share on other sites More sharing options...
Sepu Posted 2 hours ago Share Posted 2 hours ago You can also use the measure sop in volume mode and measure by piece and then in the reverse sop you can just say @volume<0 so if there any negative values you reverse them Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.