diff --git a/src/collection/hashset.scad b/src/collection/hashset.scad index 46b45030..f4a4ccc5 100644 --- a/src/collection/hashset.scad +++ b/src/collection/hashset.scad @@ -37,10 +37,4 @@ function hashset_del(set, elem, eq = df_eq, hash = df_hash) = slice(set, 0, bidx), [concat(slice(bucket, 0, i), slice(bucket, i + 1))], slice(set, bidx + 1) - ); - -function hashset_list(set) = [ - for(bucket = set) - for(elem = bucket) - elem -]; \ No newline at end of file + ); \ No newline at end of file diff --git a/src/collection/hashset_list.scad b/src/collection/hashset_list.scad new file mode 100644 index 00000000..9baf73e8 --- /dev/null +++ b/src/collection/hashset_list.scad @@ -0,0 +1,5 @@ +function hashset_list(set) = [ + for(bucket = set) + for(elem = bucket) + elem +]; \ No newline at end of file diff --git a/src/voxel/vx_bezier.scad b/src/voxel/vx_bezier.scad index 14e89ccc..9262cf28 100644 --- a/src/voxel/vx_bezier.scad +++ b/src/voxel/vx_bezier.scad @@ -12,6 +12,7 @@ use <__comm__/__to2d.scad>; use <__comm__/__to3d.scad>; use <_impl/_vx_bezier_impl.scad>; use ; +use ; function vx_bezier(p1, p2, p3, p4) = let( diff --git a/src/voxel/vx_circle.scad b/src/voxel/vx_circle.scad index 41595644..00e73311 100644 --- a/src/voxel/vx_circle.scad +++ b/src/voxel/vx_circle.scad @@ -10,6 +10,7 @@ use <_impl/_vx_circle_impl.scad>; use ; +use ; function vx_circle(radius, filled = false) = let(all = _vx_circle_impl(radius, filled)) diff --git a/src/voxel/vx_polygon.scad b/src/voxel/vx_polygon.scad index fe477726..3ff58869 100644 --- a/src/voxel/vx_polygon.scad +++ b/src/voxel/vx_polygon.scad @@ -2,6 +2,7 @@ use <../in_shape.scad>; use <../util/sort.scad>; use ; use ; +use ; function vx_polygon(points, filled = false) = let(contour = vx_polyline(concat(points, [points[0]]))) diff --git a/src/voxel/vx_union.scad b/src/voxel/vx_union.scad index 344a0c61..d5f2ca46 100644 --- a/src/voxel/vx_union.scad +++ b/src/voxel/vx_union.scad @@ -9,6 +9,7 @@ **/ use ; +use ; function vx_union(points1, points2) = hashset_list( diff --git a/test/collection/test_hashset.scad b/test/collection/test_hashset.scad index f0845af0..d0fd5b1e 100644 --- a/test/collection/test_hashset.scad +++ b/test/collection/test_hashset.scad @@ -1,5 +1,6 @@ use ; use ; +use ; module test_hashset() { echo("==== test_hashset ====");