As the title says, I want to judge whether the direction of the poly curve is clockwise or counterclockwise, and get the result such as [true / false] or [0 / 1] as output, such as clockwise / counterclockwise.
My knowledge of mathematics is low, so I need help from a dynamo power user!
Try using Curve.TangentAtParameter to find the curve direction at the midpoint.
We need more information to give you a better answer. Keep in mind that a polycurve may change directions and not be consistently clockwise or counterclockwise.
Certainly the words clockwise or counterclockwise were not appropriate to describe the question.
I want to get the right or left direction from the start point of the polycurve.
This method has worked for me in the past when using closed, planar polycurves. It wont suit open polycurves however, and might have limited applications. I’ve found curve normals typically set to the right for polycurves, but not sure if this is always the case. If it is then this might have use.