mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-21 14:04:53 +02:00
refactor
This commit is contained in:
3
src/experimental/_impl/_tri_delaunay_comm_impl.scad
Normal file
3
src/experimental/_impl/_tri_delaunay_comm_impl.scad
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function delaunay_coords(d) = d[0];
|
||||||
|
function delaunay_triangles(d) = d[1];
|
||||||
|
function delaunay_circles(d) = d[2];
|
@@ -1,3 +1,4 @@
|
|||||||
|
use <_tri_delaunay_comm_impl.scad>;
|
||||||
use <experimental/tri_circumcircle.scad>;
|
use <experimental/tri_circumcircle.scad>;
|
||||||
use <util/map/hashmap.scad>;
|
use <util/map/hashmap.scad>;
|
||||||
use <util/map/hashmap_get.scad>;
|
use <util/map/hashmap_get.scad>;
|
||||||
@@ -35,10 +36,6 @@ function delaunay_init(center, width, height) =
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
[coords, triangles, circles];
|
[coords, triangles, circles];
|
||||||
|
|
||||||
function delaunay_coords(d) = d[0];
|
|
||||||
function delaunay_triangles(d) = d[1];
|
|
||||||
function delaunay_circles(d) = d[2];
|
|
||||||
|
|
||||||
function delaunay_addpoint(d, p) =
|
function delaunay_addpoint(d, p) =
|
||||||
let(
|
let(
|
||||||
|
@@ -2,10 +2,6 @@ use <experimental/tri_delaunay.scad>;
|
|||||||
use <util/map/hashmap_get.scad>;
|
use <util/map/hashmap_get.scad>;
|
||||||
use <util/find_index.scad>;
|
use <util/find_index.scad>;
|
||||||
|
|
||||||
function delaunay_coords(d) = d[0];
|
|
||||||
function delaunay_triangles(d) = d[1];
|
|
||||||
function delaunay_circles(d) = d[2];
|
|
||||||
|
|
||||||
function indicesOfCell(iTris, triIndices) =
|
function indicesOfCell(iTris, triIndices) =
|
||||||
let(
|
let(
|
||||||
vi = iTris[0][0],
|
vi = iTris[0][0],
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
use <experimental/_impl/_tri_delaunay_voronoi_impl.scad>;
|
use <_impl/_tri_delaunay_comm_impl.scad>;
|
||||||
|
use <_impl/_tri_delaunay_voronoi_impl.scad>;
|
||||||
use <util/map/hashmap.scad>;
|
use <util/map/hashmap.scad>;
|
||||||
use <util/map/hashmap_keys.scad>;
|
use <util/map/hashmap_keys.scad>;
|
||||||
use <util/map/hashmap_get.scad>;
|
use <util/map/hashmap_get.scad>;
|
||||||
|
Reference in New Issue
Block a user