mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-12 02:13:57 +02:00
Added degree symbols
This commit is contained in:
@@ -4118,10 +4118,10 @@ Global constants, functions and modules. This file is used directly or indirectl
|
|||||||
| ```circle4n(r, d = undef)``` | Circle with multiple of 4 vertices |
|
| ```circle4n(r, d = undef)``` | Circle with multiple of 4 vertices |
|
||||||
| ```ellipse(xr, yr)``` | Draw an ellipse |
|
| ```ellipse(xr, yr)``` | Draw an ellipse |
|
||||||
| ```extrude_if(h, center = true)``` | Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D |
|
| ```extrude_if(h, center = true)``` | Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D |
|
||||||
| ```hflip()``` | Invert children by doing a 180 glip around the Y axis |
|
| ```hflip()``` | Invert children by doing a 180° flip around the Y axis |
|
||||||
| ```semi_circle(r, d = undef)``` | A semi circle in the positive Y domain |
|
| ```semi_circle(r, d = undef)``` | A semi circle in the positive Y domain |
|
||||||
| ```translate_z(z)``` | Shortcut for Z only translations |
|
| ```translate_z(z)``` | Shortcut for Z only translations |
|
||||||
| ```vflip()``` | Invert children by doing a 180 flip around the X axis |
|
| ```vflip()``` | Invert children by doing a 180° flip around the X axis |
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@@ -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
|
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 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 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 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 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
|
module extrude_if(h, center = true) //! Extrudes 2D object to 3D when ```h``` is nonzero, otherwise leaves it 2D
|
||||||
|
Reference in New Issue
Block a user