Detect Primitive normal / Polygon winding

   1404   2   1
User Avatar
Member
192 posts
Joined: April 2015
Offline
Hi guys,

I have this geo now created procedurally. Some primitives are flipped.
I can't really find a way to unflip them during the geo-creation process right now, but moreover is this a question about how to detect primitive winding order on polygons in a more general way, I guess.

How can we detect the winding order and flip only the reversed ones, so they all face the same direction?

I have tried the tutorial-suggested "Correct Winding of Polygons to Majority of their Manifold Patch" parameter of the PolyDoctor node, and also the 'Orient Polygons' parameter that's on various other nodes. But they had no succes because these are separate polygons, is my guess.
Hip file is attached.

Thanks in advance,
Edited by OdFotan - Sept. 19, 2021 08:10:45

Attachments:
detect_windingorder.v1.hiplc (222.1 KB)
Screenshot 2021-09-19 at 14.04.13.png (514.5 KB)

User Avatar
Member
122 posts
Joined: Aug. 2017
Offline
Have Fun
Edited by cncverkstad - Sept. 19, 2021 15:00:24

Attachments:
Fix.hiplc (235.2 KB)

Conservation of Momentum
User Avatar
Member
192 posts
Joined: April 2015
Offline
Ah, thank you.
  • Quick Links