mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fix bug in offset_sweep where rounded ends always have 50 points
regardless of $fn/$fa/$fs.
This commit is contained in:
parent
8bec85b5ea
commit
9dfdc1c622
1 changed files with 1 additions and 1 deletions
|
@ -1543,7 +1543,7 @@ function _stroke_end(width,left, right, spec) =
|
|||
normal_dir = unit(normal_seg[1]-normal_seg[0]),
|
||||
width_dir = sign(width[0]-width[1])
|
||||
)
|
||||
type == "round"? [arc(points=[right[0],normal_pt,left[0]],N=50),1,1] :
|
||||
type == "round"? [arc(points=[right[0],normal_pt,left[0]],N=ceil(segs(width/2)/2)),1,1] :
|
||||
type == "pointed"? [[normal_pt],0,0] :
|
||||
type == "shifted_point"? (
|
||||
let(shiftedcenter = center + width_dir * parallel_dir * struct_val(spec, "loc"))
|
||||
|
|
Loading…
Reference in a new issue