Jump to content
Developer Wiki and Function Reference Links ×

is3Dpolyclockwise function


BillW

Recommended Posts

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 by BillW
Link to comment

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.

 

 

3Dpolygons.jpg.56ae69d7ee1c2b0a7ac13de6cefe1254.jpgd.

Link to comment

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.   Restore formatting

  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...