mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-16 19:54:29 +02:00
it's in voxel
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
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];
|
|
@@ -1,11 +0,0 @@
|
|||||||
use <../util/sort.scad>;
|
|
||||||
use <../util/has.scad>;
|
|
||||||
|
|
||||||
function px_intersection(points1, points2) =
|
|
||||||
let(
|
|
||||||
leng1 = len(points1),
|
|
||||||
leng2 = len(points2),
|
|
||||||
pts_pair = leng1 > leng2 ? [points1, points2] : [points2, points1],
|
|
||||||
sorted = sort(pts_pair[1], by = "vt")
|
|
||||||
)
|
|
||||||
[for(p = pts_pair[0]) if(has(sorted, p, sorted = true)) p];
|
|
@@ -1,8 +0,0 @@
|
|||||||
use <../util/sort.scad>;
|
|
||||||
use <../util/dedup.scad>;
|
|
||||||
|
|
||||||
function px_union(points1, points2) =
|
|
||||||
dedup(
|
|
||||||
sort(concat(points1, points2), by = "vt"),
|
|
||||||
sorted = true
|
|
||||||
);
|
|
Reference in New Issue
Block a user