1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 05:52:16 +02:00

add deprecated message

This commit is contained in:
Justin Lin
2020-08-05 17:20:05 +08:00
parent a8780ffccf
commit 74a871960d
2 changed files with 4 additions and 0 deletions

View File

@@ -9,6 +9,8 @@
**/ **/
module voronoi2d(points, spacing = 1, r = 0, delta = 0, chamfer = false, region_type = "square") { module voronoi2d(points, spacing = 1, r = 0, delta = 0, chamfer = false, region_type = "square") {
echo("<b><i>voronoi2d</i> is deprecated: use <i>voronoi/vrn2_from</i> instead.</b>");
xs = [for(p = points) p[0]]; xs = [for(p = points) p[0]];
ys = [for(p = points) abs(p[1])]; ys = [for(p = points) abs(p[1])];

View File

@@ -13,6 +13,8 @@ use <__comm__/__angy_angz.scad>;
// slow but workable // slow but workable
module voronoi3d(points, spacing = 1) { module voronoi3d(points, spacing = 1) {
echo("<b><i>voronoi3d</i> is deprecated: use <i>voronoi/vrn3_from</i> instead.</b>");
xs = [for(p = points) p[0]]; xs = [for(p = points) p[0]];
ys = [for(p = points) abs(p[1])]; ys = [for(p = points) abs(p[1])];
zs = [for(p = points) abs(p[2])]; zs = [for(p = points) abs(p[2])];