mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-17 17:09:45 +00:00
further refinement to error check in _bez_path_corner
This commit is contained in:
parent
6daf77b600
commit
805ee02964
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ function path_to_bezcornerpath(path, closed, size, relsize) =
|
||||||
/// relative = if true, curvesize is a proportion between 0 and 1. If false, curvesize is an absolute distance that gets converted to a proportion internally.
|
/// relative = if true, curvesize is a proportion between 0 and 1. If false, curvesize is an absolute distance that gets converted to a proportion internally.
|
||||||
function _bez_path_corner(p, curvesize, relative, mincurvesize=0.001) =
|
function _bez_path_corner(p, curvesize, relative, mincurvesize=0.001) =
|
||||||
is_collinear(p)
|
is_collinear(p)
|
||||||
? lerpn(p[0], p[2], 6)
|
? lerpn(p[0], lerp(p[0],p[2],5/6), 6)
|
||||||
: let(
|
: let(
|
||||||
p1 = p[0], p2 = p[1], p3 = p[2],
|
p1 = p[0], p2 = p[1], p3 = p[2],
|
||||||
a0 = 0.5*vector_angle(p1, p2, p3),
|
a0 = 0.5*vector_angle(p1, p2, p3),
|
||||||
|
|
Loading…
Reference in a new issue