1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00

deprecated

This commit is contained in:
Justin Lin 2021-11-22 09:32:36 +08:00
parent 7a8c152607
commit 9577f68d13
5 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,8 @@
**/ **/
module hull_polyline2d(points, width = 1) { module hull_polyline2d(points, width = 1) {
echo("`hull_polyline2d` is deprecated since 3.2. Use `polyline_join` instead.");
half_width = width / 2; half_width = width / 2;
leng = len(points); leng = len(points);

View File

@ -9,6 +9,8 @@
**/ **/
module hull_polyline3d(points, diameter = 1) { module hull_polyline3d(points, diameter = 1) {
echo("`hull_polyline2d` is deprecated since 3.2. Use `polyline_join` instead.");
radius = diameter / 2; radius = diameter / 2;
leng = len(points); leng = len(points);

View File

@ -10,6 +10,7 @@
function paths2sections(paths) = function paths2sections(paths) =
let( let(
_ = echo("`paths2sections` is deprecated since 3.2. Use `rails2sections` instead."),
leng_path = len(paths[0]), leng_path = len(paths[0]),
leng_paths = len(paths) leng_paths = len(paths)
) )

View File

@ -11,4 +11,5 @@
use <_impl/_shape_starburst_impl.scad>; use <_impl/_shape_starburst_impl.scad>;
function shape_starburst(r1, r2, n) = function shape_starburst(r1, r2, n) =
let(_ = echo("`shape_starburst` is deprecated since 3.2. Use `shape_star` instead."))
_shape_starburst_impl(r1, r2, n); _shape_starburst_impl(r1, r2, n);

View File

@ -9,6 +9,8 @@
**/ **/
module starburst(r1, r2, n, height) { module starburst(r1, r2, n, height) {
echo("`starburst` is deprecated since 3.2. Use `polyhedra/star` instead.");
a = 180 / n; a = 180 / n;
p0 = [0, 0, 0]; p0 = [0, 0, 0];