Giter Club home page Giter Club logo

n-die's Introduction

n-die

OpenSCAD script to generate a n-sided die model for 3d printing. View and generate models on Thingiverse.

d7 d11 d23

Sure, six choices are no match for a standard die. But what about picking from seven, eleven, or the unthinkable twenty-three choices? Until now, you were never able to leave it up to chance, forcing yourself to go through the agonizing processes of choosing.

Well here comes the solution to all your multi-optioned problems - a customizable die for all your random number needs! You may have ninety-nine problems, but now choosing ain't one.

The die is designed to have a variable number of flat faces with a number on the opposite side. Wherever the die comes to rest, the associated number will show face up for easy reading.

Use the OpenSCAD script has parameters to modify number of sides, font and face depth, style and size of the font, as well as the model resolution. The procedural model uses the golden ratio to find the positions of reasonably even distribution of faces on a sphere for most values of n. Some smaller values of n use preset face angles. Due to most distributions being non-symmetrical, numbers will generally appear off-center of the flat faces in the die.

For best results of the lower hemisphere of the die, print using a raft and supports. Finish the bottom and sides using fine grain sandpaper.

DEPENDENCY: The script depends on the Write.scad library for number character generation.

DISCLAIMER: The distribution algorithm works well for large values of n, but it's not perfect. Other variables introduced while printing or sanding pretty much guarantee that it won't result in a perfectly fair die, but it's close!

n-die's People

Contributors

bwarne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.