]> www.fi.muni.cz Git - things.git/commitdiff
Klip na kos Franke
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 10 Mar 2020 15:53:50 +0000 (16:53 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 10 Mar 2020 15:53:50 +0000 (16:53 +0100)
kos-clip.scad [new file with mode: 0644]
kos-clip.svg [new file with mode: 0644]

diff --git a/kos-clip.scad b/kos-clip.scad
new file mode 100644 (file)
index 0000000..f2aae09
--- /dev/null
@@ -0,0 +1,27 @@
+
+// Module names are of the form poly_<inkscape-path-id>().  As a result,
+// you can associate a polygon in this OpenSCAD program with the corresponding
+// SVG element in the Inkscape document by looking for the XML element with
+// the attribute id="inkscape-path-id".
+
+// fudge value is used to ensure that subtracted solids are a tad taller
+// in the z dimension than the polygon being subtracted from.  This helps
+// keep the resulting .stl file manifold.
+fudge = 0.1;
+
+module poly_path857(h)
+{
+  // scale([25.4/90, -25.4/90, 1]) union()
+  scale([1, 1, 1]) union()
+  {
+    linear_extrude(height=h)
+      polygon([[-2.750000,-16.724610],[-2.750000,-9.724610],[-7.750000,-9.724610],[-7.750000,-2.724610],[-2.750000,-2.724610],[-2.750000,16.275390],[-0.750000,16.275390],[-0.750000,-4.724610],[-5.750000,-4.724610],[-5.750000,-7.724610],[-0.750000,-7.724610],[-0.750000,-14.724610],[2.250000,-14.724610],[2.970700,-13.972657],[4.298830,-11.310548],[5.327809,-7.843798],[5.750000,-4.712891],[5.256551,-1.989560],[4.078120,0.861328],[2.812775,3.920845],[2.391213,5.561659],[2.250000,7.294921],[2.775304,10.306291],[3.843750,13.332031],[5.357420,16.724610],[7.142580,15.826171],[5.701170,12.589843],[4.712781,9.724587],[4.250000,7.255859],[4.728432,4.536565],[5.900390,1.689452],[7.170041,-1.366124],[7.598419,-3.004760],[7.750000,-4.736329],[7.288985,-8.289804],[6.166020,-12.025391],[4.609380,-15.121094],[3.620385,-16.237275],[2.250000,-16.724610],[-2.750000,-16.724610]]);
+  }
+}
+
+intersection() {
+translate([-100, -100, 0]) cube([200, 200, 15]);
+rotate([0, 30, 0])
+translate([0, 0, -10])
+poly_path857(50);
+}
diff --git a/kos-clip.svg b/kos-clip.svg
new file mode 100644 (file)
index 0000000..79ca380
--- /dev/null
@@ -0,0 +1,66 @@
+<?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"
+   sodipodi:docname="kos-clip.svg"
+   inkscape:version="1.0beta2 (unknown)"
+   id="svg8"
+   version="1.1"
+   viewBox="0 0 210 297"
+   height="297mm"
+   width="210mm">
+  <defs
+     id="defs2" />
+  <sodipodi:namedview
+     inkscape:window-maximized="1"
+     inkscape:window-y="0"
+     inkscape:window-x="49"
+     inkscape:window-height="1570"
+     inkscape:window-width="2491"
+     showgrid="true"
+     inkscape:document-rotation="0"
+     inkscape:current-layer="layer1"
+     inkscape:document-units="mm"
+     inkscape:cy="316.93677"
+     inkscape:cx="400"
+     inkscape:zoom="3.959798"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     borderopacity="1.0"
+     bordercolor="#666666"
+     pagecolor="#ffffff"
+     id="base">
+    <inkscape:grid
+       spacingy="1"
+       spacingx="1"
+       units="mm"
+       id="grid833"
+       type="xygrid" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata5">
+    <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>
+  <g
+     id="layer1"
+     inkscape:groupmode="layer"
+     inkscape:label="Layer 1">
+    <path
+       id="path857"
+       d="M 99 67 L 99 74 L 94 74 L 94 81 L 99 81 L 99 100 L 101 100 L 101 79 L 96 79 L 96 76 L 101 76 L 101 69 L 104 69 C 103.90396 69 104.28426 69.129089 104.7207 69.751953 C 105.15715 70.374817 105.63388 71.330781 106.04883 72.414062 C 106.87873 74.580626 107.47915 77.292946 107.5 79.011719 C 107.52169 80.80102 106.71974 82.626562 105.82812 84.585938 C 104.93651 86.545313 103.95485 88.640745 104 91.019531 C 104.03566 92.898502 104.8339 95.15851 105.59375 97.056641 C 106.3536 98.954771 107.10742 100.44922 107.10742 100.44922 L 108.89258 99.550781 C 108.89258 99.550781 108.17632 98.125896 107.45117 96.314453 C 106.72602 94.503011 106.02434 92.263206 106 90.980469 C 105.96608 89.193339 106.75961 87.371618 107.65039 85.414062 C 108.54117 83.456507 109.52881 81.36534 109.5 78.988281 C 109.47418 76.859538 108.82444 74.070777 107.91602 71.699219 C 107.4618 70.51344 106.94689 69.441978 106.35938 68.603516 C 105.77186 67.765054 105.09604 67 104 67 L 99 67 z "
+       style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;anonymous:0;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1;opacity:1" />
+  </g>
+</svg>