mirror of https://github.com/vitalif/openscad
Clifford Wolf:
Added example009 git-svn-id: http://svn.clifford.at/openscad/trunk@75 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
4c84928e4b
commit
c4d6ebd091
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
bodywidth = dxf_dim(file = "example009.dxf", name = "bodywidth");
|
||||||
|
fanwidth = dxf_dim(file = "example009.dxf", name = "fanwidth");
|
||||||
|
platewidth = dxf_dim(file = "example009.dxf", name = "platewidth");
|
||||||
|
fan_side_center = dxf_cross(file = "example009.dxf",
|
||||||
|
layer = "fan_side_center");
|
||||||
|
fanrot = dxf_dim(file = "example009.dxf", name = "fanrot");
|
||||||
|
|
||||||
|
% dxf_linear_extrude(file = "example009.dxf", layer = "body",
|
||||||
|
height = bodywidth, center = true, convexity = 10);
|
||||||
|
|
||||||
|
% for (z = [+(bodywidth/2 + platewidth/2),
|
||||||
|
-(bodywidth/2 + platewidth/2)])
|
||||||
|
{
|
||||||
|
translate([0, 0, z])
|
||||||
|
dxf_linear_extrude(file = "example009.dxf", layer = "plate",
|
||||||
|
height = platewidth, center = true, convexity = 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
intersection()
|
||||||
|
{
|
||||||
|
dxf_linear_extrude(file = "example009.dxf", layer = "fan_top",
|
||||||
|
height = fanwidth, center = true, convexity = 10,
|
||||||
|
twist = -fanrot);
|
||||||
|
dxf_rotate_extrude(file = "example009.dxf", layer = "fan_side",
|
||||||
|
origin = fan_side_center, convexity = 10);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue