1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-21 14:51:22 +02:00

Added degree symbols

This commit is contained in:
Chris Palmer
2019-06-15 08:43:42 +01:00
parent 7c9c6805f7
commit 7eaace0194
2 changed files with 4 additions and 4 deletions

View File

@@ -31,8 +31,8 @@ function r2sides(r) = $fn ? $fn : ceil(max(min(360/ $fa, r * 2 * PI / $fs), 5));
function r2sides4n(r) = floor((r2sides(r) + 3) / 4) * 4; //! Round up the number of sides to a multiple of 4 to ensure points land on all axes
module translate_z(z) translate([0, 0, z]) children(); //! Shortcut for Z only translations
module vflip() rotate([180, 0, 0]) children(); //! Invert children by doing a 180 flip around the X axis
module hflip() rotate([0, 180, 0]) children(); //! Invert children by doing a 180 flip around the Y axis
module vflip() rotate([180, 0, 0]) children(); //! Invert children by doing a 180° flip around the X axis
module hflip() rotate([0, 180, 0]) children(); //! Invert children by doing a 180° flip around the Y axis
module ellipse(xr, yr) scale([1, yr / xr]) circle4n(xr); //! Draw an ellipse
module extrude_if(h, center = true) //! Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D