summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2014-11-26 16:24:08 +0100
committerMichael Schwarz <michi.schwarz@gmail.com>2014-11-27 18:18:27 +0100
commit16d3e4a963d7fd299042ba27778744e0bd7da037 (patch)
tree9148c097353b3241c6895c6c74fe3f583ca85c6e /src
downloadpogojig-16d3e4a963d7fd299042ba27778744e0bd7da037.tar.gz
pogojig-16d3e4a963d7fd299042ba27778744e0bd7da037.tar.bz2
pogojig-16d3e4a963d7fd299042ba27778744e0bd7da037.zip
First version of the template project.
Diffstat (limited to 'src')
-rw-r--r--src/example.scad17
-rw-r--r--src/example.svg122
2 files changed, 139 insertions, 0 deletions
diff --git a/src/example.scad b/src/example.scad
new file mode 100644
index 0000000..e4e5022
--- /dev/null
+++ b/src/example.scad
@@ -0,0 +1,17 @@
+module extrude_layer(layer, height) {
+ linear_extrude(height = height)
+ import("example.dxf", layer = layer);
+}
+
+render(convexity = 10) {
+ union() {
+ difference() {
+ extrude_layer("base", 2);
+
+ translate([0, 0, -1e6])
+ extrude_layer("text", 2e6);
+ }
+
+ extrude_layer("struts", 1);
+ }
+}
diff --git a/src/example.svg b/src/example.svg
new file mode 100644
index 0000000..8d90ed7
--- /dev/null
+++ b/src/example.svg
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+
+<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"
+ version="1.1"
+ id="Ebene_2"
+ x="0px"
+ y="0px"
+ width="626.03119"
+ height="670.09412"
+ viewBox="0 0 626.03119 670.09412"
+ enable-background="new 0 0 4856 968"
+ xml:space="preserve"
+ inkscape:version="0.48.5 r10040"
+ sodipodi:docname="example.svg"><metadata
+ id="metadata41"><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 /></cc:Work></rdf:RDF></metadata><defs
+ id="defs39"><inkscape:path-effect
+ is_visible="true"
+ id="path-effect3785"
+ effect="spiro" /><inkscape:path-effect
+ is_visible="true"
+ id="path-effect3777"
+ effect="spiro" /><inkscape:path-effect
+ effect="spiro"
+ id="path-effect3773"
+ is_visible="true" /><inkscape:path-effect
+ effect="spiro"
+ id="path-effect3769"
+ is_visible="true" /><inkscape:path-effect
+ effect="spiro"
+ id="path-effect3779"
+ is_visible="true" /></defs><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1275"
+ inkscape:window-height="1002"
+ id="namedview37"
+ showgrid="true"
+ fit-margin-top="20"
+ fit-margin-left="20"
+ fit-margin-right="20"
+ fit-margin-bottom="20"
+ inkscape:zoom="2.4630583"
+ inkscape:cx="100.04789"
+ inkscape:cy="-9.3088588"
+ inkscape:window-x="0"
+ inkscape:window-y="22"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="layer1"
+ inkscape:document-units="mm"
+ units="mm"
+ inkscape:object-paths="true"
+ inkscape:snap-nodes="true"
+ inkscape:snap-grids="true"
+ inkscape:snap-to-guides="false"
+ inkscape:snap-intersection-paths="false"><inkscape:grid
+ type="xygrid"
+ id="grid2988"
+ empspacing="10"
+ visible="true"
+ enabled="true"
+ snapvisiblegridlinesonly="true"
+ spacingx="1mm"
+ spacingy="1mm"
+ dotted="false"
+ units="mm" /></sodipodi:namedview><g
+ inkscape:groupmode="layer"
+ id="layer2"
+ inkscape:label="base"
+ style="display:inline"><rect
+ style="color:#000000;fill:#000000;fill-opacity:0.39215686;fill-rule:nonzero;stroke:none;stroke-width:14.17322826;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+ id="rect2989"
+ width="141.73228"
+ height="70.866119"
+ x="-1.2523757e-06"
+ y="599.22797" /></g><g
+ inkscape:groupmode="layer"
+ id="layer1"
+ inkscape:label="text"
+ style="display:inline"><text
+ xml:space="preserve"
+ style="font-size:60px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#0000ff;fill-opacity:0.39215686;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans"
+ x="17.716534"
+ y="655.9209"
+ id="text3779"
+ sodipodi:linespacing="125%"><tspan
+ sodipodi:role="line"
+ id="tspan3781"
+ x="17.716534"
+ y="655.9209">Abc</tspan></text>
+</g><g
+ inkscape:groupmode="layer"
+ id="layer3"
+ inkscape:label="struts"
+ style="display:inline"><path
+ style="fill:none;stroke:#ff0000;stroke-width:2.83464575;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.39215686;stroke-dasharray:none"
+ d="m 38.164379,606.53629 0,45.8413"
+ id="path3767"
+ inkscape:path-effect="#path-effect3769"
+ inkscape:original-d="m 38.164379,606.53629 0,45.8413"
+ inkscape:connector-curvature="0" /><path
+ inkscape:connector-curvature="0"
+ inkscape:original-d="m 79.060068,617.16621 0,45.8413"
+ inkscape:path-effect="#path-effect3785"
+ id="path3783"
+ d="m 79.060068,617.16621 0,45.8413"
+ style="fill:none;stroke:#ff0000;stroke-width:2.83464575;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:0.39215686;stroke-dasharray:none" /></g></svg> \ No newline at end of file