BillW Posted September 3, 2025 Share Posted September 3, 2025 (edited) For testing clockwise for 2D polys you can use: btest := GetObjectVariableBoolean(polyH,652); There is no equivalent for 3D polys as far as I can tell. There is a marionette node "Is Clockwise 3D" written in python. In a perfect world there should be variable call, perhaps btest := GetObjectVariableBoolean(poly3DH,653); I was a bit quick off the mark with a code example transposing from Python to Vectorscript. I have found some errors (even in the Marionette node which I will report). Apologies, I forgot I had posted on this subject earlier (Chatgpt reminded me) Edited September 3, 2025 by BillW Quote Link to comment
JBenghiat Posted September 3, 2025 Share Posted September 3, 2025 The complication with 3D is you would have to specify a plane of reference to determine the direction. Quote Link to comment
BillW Posted September 3, 2025 Author Share Posted September 3, 2025 I realise that. In a previous post, the plane of reference was defined by ditching the Z part of each vertex position. Having another look. The example I wanted to handle in this instance, is a set of 3D polygons defining a solid form - see attached. There may be instances where the 3D poly directions are not consistent. Overall, it may be too difficult to handle all situations. Thanks anyway. d. Quote Link to comment
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.