Adjust Winding Order procedurally

   Views 1231   Replies 2   Subscribers 0
User Avatar
Member
5 posts
Joined: Dec. 2019
Offline
Hi! Is there a way to ensure that the polygon areas of meshes always point upwards?
I have tried various orient options in the clean, facet and poly doctor node, but they all require a continuous mesh to work and the direction cannot be specified either. I have also looked at the winding number node examples from the docs, but it is not clear to me how to use the resulting points to synchronise and control the winding order of the objects.

Thanks!
Edited by tungstennew - Nov. 1, 2021 09:32:55

Attachments:
planes.JPG (28.7 KB)

User Avatar
Member
698 posts
Joined: Sept. 2013
Offline
The reverse node can flip polygons. The ones pointing downwards can be identified by their primitive normal:

prim_normal(0, i@primnum, vector(0.0)).y<0.0

Attachments:
reverse_downw.hiplc (95.3 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
5 posts
Joined: Dec. 2019
Offline
Thank you very much, this works perfectly.
  • Quick Links