mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
move into triangle dir
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use <experimental/tri_delaunay.scad>;
|
use <triangle/tri_delaunay.scad>;
|
||||||
use <hull_polyline2d.scad>;
|
use <hull_polyline2d.scad>;
|
||||||
use <shape_taiwan.scad>;
|
use <shape_taiwan.scad>;
|
||||||
use <in_shape.scad>;
|
use <in_shape.scad>;
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
use <_tri_delaunay_comm_impl.scad>;
|
use <_tri_delaunay_comm_impl.scad>;
|
||||||
use <experimental/tri_circumcircle.scad>;
|
use <../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>;
|
||||||
use <util/map/hashmap_del.scad>;
|
use <../../util/map/hashmap_del.scad>;
|
||||||
use <util/map/hashmap_keys.scad>;
|
use <../../util/map/hashmap_keys.scad>;
|
||||||
use <util/map/hashmap_put.scad>;
|
use <../../util/map/hashmap_put.scad>;
|
||||||
use <util/some.scad>;
|
use <../../util/some.scad>;
|
||||||
use <util/has.scad>;
|
use <../../util/has.scad>;
|
||||||
use <util/find_index.scad>;
|
use <../../util/find_index.scad>;
|
||||||
|
|
||||||
function cc_center(cc) = cc[0];
|
function cc_center(cc) = cc[0];
|
||||||
function cc_rr(cc) = cc[2];
|
function cc_rr(cc) = cc[2];
|
@@ -1,6 +1,6 @@
|
|||||||
use <experimental/tri_delaunay.scad>;
|
use <../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 indicesOfCell(iTris, triIndices) =
|
function indicesOfCell(iTris, triIndices) =
|
||||||
let(
|
let(
|
@@ -1,5 +1,5 @@
|
|||||||
use <_impl/_tri_delaunay_comm_impl.scad>;
|
use <_impl/_tri_delaunay_comm_impl.scad>;
|
||||||
use <util/map/hashmap_keys.scad>;
|
use <../util/map/hashmap_keys.scad>;
|
||||||
|
|
||||||
function tri_delaunay_indices(d) = [
|
function tri_delaunay_indices(d) = [
|
||||||
for(tri = hashmap_keys(delaunay_triangles(d)))
|
for(tri = hashmap_keys(delaunay_triangles(d)))
|
@@ -1,5 +1,5 @@
|
|||||||
use <_impl/_tri_delaunay_comm_impl.scad>;
|
use <_impl/_tri_delaunay_comm_impl.scad>;
|
||||||
use <util/map/hashmap_keys.scad>;
|
use <../util/map/hashmap_keys.scad>;
|
||||||
|
|
||||||
function tri_delaunay_shapes(d) =
|
function tri_delaunay_shapes(d) =
|
||||||
let(coords = delaunay_coords(d))
|
let(coords = delaunay_coords(d))
|
@@ -1,9 +1,9 @@
|
|||||||
use <_impl/_tri_delaunay_comm_impl.scad>;
|
use <_impl/_tri_delaunay_comm_impl.scad>;
|
||||||
use <_impl/_tri_delaunay_voronoi_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>;
|
||||||
use <util/reverse.scad>;
|
use <../util/reverse.scad>;
|
||||||
|
|
||||||
function tri_delaunay_voronoi(d) =
|
function tri_delaunay_voronoi(d) =
|
||||||
let(
|
let(
|
@@ -2,7 +2,7 @@
|
|||||||
copy from triangulate.scad, would move into triangle category
|
copy from triangulate.scad, would move into triangle category
|
||||||
**/
|
**/
|
||||||
|
|
||||||
use <experimental/_impl/_tri_ear_clipping_impl.scad>;
|
use <_impl/_tri_ear_clipping_impl.scad>;
|
||||||
|
|
||||||
// ret: "TRI_SHAPES", "TRI_INDICES"
|
// ret: "TRI_SHAPES", "TRI_INDICES"
|
||||||
function tri_ear_clipping(shape_pts, ret = "TRI_INDICES", epsilon = 0.0001) =
|
function tri_ear_clipping(shape_pts, ret = "TRI_INDICES", epsilon = 0.0001) =
|
Reference in New Issue
Block a user