-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtween_example5.scad
39 lines (29 loc) · 1.02 KB
/
tween_example5.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Example. Hanging hopper of some sort - demonstrates use in part of larger assembly
use <tween_loft.scad>
include <tween_shapes.scad>
shape1= tween_circle;
shape1Size = 40;
shape1Rotation = 0;
shape1Extension = 100;
shape1Centroid = [0,0];
shape2= tween_cross;
shape2Size = 200;
shape2Rotation = 0;
shape2Extension = 100;
shape2Centroid= [0,0];
shape2ExtensionAdjustment= 0;
wallThickness= 20;
isHollow = 1;
extrusionHeight= 100;
extrusionSlices = 30;
sliceAdjustment= 0;
sliceHeight = extrusionHeight * 1.0 / extrusionSlices;
difference()
{
tweenLoft(shape1, shape1Size, shape1Rotation, shape1Centroid, shape1Extension,
shape2, shape2Size, shape2Rotation, shape2Centroid, shape2Extension,
shape2ExtensionAdjustment,
extrusionSlices, sliceHeight, sliceAdjustment, wallThickness/2, isHollow);
translate ([0,0,150]) rotate ([0,90,0]) cylinder (500, 10, 10, center=true);
translate ([0,0,150]) rotate ([90,90,0]) cylinder (500, 10, 10, center=true);
}