[HN Gopher] Show HN: OpenSCAD configurable calendar 3D model
___________________________________________________________________
Show HN: OpenSCAD configurable calendar 3D model
I created a highly configurable calendar 3D model using OpenSCAD.
This project uses Zeller's Congruence to automatically adjust the
calendar layout for any year. Just change the year in the
configurator, and the model updates accordingly. The link contains
a little more of the backstory and the downloadable model from a
3rd-party site, additionally the full source code is included in
the post. Some highlights: - Implemented date calculations
entirely in OpenSCAD (with no built-in date support, which was
challenging but fun). - Customizable layout, multi-material
printing support, and translation for all text elements. -
Configurable holes for magnets/screws to mount on a fridge or wall.
- Utilizes JustinSDK/dotSCAD and davidson16807/relativity.scad for
string manipulation. - Correctly takes into account leap years.
Would love to hear your feedback. Thanks for checking it out!
Author : Rikudou
Score : 16 points
Date : 2025-02-14 20:57 UTC (2 hours ago)
(HTM) web link (chrastecky.dev)
(TXT) w3m dump (chrastecky.dev)
| hnuser123456 wrote:
| This is really cool! I only have a single-spool printer, but I
| wonder if I could brush or stamp paint over the top to give the
| surface a different color from inset lettering. I should probably
| also reinforce my Z axis before trying to print day numbers that
| small.
|
| Kind of funny to see string manipulation functions implemented in
| Openscad code.
| evan_ wrote:
| You can always insert a pause and swap to a different filament
| at a certain z-height.
| jamesy0ung wrote:
| You can use M600 to stop and load a new filament to use multi
| colour.
| gerdesj wrote:
| Nice job. I will have a play.
|
| In case anyone fails to notice the link to dotSCAD - do
| investigate it. That bloke (sadly now deceased was a OpenSCAD
| legend!)
| gerdesj wrote:
| Easter calculator. The algorithm is roughly:
|
| Sunday after the first full moon on or after Mar 21. If the
| full moon is a Sunday, then the following Sunday. The date of
| the full moon is not an astronomical one and its date is left
| as an exercise for the reader.
|
| There are two Easters too - the Orthodox one involves the
| Julian calendar, the Roman (etc) involves the Gregorian
| calendar.
|
| You could chicken out with a lookup table!
| bsimpson wrote:
| I've never seen the SCAD language before - looks surprisingly
| similar to JavaScript.
| aqueueaqueue wrote:
| Is this a 2D colour thing on a 3D printer?
|
| If so am loathed to print those because you need an automatic
| material system and it creates a lot of poop (cut-offs when
| switching colour)
|
| It think it might be OK to have say 5 white layers then a couple
| of ink layers.
|
| Also how do you get on with the slicer with fonts.
|
| I found this difficult when printing a dog tag. I sort of got the
| impression it may be better to have a "gcode font" rather than go
| TTF->Triangles (STL)->Gcode
|
| However overall: great effort and I love openscad. I love the
| idea of it I only used it once as I have been busy!
___________________________________________________________________
(page generated 2025-02-14 23:00 UTC)