aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--designs/zampa_d12.scad23
-rw-r--r--designs/zampa_d6.scad17
-rw-r--r--lib/faces/gfx.scad7
-rw-r--r--lib/faces/img/gfx/zampa.dxf982
-rw-r--r--lib/faces/img/gfx/zampa.svg74
5 files changed, 1103 insertions, 0 deletions
diff --git a/designs/zampa_d12.scad b/designs/zampa_d12.scad
new file mode 100644
index 0000000..691e2f5
--- /dev/null
+++ b/designs/zampa_d12.scad
@@ -0,0 +1,23 @@
+use <../lib/dice.scad>
+use <../lib/utils.scad>
+use <../lib/faces/digits.scad>
+use <../lib/faces/gfx.scad>
+
+size = 14;
+
+side = s2s_d12(size);
+
+d12(size) {
+ gfx(side, "zampa");
+ digits(side, 2, "free_mono");
+ digits(side, 3, "free_mono");
+ digits(side, 4, "free_mono");
+ digits(side, 5, "free_mono");
+ digits(side, 6, "free_mono");
+ digits(side, 7, "free_mono");
+ digits(side, 8, "free_mono");
+ digits(side, 9, "free_mono");
+ digits(side, 10, "free_mono");
+ digits(side, 11, "free_mono");
+ digits(side, 12, "free_mono");
+}
diff --git a/designs/zampa_d6.scad b/designs/zampa_d6.scad
new file mode 100644
index 0000000..f2e10cf
--- /dev/null
+++ b/designs/zampa_d6.scad
@@ -0,0 +1,17 @@
+use <../lib/dice.scad>
+use <../lib/utils.scad>
+use <../lib/faces/digits.scad>
+use <../lib/faces/gfx.scad>
+
+size = 14;
+
+side = s2s_d6(size);
+
+rotate([0, 0, 0]) d6(size) {
+ gfx(side, "zampa");
+ digits(side, 2, "free_mono");
+ digits(side, 3, "free_mono");
+ digits(side, 4, "free_mono");
+ digits(side, 5, "free_mono");
+ digits(side, 6, "free_mono");
+}
diff --git a/lib/faces/gfx.scad b/lib/faces/gfx.scad
new file mode 100644
index 0000000..f9f1e2a
--- /dev/null
+++ b/lib/faces/gfx.scad
@@ -0,0 +1,7 @@
+
+module gfx(l, gfx) {
+ file = str("../lib/faces/img/gfx/",gfx,".dxf");
+ translate([0, 0, -1]) linear_extrude(height=2) scale(l/40)
+ translate([-20, -20, 0]) import(file);
+}
+
diff --git a/lib/faces/img/gfx/zampa.dxf b/lib/faces/img/gfx/zampa.dxf
new file mode 100644
index 0000000..04f7836
--- /dev/null
+++ b/lib/faces/img/gfx/zampa.dxf
@@ -0,0 +1,982 @@
+ 0
+SECTION
+ 2
+HEADER
+ 9
+$ACADVER
+ 1
+AC1014
+ 9
+$HANDSEED
+ 5
+FFFF
+ 9
+$MEASUREMENT
+ 70
+ 1
+ 0
+ENDSEC
+ 0
+SECTION
+ 2
+TABLES
+ 0
+TABLE
+ 2
+VPORT
+ 5
+8
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 4
+ 0
+VPORT
+ 5
+2E
+330
+8
+100
+AcDbSymbolTableRecord
+100
+AcDbViewportTableRecord
+ 2
+*ACTIVE
+ 70
+ 0
+ 10
+0.0
+ 20
+0.0
+ 11
+1.0
+ 21
+1.0
+ 12
+210.0
+ 22
+148.5
+ 13
+0.0
+ 23
+0.0
+ 14
+10.0
+ 24
+10.0
+ 15
+10.0
+ 25
+10.0
+ 16
+0.0
+ 26
+0.0
+ 36
+1.0
+ 17
+0.0
+ 27
+0.0
+ 37
+0.0
+ 40
+341.0
+ 41
+1.24
+ 42
+50.0
+ 43
+0.0
+ 44
+0.0
+ 50
+0.0
+ 51
+0.0
+ 71
+ 0
+ 72
+ 100
+ 73
+ 1
+ 74
+ 3
+ 75
+ 0
+ 76
+ 0
+ 77
+ 0
+ 78
+ 0
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+LTYPE
+ 5
+5
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 1
+ 0
+LTYPE
+ 5
+14
+330
+5
+100
+AcDbSymbolTableRecord
+100
+AcDbLinetypeTableRecord
+ 2
+BYBLOCK
+ 70
+ 0
+ 3
+
+ 72
+ 65
+ 73
+ 0
+ 40
+0.0
+ 0
+LTYPE
+ 5
+15
+330
+5
+100
+AcDbSymbolTableRecord
+100
+AcDbLinetypeTableRecord
+ 2
+BYLAYER
+ 70
+ 0
+ 3
+
+ 72
+ 65
+ 73
+ 0
+ 40
+0.0
+ 0
+LTYPE
+ 5
+16
+330
+5
+100
+AcDbSymbolTableRecord
+100
+AcDbLinetypeTableRecord
+ 2
+CONTINUOUS
+ 70
+ 0
+ 3
+Solid line
+ 72
+ 65
+ 73
+ 0
+ 40
+0.0
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+LAYER
+ 5
+2
+100
+AcDbSymbolTable
+ 70
+2
+ 0
+LAYER
+ 5
+50
+100
+AcDbSymbolTableRecord
+100
+AcDbLayerTableRecord
+ 2
+0
+ 70
+0
+ 6
+CONTINUOUS
+ 0
+LAYER
+ 5
+51
+100
+AcDbSymbolTableRecord
+100
+AcDbLayerTableRecord
+ 2
+Layer_1
+ 70
+0
+ 6
+CONTINUOUS
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+STYLE
+ 5
+3
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 1
+ 0
+STYLE
+ 5
+11
+330
+3
+100
+AcDbSymbolTableRecord
+100
+AcDbTextStyleTableRecord
+ 2
+STANDARD
+ 70
+ 0
+ 40
+0.0
+ 41
+1.0
+ 50
+0.0
+ 71
+ 0
+ 42
+2.5
+ 3
+txt
+ 4
+
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+VIEW
+ 5
+6
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 0
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+UCS
+ 5
+7
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 0
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+APPID
+ 5
+9
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 2
+ 0
+APPID
+ 5
+12
+330
+9
+100
+AcDbSymbolTableRecord
+100
+AcDbRegAppTableRecord
+ 2
+ACAD
+ 70
+ 0
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+DIMSTYLE
+ 5
+A
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 1
+ 0
+DIMSTYLE
+105
+27
+330
+A
+100
+AcDbSymbolTableRecord
+100
+AcDbDimStyleTableRecord
+ 2
+ISO-25
+ 70
+ 0
+ 3
+
+ 4
+
+ 5
+
+ 6
+
+ 7
+
+ 40
+1.0
+ 41
+2.5
+ 42
+0.625
+ 43
+3.75
+ 44
+1.25
+ 45
+0.0
+ 46
+0.0
+ 47
+0.0
+ 48
+0.0
+140
+2.5
+141
+2.5
+142
+0.0
+143
+0.03937007874016
+144
+1.0
+145
+0.0
+146
+1.0
+147
+0.625
+ 71
+ 0
+ 72
+ 0
+ 73
+ 0
+ 74
+ 0
+ 75
+ 0
+ 76
+ 0
+ 77
+ 1
+ 78
+ 8
+170
+ 0
+171
+ 3
+172
+ 1
+173
+ 0
+174
+ 0
+175
+ 0
+176
+ 0
+177
+ 0
+178
+ 0
+270
+ 2
+271
+ 2
+272
+ 2
+273
+ 2
+274
+ 3
+340
+11
+275
+ 0
+280
+ 0
+281
+ 0
+282
+ 0
+283
+ 0
+284
+ 8
+285
+ 0
+286
+ 0
+287
+ 3
+288
+ 0
+ 0
+ENDTAB
+ 0
+TABLE
+ 2
+BLOCK_RECORD
+ 5
+1
+330
+0
+100
+AcDbSymbolTable
+ 70
+ 1
+ 0
+BLOCK_RECORD
+ 5
+1F
+330
+1
+100
+AcDbSymbolTableRecord
+100
+AcDbBlockTableRecord
+ 2
+*MODEL_SPACE
+ 0
+BLOCK_RECORD
+ 5
+1B
+330
+1
+100
+AcDbSymbolTableRecord
+100
+AcDbBlockTableRecord
+ 2
+*PAPER_SPACE
+ 0
+ENDTAB
+ 0
+ENDSEC
+ 0
+SECTION
+ 2
+BLOCKS
+ 0
+BLOCK
+ 5
+20
+330
+1F
+100
+AcDbEntity
+ 8
+0
+100
+AcDbBlockBegin
+ 2
+*MODEL_SPACE
+ 70
+ 0
+ 10
+0.0
+ 20
+0.0
+ 30
+0.0
+ 3
+*MODEL_SPACE
+ 1
+
+ 0
+ENDBLK
+ 5
+21
+330
+1F
+100
+AcDbEntity
+ 8
+0
+100
+AcDbBlockEnd
+ 0
+BLOCK
+ 5
+1C
+330
+1B
+100
+AcDbEntity
+ 67
+ 1
+ 8
+0
+100
+AcDbBlockBegin
+ 2
+*PAPER_SPACE
+ 1
+
+ 0
+ENDBLK
+ 5
+1D
+330
+1B
+100
+AcDbEntity
+ 67
+ 1
+ 8
+0
+100
+AcDbBlockEnd
+ 0
+ENDSEC
+ 0
+SECTION
+ 2
+ENTITIES
+ 0
+LWPOLYLINE
+ 5
+100
+100
+AcDbEntity
+ 8
+Layer_1
+ 62
+7
+100
+AcDbPolyline
+ 90
+52
+ 70
+0
+ 10
+20.867645
+ 20
+8.263884
+ 30
+0.0
+ 10
+22.107379
+ 20
+8.626399
+ 30
+0.0
+ 10
+22.968428
+ 20
+9.289452
+ 30
+0.0
+ 10
+23.532912
+ 20
+10.200380
+ 30
+0.0
+ 10
+23.882949
+ 20
+11.306748
+ 30
+0.0
+ 10
+24.268151
+ 20
+13.894867
+ 30
+0.0
+ 10
+24.780980
+ 20
+16.633083
+ 30
+0.0
+ 10
+25.338284
+ 20
+18.088489
+ 30
+0.0
+ 10
+26.111810
+ 20
+19.657720
+ 30
+0.0
+ 10
+27.838771
+ 20
+22.890565
+ 30
+0.0
+ 10
+28.557844
+ 20
+24.430601
+ 30
+0.0
+ 10
+29.024394
+ 20
+25.837371
+ 30
+0.0
+ 10
+29.121244
+ 20
+27.049109
+ 30
+0.0
+ 10
+28.994410
+ 20
+27.562516
+ 30
+0.0
+ 10
+28.731207
+ 20
+28.004008
+ 30
+0.0
+ 10
+27.969967
+ 20
+28.780904
+ 30
+0.0
+ 10
+27.254805
+ 20
+29.275955
+ 30
+0.0
+ 10
+25.956766
+ 20
+29.691897
+ 30
+0.0
+ 10
+24.825188
+ 20
+29.794375
+ 30
+0.0
+ 10
+23.848185
+ 20
+30.125921
+ 30
+0.0
+ 10
+23.000000
+ 20
+31.000000
+ 30
+0.0
+ 10
+22.104252
+ 20
+32.103147
+ 30
+0.0
+ 10
+21.564225
+ 20
+32.616292
+ 30
+0.0
+ 10
+20.923132
+ 20
+33.037506
+ 30
+0.0
+ 10
+20.151243
+ 20
+33.317061
+ 30
+0.0
+ 10
+19.218832
+ 20
+33.405222
+ 30
+0.0
+ 10
+18.302770
+ 20
+33.245854
+ 30
+0.0
+ 10
+17.573984
+ 20
+32.865706
+ 30
+0.0
+ 10
+16.993826
+ 20
+32.339376
+ 30
+0.0
+ 10
+16.523660
+ 20
+31.741463
+ 30
+0.0
+ 10
+15.758706
+ 20
+30.629270
+ 30
+0.0
+ 10
+15.386632
+ 20
+30.264190
+ 30
+0.0
+ 10
+14.969968
+ 20
+30.125921
+ 30
+0.0
+ 10
+13.972163
+ 20
+30.340927
+ 30
+0.0
+ 10
+12.837615
+ 20
+30.592099
+ 30
+0.0
+ 10
+12.243210
+ 20
+30.546635
+ 30
+0.0
+ 10
+11.643612
+ 20
+30.288682
+ 30
+0.0
+ 10
+11.048467
+ 20
+29.744391
+ 30
+0.0
+ 10
+10.467445
+ 20
+28.839922
+ 30
+0.0
+ 10
+10.167494
+ 20
+27.855957
+ 30
+0.0
+ 10
+10.059465
+ 20
+26.531576
+ 30
+0.0
+ 10
+10.329035
+ 20
+23.218182
+ 30
+0.0
+ 10
+11.095869
+ 20
+19.613189
+ 30
+0.0
+ 10
+12.179673
+ 20
+16.430015
+ 30
+0.0
+ 10
+13.777951
+ 20
+13.155727
+ 30
+0.0
+ 10
+14.666638
+ 20
+11.749526
+ 30
+0.0
+ 10
+15.643762
+ 20
+10.538483
+ 30
+0.0
+ 10
+16.730874
+ 20
+9.553527
+ 30
+0.0
+ 10
+17.949523
+ 20
+8.825507
+ 30
+0.0
+ 10
+19.321262
+ 20
+8.385325
+ 30
+0.0
+ 10
+20.867645
+ 20
+8.263884
+ 30
+0.0
+ 10
+20.867645
+ 20
+8.263884
+ 30
+0.0
+ 0
+ENDSEC
+ 0
+SECTION
+ 2
+OBJECTS
+ 0
+DICTIONARY
+ 5
+C
+330
+0
+100
+AcDbDictionary
+ 3
+ACAD_GROUP
+350
+D
+ 3
+ACAD_MLINESTYLE
+350
+17
+ 0
+DICTIONARY
+ 5
+D
+330
+C
+100
+AcDbDictionary
+ 0
+DICTIONARY
+ 5
+1A
+330
+C
+100
+AcDbDictionary
+ 0
+DICTIONARY
+ 5
+17
+330
+C
+100
+AcDbDictionary
+ 3
+STANDARD
+350
+18
+ 0
+DICTIONARY
+ 5
+19
+330
+C
+100
+AcDbDictionary
+ 0
+ENDSEC
+ 0
+EOF
diff --git a/lib/faces/img/gfx/zampa.svg b/lib/faces/img/gfx/zampa.svg
new file mode 100644
index 0000000..9dd14b9
--- /dev/null
+++ b/lib/faces/img/gfx/zampa.svg
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<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="141.73228"
+ height="141.73228"
+ id="svg2"
+ version="1.1"
+ inkscape:version="0.48.5 r10040"
+ sodipodi:docname="1.svg">
+ <defs
+ id="defs4" />
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="2.49"
+ inkscape:cx="82.137099"
+ inkscape:cy="85.472853"
+ inkscape:document-units="mm"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ units="mm"
+ inkscape:window-width="1024"
+ inkscape:window-height="552"
+ inkscape:window-x="0"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1">
+ <inkscape:grid
+ type="xygrid"
+ id="grid2985"
+ empspacing="5"
+ visible="true"
+ enabled="true"
+ snapvisiblegridlinesonly="true"
+ units="mm"
+ spacingx="1mm"
+ spacingy="1mm" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata7">
+ <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
+ inkscape:label="Layer 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-910.6299)">
+ <path
+ sodipodi:nodetypes="csssssssc"
+ id="path21800"
+ d="m 73.940473,1023.0807 4.39276,-1.2845 3.05096,-2.3494 2.00014,-3.2277 1.24029,-3.9202 1.36489,-9.1705 1.81711,-9.70234 1.9747,-5.15695 2.74084,-5.56027 6.11915,-11.45496 2.547897,-5.45682 1.65313,-4.98462 0.34317,-4.29356 -0.44941,-1.81916 -0.93261,-1.56434 -2.697307,-2.75278 -2.53404,-1.75412 -4.59935,-1.47381 -4.00953,-0.36311 -3.46182,-1.17477 -3.00538,-3.09713 -3.17391,-3.90879 -1.91348,-1.81823 -2.27159,-1.49249 -2.73504,-0.99055 -3.30382,-0.31238 -3.24589,0.56469 -2.58231,1.34698 -2.05568,1.86495 -1.66594,2.11859 -2.71047,3.94084 -1.31837,1.29359 -1.47637,0.48993 -3.53553,-0.76183 -4.02005,-0.88998 -2.10616,0.16109 -2.12456,0.91401 -2.10878,1.92859 -2.05874,3.20481 -1.06282,3.48649 -0.38278,4.69269 0.95517,11.74037 2.71713,12.7736 3.84025,11.27896 5.66319,11.60181 3.14889,4.9826 3.46225,4.2911 3.85197,3.49 4.31805,2.5796 4.86049,1.5597 5.47931,0.4303 0,0"
+ style="fill:none;stroke:#000000;stroke-width:0.35825884;stroke-opacity:1"
+ inkscape:connector-curvature="0" />
+ </g>
+</svg>