1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-30 18:00:01 +02:00

add count

This commit is contained in:
Justin Lin
2022-03-18 08:07:46 +08:00
parent 2a7c38915b
commit 18991671f8
4 changed files with 14 additions and 1 deletions

10
test/util/test_count.scad Normal file
View File

@@ -0,0 +1,10 @@
use <util/count.scad>;
module test_count() {
echo("==== test_count ====");
points = [[7, 2, 2], [1, 1, 2], [3, 4, 2], [3, 4, 2], [1, 2, 3]];
assert(count(points, function(p) norm(p) > 5) == 3);
}
test_count();