1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 09:33:26 +01:00

add px_difference

This commit is contained in:
Justin Lin 2020-03-14 17:33:07 +08:00
parent f62513bbd7
commit 608d888a47

View File

@ -0,0 +1,6 @@
use <util/sort.scad>;
use <util/has.scad>;
function px_difference(points1, points2) =
let(sorted = sort(points2, by = "vt"))
[for(p = points1) if(!has(sorted, p, sorted = true)) p];