ubitux / shimonbox

Semi-automatically generated 3D printable cases for development boards using OpenSCAD
178 stars 22 forks source link

Reduce redudancy when defining boards #2

Closed dragetd closed 6 years ago

dragetd commented 6 years ago

Hey there,

currently adding one or two more boards. While doing this, I also thought about writing a little doc about how to add new boards.

I noticed that I had to put the board name at several places… like defining the base plate it needs an individual name. Then again I also need to add the board to the top-level file boards.scad.

I did not yet read through all the files completely, thus I do not fully understand why it needs to be defined at so many places. Maybe OpenSCAD has some functions to redcuce the redundancy at some points, thus making it easier to add new ones. When I find more specifig things, I will report back to this issue. :-)

ubitux commented 6 years ago

The OpenSCAD language is pretty limited unfortunately. I tried my best to reduce the need for redundancy without the use of an external language, but typically modules and functions can not be mapped to each other (like, you can't have a function that points to a module). If you find a way of simplifying further, patches welcome.

Also, shimonbox provides boards and cases and you want to be able to use the board model only, without the case.

I should have written a doc on adding a board yes... so far only the blog post gives an overview (http://blog.pkh.me/p/24-making-development-board-cases-with-shimonbox.html)

Here is a quick & dirty howto:

Feel free to correct me if I forgot something.

dragetd commented 6 years ago

Yes, I see why you did many things like you did. And I really agree with you on what you wrote in the blog post: OpenSCAD really needs some dev power to improve on a few things. =/

So I will close this issue.

Concerning the contributing guidelines: Will open a new issue once I got around to writing a first version. :)