mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-24 09:33:26 +01:00
dedup
This commit is contained in:
parent
f7f0716670
commit
66f958ddc3
@ -12,6 +12,7 @@ use <__comm__/__to3d.scad>;
|
|||||||
use <__comm__/__to2d.scad>;
|
use <__comm__/__to2d.scad>;
|
||||||
use <__comm__/__lines_from.scad>;
|
use <__comm__/__lines_from.scad>;
|
||||||
use <pixel/px_line.scad>;
|
use <pixel/px_line.scad>;
|
||||||
|
use <util/dedup.scad>;
|
||||||
|
|
||||||
function px_polyline(points) =
|
function px_polyline(points) =
|
||||||
let(
|
let(
|
||||||
@ -19,4 +20,4 @@ function px_polyline(points) =
|
|||||||
pts = is_2d ? [for(pt = points) __to3d(pt)] : points,
|
pts = is_2d ? [for(pt = points) __to3d(pt)] : points,
|
||||||
polyline = [for(line = __lines_from(pts)) each px_line(line[0], line[1])]
|
polyline = [for(line = __lines_from(pts)) each px_line(line[0], line[1])]
|
||||||
)
|
)
|
||||||
is_2d ? [for(pt = polyline) __to2d(pt)] : polyline;
|
dedup(is_2d ? [for(pt = polyline) __to2d(pt)] : polyline);
|
Loading…
x
Reference in New Issue
Block a user