1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

add deprecated message

This commit is contained in:
Justin Lin
2020-04-08 09:53:09 +08:00
parent e6e38bba2c
commit 64c8c73e48
3 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ use <__comm__/__frags.scad>;
function circle_path(radius, n) =
let(
_ = echo("<b><i>circle_path</i> is deprecated: use <i>shape_circle</i> instead.</b>"),
_frags = __frags(radius),
step_a = 360 / _frags,
end_a = 360 - step_a * ((is_undef(n) || n > _frags) ? 1 : _frags - n + 1)

View File

@@ -11,6 +11,7 @@
use <util/reverse.scad>;
module polysections(sections, triangles = "SOLID") {
echo("<b><i>polysections</i> is deprecated: use <i>sweep</i> instead.</b>");
function side_indexes(sects, begin_idx = 0) =
let(

View File

@@ -10,4 +10,6 @@
use <_impl/_rotate_p_impl.scad>;
function rotate_p(point, a, v) = _rotate_p_impl(point, a, v);
function rotate_p(point, a, v) =
let(_ = echo("<b><i>rotate_p</i> is deprecated: use <i>ptf_rotate</i> instead.</b>"))
_rotate_p_impl(point, a, v);