dos_plinewinding - dalefugier/DOSLib GitHub Wiki
Determines whether a closed polyline winds clockwise or counterclockwise. Note that the test does not determine whether the polyline is self-intersecting.
Syntax
(dos_plinewinding entity)
Parameters
entity
The entity name of a closed polyline.
Returns
>0 If the polyline winds to the left.
<0 If the polyline winds to the right.
0 If unable to determine the winding.
nil on error.
Example
Command: (dos_plinewinding (car (entsel "\nSelect a closed polyline:")))
-1