Merge pull request #884 from revarbat/revarbat_dev

Minor bugfix in _assemble_a_path_from_fragments()
This commit is contained in:
Revar Desmera 2022-06-09 19:18:04 -07:00 committed by GitHub
commit ab8eeb6cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1088,7 +1088,7 @@ function _extreme_angle_fragment(seg, fragments, rightmost=true, eps=EPSILON) =
/// startfrag = The fragment to start with. Default: 0
/// eps = The epsilon error value to determine whether two points coincide. Default: `EPSILON` (1e-9)
function _assemble_a_path_from_fragments(fragments, rightmost=true, startfrag=0, eps=EPSILON) =
len(fragments)==0? _finished :
len(fragments)==0? [[],[]] :
let(
path = fragments[startfrag],
newfrags = [for (i=idx(fragments)) if (i!=startfrag) fragments[i]]