mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-02 05:43:04 +02:00
err message tweak in star()
rearranged polygon_line_intersection to handle 2d and fixed but where it didn't test polygon membership correctly. Also there was a bug with use of the bounded argument. Added Ronaldo's triangulation.
This commit is contained in:
@@ -1563,7 +1563,7 @@ function star(n, r, ir, d, or, od, id, step, realign=false, align_tip, align_pit
|
||||
)
|
||||
assert(is_def(n), "Must specify number of points, n")
|
||||
assert(count==1, "Must specify exactly one of ir, id, step")
|
||||
assert(stepOK, str("Parameter 'step' must be between 2 and ",floor(n/2)," for ",n," point star"))
|
||||
assert(stepOK, str("Parameter 'step' must be between 2 and ",floor(n/2-1/2)," for ",n," point star"))
|
||||
let(
|
||||
mat = !is_undef(_mat) ? _mat :
|
||||
( realign? rot(-180/n, planar=true) : affine2d_identity() ) * (
|
||||
|
Reference in New Issue
Block a user