Seven Segment Digits in OpenScad (Q54162)

From Library of Open Source Hardware
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
Seven Segment Digits in OpenScad
No description defined

    Statements

    0 references
    WilliamAAdams
    0 references
    en
    0 references
    1.0.0
    0 references
    www.thingiverse.com
    0 references
    https://spdx.org/licenses/CC-BY-4.0
    0 references
    auto
    0 references
    A long time back, when I was first learning to code in Windows, I rand the Charles Petzold digital clock application as a sample. Since then, I've done everything with that clock from rendering in OpenGL to high resolution timers. This thing takes the seven segment digital display and renders it in OpenScad. It's pretty straight forward. There are three routines. DisplayDigit(number, height) - Will display a single digit, centered at the origin. DisplayDigits(numbers, count, height) - Will display a sequence of numbers, separated by a gap of 4mm. RenderDigitsPlate(digits, count, thickness, height) - Will display a sequence of numbers, and put a nice rectangle underneath them in case you want to easily CSG the sequence of numbers with something else. It's a bit hacky in that the gap between numbers is fixed, and I didn't normalize the polygon data, so it's a fixed size of 38x68. Of course you can scale it, but... Well, there it is. finally off my chest. And now I have nice 7-segment numbers in the bag of tricks. You can guess at the signifance of the number in the picture.
    0 references
    thingiverse.com
    0 references