Customizable D12
prusaprinters
<p>The D12 can be configured with a few lines of code. Each face can be specified as either <strong>TEXT </strong>(text, font, scale, underscore) or <strong>SVG </strong>(filename, angle).</p><p>Note: The underscore option inserts a single-character underscore, and is available primarily to aid in distinguishing 9 from 6.</p><p>SVG files should be scaled to 200x200mm, with the design filling the image.</p><p><strong>d12Height </strong>specifies the height as distance between two opposing faces.</p><p><strong>d12Indent </strong>specifies the depth of the markings on the face.</p><p>The faces collection specifies the twelve faces in numerical order (1-12).</p><p>The following is the code block of relevant lines from the SCAD file, specifying the size and face features of the die. The number 12 is replaced with an image of a fleur-de-lis. The attached STL file is a demo rendering of this configuration.</p><pre><code class="language-plaintext">d12Height=30; //height of d12 d12Indent=.5; //indentation of designs //face specs 1-12 //SVG files must be 200x200mm faces=[ [TEXT,"one","Verdana:style=Regular",.7,false], [TEXT,"two","Verdana:style=Regular",.7,false], [TEXT,"III","Verdana:style=Regular",.7,false], [TEXT,"IV","Verdana:style=Regular",.7,false], [TEXT,"cinco","Verdana:style=Regular",.5,false], [TEXT,"seis","Verdana:style=Regular",.5,false], [TEXT,"sept","Verdana:style=Regular",.5,false], [TEXT,"huit","Verdana:style=Regular",.5,false], [TEXT,"9","Verdana:style=Regular",1,true], [TEXT,"10","Verdana:style=Regular",1,false], [TEXT,"eleven","Verdana:style=Regular",.4,false], [SVG,"fleur.svg",0], ];</code></pre>
With this file you will be able to print Customizable D12 with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Customizable D12.