use wedge, add wanhao butterfly (it was a test model in .x3g format)

master
Vitaliy Filippov 2014-06-18 17:20:14 +00:00
parent d33553ad04
commit b797f8cbb8
3 changed files with 135 additions and 2 deletions

View File

@ -21,10 +21,20 @@ difference() {
translate([0, 0, -0.6]) cylinder(r=2.4, h=1+0.6*2);
}
}
translate([-4, -0.5, 8]) cube(size=[8, 1, 4]);
translate([-4, 16-0.5, 8]) cube(size=[8, 1, 4]);
hull() {
translate([4, 0, 8.5]) scale([8, 1, 1]) rotate([-90, 0, 90]) wedge();
translate([-4, -0.5, 8.5]) cube(size=[8, 1, 4]);
}
hull() {
translate([4, 16, 8.5]) scale([8, 1, 1]) rotate([-90, 0, 90]) wedge();
translate([-4, 16-0.5, 8.5]) cube(size=[8, 1, 4]);
}
translate([2.4, -4, 7]) cube(size=[2, 8, 4]);
translate([-2.4-2, -4, 7]) cube(size=[2, 8, 4]);
translate([2.4, 16-4, 7]) cube(size=[2, 8, 4]);
translate([-2.4-2, 16-4, 7]) cube(size=[2, 8, 4]);
}
module wedge() {
linear_extrude(height=1) polygon(points=[[-0.5, 0], [0.5, 0], [0, 1]]);
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 29 KiB

60
wanhao-butterfly.svg Normal file
View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="208.75073"
height="141.92162"
viewBox="-100 -100 83.500293 56.768646"
version="1.1"
id="svg2"
inkscape:version="0.48+devel r"
sodipodi:docname="wanhao-butterfly.svg">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1008"
id="namedview6"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="3.776"
inkscape:cx="88.445097"
inkscape:cy="70.971475"
inkscape:window-x="-2"
inkscape:window-y="-3"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<path
style="fill:#ff7f2a;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.30000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="m -84.899856,-47.531411 0,0 0.08,0.09 0.75,0.72 0.84,0.66 0.87,0.59 0.92,0.52 0.96,0.44 0.99,0.35 1.02,0.28 1.03,0.19 3.03,0.29 3.06,-0.01 2.95,-0.27 8.44,-14.09 0.19,-0.16 0.26,0.06 0.11,0.23 0.52,8.2 1.26,0.01 0.52,-8.2 0.11,-0.23 0.26,-0.07 0.19,0.16 8.45,14.09 2.18,0.24 1.54,0.06 3.05,-0.06 2.26,-0.25 1.03,-0.18 1.02,-0.28 1,-0.36 0.94,-0.44 0.93,-0.51 0.88,-0.59 0.82,-0.66 0.77,-0.72 0.7,-0.79 0.63,-0.84 0.58,-0.89 0.48,-0.93 0.28,-0.65 0.24,-0.67 0.17,-0.69 0.14,-0.69 0.07,-0.71 0.02,-0.7 -0.01,-0.71 -0.09,-0.71 -0.13,-0.69 -0.17,-0.69 -0.23,-0.67 -0.29,-0.65 -0.66,-1.28 -0.76,-1.21 -0.86,-1.15 -0.95,-1.09 -1.02,-1 -1.1,-0.91 -1.16,-0.84 -1.25,-0.73 -1.27,-0.64 -1.33,-0.53 -1.37,-0.44 -1.07,-0.24 -0.18,-0.14 0.03,-0.22 0.2,-0.08 13.1,-0.01 1.5,-3.98 1.76,-4.03 1.95,-3.96 2.14,-3.86 3.96,-6.26 0.34,-0.71 0.27,-0.73 0.2,-0.78 0.12,-0.78 0.04,-0.78 -0.03,-0.79 -0.13,-0.77 -0.19,-0.77 -0.27,-0.73 -0.34,-0.71 -0.36,-0.57 -2.45,0.3 -1.68,0.37 -1.66,0.47 -2.77,1.09 -2.27,1.02 -4.44,2.28 -2.14,1.26 -4.47,2.91 -2.33,1.83 -1.6,1.43 -1.52,1.48 -1.47,1.55 -1.4,1.62 -1.36,1.69 -1.25,1.74 -1.2,1.78 -1.11,1.85 -1.04,1.89 -0.96,1.92 -0.74,1.69 -0.16,0.2 -0.29,-0.02 -0.14,-0.21 -0.67,-2.01 0.44,-2.09 0.55,-1.99 0.66,-1.99 0.8,-1.93 0.91,-1.88 0.93,-1.64 -0.69,-0.39 -1.43,2.42 -0.86,1.78 -0.7,1.86 -0.54,1.91 -0.58,3.09 -1.31,0 -0.35,-2.13 -0.47,-1.92 -0.63,-1.88 -0.77,-1.83 -0.91,-1.76 -0.98,-1.54 -0.68,0.37 1.4,2.57 0.85,1.9 0.73,1.96 0.6,1.99 0.71,3.1 -0.67,2.03 -0.14,0.2 -0.29,0.03 -0.16,-0.21 -0.72,-1.64 -0.95,-1.93 -1.05,-1.88 -1.1,-1.85 -1.19,-1.79 -1.27,-1.74 -1.35,-1.68 -1.39,-1.63 -1.49,-1.56 -1.58,-1.54 -1.6,-1.43 -2.3,-1.82 -3.41,-2.23 -4.31,-2.53 -4.48,-2.2 -3.09,-1.29 -1.63,-0.54 -1.68,-0.41 -1.69,-0.32 -1.58,-0.16 -0.36,0.57 -0.34,0.71 -0.27,0.74 -0.19,0.77 -0.12,0.76 -0.04,0.8 0.03,0.78 0.13,0.78 0.19,0.76 0.27,0.73 0.34,0.72 2.81,4.34 2.22,3.8 2.05,3.9 1.87,4.01 2.37,6.04 13.1,0.01 0.2,0.09 0.02,0.22 -0.16,0.14 -1.08,0.24 -1.37,0.43 -1.33,0.53 -1.28,0.64 -1.23,0.74 -1.17,0.83 -1.1,0.92 -1.03,0.99 -0.94,1.09 -0.85,1.15 -0.77,1.21 -0.66,1.27 -0.28,0.66 -0.24,0.67 -0.17,0.67 -0.14,0.71 -0.07,0.7 -0.03,0.72 0.03,0.7 0.08,0.71 0.12,0.69 0.19,0.69 0.23,0.67 0.27,0.65 0.5,0.94 0.57,0.88 0.62,0.85 0.64,0.69 z m 2.9,-2.39 0,0 -0.1,-0.08 -0.88,-1.29 -0.52,-1.5 -0.11,-1.58 0.3,-1.53 0.69,-1.43 1.03,-1.2 1.31,-0.88 1.48,-0.51 1.59,-0.12 1.53,0.3 1.43,0.68 1.19,1.05 0.88,1.29 0.53,1.49 0.11,1.58 -0.31,1.55 -0.68,1.42 -1.03,1.19 -1.31,0.89 -1.49,0.51 -1.58,0.12 -1.54,-0.3 -1.42,-0.69 -1.1,-0.96 z m 6.62,-11.63 0.01,-0.01 -0.11,-0.04 -0.66,-0.5 -0.5,-0.66 -0.33,-0.78 -0.09,-0.81 0.09,-0.83 0.33,-0.77 0.5,-0.66 0.66,-0.5 0.77,-0.32 0.82,-0.11 0.82,0.1 0.78,0.33 0.65,0.5 0.51,0.66 0.31,0.77 0.12,0.83 -0.12,0.82 -0.31,0.77 -0.5,0.65 -0.67,0.51 -0.77,0.32 -0.81,0.11 -0.84,-0.11 -0.65,-0.28 z m 5.94,0.52 0.1,-0.78 0.3,-0.74 0.49,-0.64 0.63,-0.47 0.74,-0.31 0.78,-0.11 0.8,0.12 0.73,0.29 0.64,0.49 0.47,0.62 0.31,0.75 0.11,0.79 -0.11,0.78 -0.3,0.73 -0.49,0.64 -0.63,0.49 -0.73,0.3 -0.8,0.1 -0.78,-0.1 -0.74,-0.31 -0.63,-0.48 -0.48,-0.63 -0.31,-0.74 -0.09,-0.68 z m -0.78,-10.36 0.01,0.01 -0.11,0.03 -14.61,-1.76 0.04,-0.83 -0.02,-0.64 -0.08,-0.63 -0.14,-0.64 -0.17,-0.61 -0.24,-0.59 -0.3,-0.57 -0.32,-0.55 -0.38,-0.52 -0.65,-0.71 -0.08,-0.2 0.14,-0.19 0.22,0.01 16.73,7.97 0.14,0.17 -0.06,0.23 -0.12,0.02 z m 1.69,-3.72 -21.76,-10.39 0.09,-0.91 0,-0.78 -0.08,-0.77 -0.16,-0.76 -0.22,-0.75 -0.3,-0.72 -0.38,-0.68 -0.43,-0.66 -0.51,-0.58 -0.35,-0.36 -0.02,-0.11 0.07,-0.38 0.18,0.08 25.24,17.95 0.11,0.17 -0.11,0.19 -0.22,0.01 -1.04,-0.51 z m 19.08,0.37 0.11,-0.19 25.24,-17.95 0.17,-0.07 0.09,0.37 -0.03,0.12 -0.36,0.35 -0.49,0.6 -0.44,0.64 -0.38,0.68 -0.3,0.72 -0.22,0.75 -0.17,0.77 -0.06,0.77 -0.01,0.78 0.09,0.91 -22.92,10.93 -0.2,0.01 z m 3.06,3.02 0,0.01 0.08,-0.1 16.71,-7.97 0.23,-0.01 0.15,0.2 -0.09,0.2 -0.23,0.22 -0.42,0.49 -0.38,0.51 -0.33,0.55 -0.29,0.58 -0.23,0.59 -0.18,0.62 -0.15,0.62 -0.07,0.63 -0.02,0.65 0.04,0.82 -14.61,1.77 -0.22,-0.07 -0.06,-0.22 0.07,-0.09 z m 2.18,4.61 0.78,-0.31 0.82,-0.12 0.82,0.12 0.77,0.31 0.65,0.51 0.52,0.66 0.31,0.77 0.11,0.82 -0.1,0.82 -0.33,0.77 -0.5,0.66 -0.66,0.51 -0.77,0.31 -0.82,0.11 -0.82,-0.1 -0.78,-0.32 -0.65,-0.52 -0.51,-0.65 -0.32,-0.76 -0.1,-0.83 0.11,-0.82 0.31,-0.78 0.5,-0.65 0.58,-0.43 z m -3.74,3.94 0.49,0.62 0.3,0.74 0.1,0.79 -0.1,0.79 -0.3,0.74 -0.49,0.63 -0.63,0.47 -0.74,0.32 -0.79,0.1 -0.78,-0.1 -0.75,-0.32 -0.62,-0.47 -0.48,-0.63 -0.31,-0.74 -0.11,-0.79 0.11,-0.79 0.3,-0.74 0.49,-0.62 0.63,-0.49 0.73,-0.3 0.79,-0.11 0.8,0.1 0.72,0.32 0.56,0.41 z m 4.51,5.16 1.19,-1.04 1.42,-0.68 1.55,-0.3 1.58,0.11 1.48,0.52 1.31,0.89 1.03,1.19 0.69,1.41 0.3,1.56 -0.11,1.57 -0.52,1.48 -0.88,1.32 -1.2,1.02 -1.42,0.69 -1.55,0.3 -1.57,-0.11 -1.49,-0.53 -1.3,-0.87 -1.04,-1.2 -0.69,-1.41 -0.3,-1.56 0.12,-1.57 0.51,-1.49 0.83,-1.21 z"
id="path4"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 6.5 KiB