1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-20 22:31:38 +02:00

Removed the height parameter from linear_extrude

This commit is contained in:
Chris Palmer
2020-03-29 20:18:57 +01:00
parent 390957fdd0
commit e8abcde52f
81 changed files with 245 additions and 245 deletions

View File

@@ -26,7 +26,7 @@ include <../utils/core/core.scad>
module label(str, scale = 0.25, valign = "baseline", halign = "left") //! Draw text that always faces the camera
color("black")
%rotate($vpr != [0, 0, 0] ? $vpr : [70, 0, 315])
linear_extrude(height = eps)
linear_extrude(eps)
scale(scale)
text(str, valign = valign, halign = halign);

View File

@@ -43,7 +43,7 @@ module ellipse(xr, yr) scale([1, yr / xr]) circle4n(xr);
module extrude_if(h, center = true) //! Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D
if(h)
linear_extrude(height = h, center = center, convexity = 2) // 3D
linear_extrude(h, center = center, convexity = 2) // 3D
children();
else
children(); // 2D

View File

@@ -28,6 +28,6 @@ module rounded_square(size, r, center = true) //! Like ```square()``` but with w
module rounded_rectangle(size, r, center = true, xy_center = true) //! Like ```cube()``` but corners rounded in XY plane and separate centre options for xy and z.
{
linear_extrude(height = size[2], center = center)
linear_extrude(size[2], center = center)
rounded_square([size[0], size[1]], r, xy_center);
}

View File

@@ -47,7 +47,7 @@ module hanging_hole(z, ir, h = 100, h2 = 100) { //! Hole radius ```ir``` hanging
difference() {
translate_z(-below)
linear_extrude(height = below + 2 * layer_height)
linear_extrude(below + 2 * layer_height)
children();
rotate(infill_angle)

View File

@@ -29,5 +29,5 @@ module ring(or, ir) //! Create a ring with specified external and internal radii
}
module tube(or, ir, h, center = true) //! Create a tube with specified external and internal radii and height ```h```
linear_extrude(height = h, center = center, convexity = 5)
linear_extrude(h, center = center, convexity = 5)
ring(or, ir);