diff options
-rwxr-xr-x | generate_sources.sh | 6 | ||||
-rw-r--r-- | src/_settings.scad | 2 | ||||
-rw-r--r-- | src/example.svg | 122 | ||||
-rw-r--r-- | src/example_1.scad | 6 | ||||
-rw-r--r-- | src/example_2.scad | 14 |
5 files changed, 2 insertions, 148 deletions
diff --git a/generate_sources.sh b/generate_sources.sh index 4a05760..8ac6afa 100755 --- a/generate_sources.sh +++ b/generate_sources.sh @@ -19,7 +19,5 @@ function generate_file() { } # Call generate_file for each file to be generated. -for i in {1..5}; do - size=$[ $i * 10 ] - generate_file "src/generated/cube_$size.scad" echo "cube($size);" -done +# E.g.: +# generate_file src/test.scad echo "cube();" diff --git a/src/_settings.scad b/src/_settings.scad deleted file mode 100644 index 1f84b17..0000000 --- a/src/_settings.scad +++ /dev/null @@ -1,2 +0,0 @@ -plate_height = 2; -struts_height = 1; diff --git a/src/example.svg b/src/example.svg deleted file mode 100644 index 8d90ed7..0000000 --- a/src/example.svg +++ /dev/null @@ -1,122 +0,0 @@ -<?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 diff --git a/src/example_1.scad b/src/example_1.scad deleted file mode 100644 index b6e8931..0000000 --- a/src/example_1.scad +++ /dev/null @@ -1,6 +0,0 @@ -include <_settings.scad> - -render(convexity = 10) { - linear_extrude(plate_height) - import("example.dxf", layer = "text"); -} diff --git a/src/example_2.scad b/src/example_2.scad deleted file mode 100644 index 2dd57e6..0000000 --- a/src/example_2.scad +++ /dev/null @@ -1,14 +0,0 @@ -include <_settings.scad> - -render(convexity = 10) { - union() { - linear_extrude(plate_height) - difference() { - import("example.dxf", layer = "base"); - import("example.dxf", layer = "text"); - } - - linear_extrude(struts_height) - import("example.dxf", layer = "struts"); - } -} |