mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-24 01:22:27 +01:00
add px_difference
This commit is contained in:
parent
f62513bbd7
commit
608d888a47
6
src/experimental/px_difference.scad
Normal file
6
src/experimental/px_difference.scad
Normal 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];
|
Loading…
x
Reference in New Issue
Block a user