Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
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();bb33edfd7This file is pinned to the selected release. Download the original to open it in your design tool.