mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
don't deduplicate in is_polygon_clockwise
This commit is contained in:
parent
9bb22dc7c5
commit
a6eeb5025c
1 changed files with 1 additions and 1 deletions
|
@ -1696,7 +1696,7 @@ function _is_cw2(a,b,c,eps=EPSILON) = cross(a-c,b-c)<eps*norm(a-c)*norm(b-c);
|
|||
|
||||
// For algorithm see 2.07 here: http://www.faqs.org/faqs/graphics/algorithms-faq/
|
||||
function is_polygon_clockwise(poly) =
|
||||
let( poly=deduplicate(poly))
|
||||
let(
|
||||
assert(is_path(poly,dim=2), "Input should be a 2d path")
|
||||
let(
|
||||
minx = min(poly*[1,0]),
|
||||
|
|
Loading…
Reference in a new issue