mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
refactor deps
This commit is contained in:
parent
38a91fe2bd
commit
d4d3d5f4d5
@ -8,19 +8,14 @@
|
|||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
|
|
||||||
include <__comm__/__frags.scad>;
|
use <__comm__/__frags.scad>;
|
||||||
|
use <helix.scad>;
|
||||||
|
use <cross_sections.scad>;
|
||||||
|
use <polysections.scad>;
|
||||||
|
|
||||||
module helix_extrude(shape_pts, radius, levels, level_dist,
|
module helix_extrude(shape_pts, radius, levels, level_dist,
|
||||||
vt_dir = "SPI_DOWN", rt_dir = "CT_CLK",
|
vt_dir = "SPI_DOWN", rt_dir = "CT_CLK",
|
||||||
twist = 0, scale = 1.0, triangles = "SOLID") {
|
twist = 0, scale = 1.0, triangles = "SOLID") {
|
||||||
|
|
||||||
function reverse(vt) =
|
|
||||||
let(leng = len(vt))
|
|
||||||
[
|
|
||||||
for(i = 0; i < leng; i = i + 1)
|
|
||||||
vt[leng - 1 - i]
|
|
||||||
];
|
|
||||||
|
|
||||||
is_flt = is_num(radius);
|
is_flt = is_num(radius);
|
||||||
r1 = is_flt ? radius : radius[0];
|
r1 = is_flt ? radius : radius[0];
|
||||||
r2 = is_flt ? radius : radius[1];
|
r2 = is_flt ? radius : radius[1];
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user