Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--------------------------------
- // {Project Name}
- // {Creator Name}
- // CC 2018
- // OpenSCAD
- //--------------------------------
- // Thingiverse Customizer Docs: http://customizer.makerbot.com/docs
- // OpenSCAD uses millimeters (mm) for units.
- // Distance functions are both for conversion and to state plainly that a number is a
- // measurement, not just a value.
- // Fractions are interpreted as formulas: '1 3/4' = '1+3/4' = 1.75
- function mm(x = 1) = x * 1.00000;
- function cm(x = 1) = x * 10.00000;
- function m(x = 1) = x * 1000.00000;
- function inches(x = 1) = x * 25.40000;
- function feet(x = 1) = x * 25.40000 * 12;
- function yards(x = 1) = x * 25.40000 * 12 * 3;
- function twice(x = 1) = x * 2.00000;
- function half(x = 1) = x * 0.50000;
- // OpenSCAD uses degrees (deg) for units.
- // Angle functions are both for conversion and to state plainly that a number is a
- // measurement, not just a value.
- _pi = 3.14159265359;
- _ease = 1.0155; // Multiply holes by this to counteract shrinkage in 3d printed parts.
- function deg(x = 1) = x;
- function rad(x = 1) = x * (180 / _pi);
- quality = 72; // [12:6:360]
- smoothness=$preview ? 12 : quality; // (Circles are divided in $fn line segments.)
- echo($preview,smoothness);
- $fn = smoothness;
- //--------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement