teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
califax has quit [Remote host closed the connection]
califax has joined #openscad
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee has joined #openscad
teepee has quit [Quit: bye...]
teepee has joined #openscad
toluene has quit [Quit: Ping timeout (120 seconds)]
J1A8440 has joined #openscad
toluene has joined #openscad
J1A84 has quit [Ping timeout: 252 seconds]
snaked has quit [Ping timeout: 272 seconds]
snaked has joined #openscad
toluene has quit [Quit: Ping timeout (120 seconds)]
toluene has joined #openscad
Guest6767 has joined #openscad
Virindi has joined #openscad
Junxter has joined #openscad
neur0 has quit [Remote host closed the connection]
neur0 has joined #openscad
Junxter has quit [Ping timeout: 255 seconds]
hisacro has quit [Quit: \o|]
hisacro has joined #openscad
GNUmoon has quit [Ping timeout: 268 seconds]
hisacro has quit [Remote host closed the connection]
hisacro has joined #openscad
GNUmoon has joined #openscad
Junxter has joined #openscad
TheAssassin has quit [Ping timeout: 268 seconds]
TheAssassin has joined #openscad
tcurdt has quit [Quit: bye]
tcurdt has joined #openscad
TheAssassin has quit [Quit: No Ping reply in 180 seconds.]
TheAssassin has joined #openscad
<gbruno> [github] t-paul pushed 1 additions 2 modifications (Add book Make: Calculus.) https://github.com/openscad/openscad.github.com/commit/1f6f9ecfe55c284c5dfe1eb869f8cb214739bee9
teepee_ has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
<J1A8440> improved the  look  and marking https://pasteboard.co/ekDdWV7bxu4Q.png
<teepee> very cool
<J1A8440> Thx Ü (it also can do offsets and delta)
<J1A8440> but it can not merge near points or remove intersections  or limit the radius
<J1A8440> so you have to know what you are doing when using this
<poisond> you can't pass a module as a parameter, can you?
<poisond> I'd need to have multiple different children but that becomes unreadable
<J1A8440> you can index children
<J1A8440> and special variables ($) are available in children
califax has quit [Remote host closed the connection]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
califax has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
Junxter has quit [Quit: Leaving]
rkb97 has joined #openscad
Guest6767 has quit [Ping timeout: 255 seconds]
<gbruno> [github] t-paul pushed 1 modifications (Merge pull request #4290 from hexane360/macos-dir-fix Add error check to userConfigPath on mac.) https://github.com/openscad/openscad/commit/ea8950bd3cd7f06da333c15463492e484098e591
tcurdt has quit [Ping timeout: 268 seconds]
ur5us has joined #openscad
teepee_ has joined #openscad
tcurdt has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
poisond has quit [Remote host closed the connection]
souvlakeeb has joined #openscad
<souvlakeeb> Hello, this is my first hour with openscad. I'd like to make a simple part for which the tutorial hasn't given me all the tools I need. I want to make a simple keyboard switch tester. The shape is a rectangle with one row of 4 square holes in it. Each square hole is 14x14.
<souvlakeeb> Each square hole is 5 away from the next edge-to-edge and 5 away from the top and bottom edges of the rectangle, if viewing from the top and longest dimension is running left to right.
<souvlakeeb> The leftmost and rightmost edge of the rectangle have an additional 5 of material, making the leftmost and rightmost hole 10 away from the rectangle edge, edge-to-edge
<souvlakeeb> I hope I explained it well, a picture would have been easier
<Virindi> you want something like
<Virindi> difference() {
<Virindi> translate([xxx,yyy,zzz]) cube([xxx,yyy,zzz]); //A hole
<Virindi> //more holes...
<Virindi> cube([xxx,yyy,zzz]); //The main body
<Virindi> }
<Virindi> to see where a hole is being drawn, place a # in front of the line:
<Virindi> #translate([xxx,yyy,zzz]) cube([xxx,yyy,zzz]); //A hole
<Virindi> (to help debug hole placement)
<souvlakeeb> Ah okay! I didn't realize I could repeat translates in the same difference call
<souvlakeeb> Is there a concept of creating variables? Say I want to set spacing to 5 and reuse that throughout
<Virindi> foo = 5;
<Virindi> translate([foo,0,0]) ......
<souvlakeeb> too cool!
<Virindi> there are loops as well of course
<souvlakeeb> Thanks for the help! That should be all I need!
<Virindi> each 'module' (such as cube()) can have any number of modifiers in front of it (such as translate(), rotate(), scale(), etc)
<Virindi> :)
<souvlakeeb> Very nice!
<souvlakeeb> Is there a way to use an external editor?
<Virindi> window->hide editor, design->automatic reload and preview
<Virindi> I use geany, there is a syntax highlighting definition for it somewhere online
<souvlakeeb> I use spacemacs, there might be a package. Thank you very much for the guidance!
<Virindi> if you plan to 3d print this object, remember to add extra dimensions to the size of your holes to account for 3dp wall error. generally a hole should be 0.15 to 0.3mm larger than the object which must go into it
<Virindi> (the exact amount depends on your printer and how tight you want the fit to be)
<souvlakeeb> That's good advice thank you!
<souvlakeeb> The part will be laser cut
<souvlakeeb> I will be using sendcutsend. Putting together a split keyboard design if I can manage it
<souvlakeeb> Yes there seems to be an emacs package: scad-mode!
<souvlakeeb> Is there a way to print a variable value to make sure it's correct?
<InPhase> souvlakeeb: echo(x);
<Virindi> if you are not using a super fast computer then you may also find it helpful to install a recent openscad and enable vertex buffer preview, which is in the preferences
<souvlakeeb> Okay great! Thank you both!
<souvlakeeb> If I can find the answer to this question in the documentation please let me know, but I haven't found it. How does grouping work? Say I want `foo = (1 + 2) * 3;`. I'm getting complaints about the parens
<Virindi> that should work