Ideas on how to print intersecting tubes ?? October 17, 2013 07:03PM |
Registered: 11 years ago Posts: 273 |
Re: Ideas on how to print intersecting tubes ?? October 17, 2013 09:44PM |
Registered: 12 years ago Posts: 305 |
Re: Ideas on how to print intersecting tubes ?? October 17, 2013 10:31PM |
Registered: 11 years ago Posts: 273 |
Re: Ideas on how to print intersecting tubes ?? October 17, 2013 11:08PM |
Registered: 12 years ago Posts: 305 |
Re: Ideas on how to print intersecting tubes ?? October 18, 2013 12:38AM |
Registered: 11 years ago Posts: 273 |
Re: Ideas on how to print intersecting tubes ?? October 18, 2013 08:54AM |
Registered: 12 years ago Posts: 305 |
r=10; module e2() { circle(2*r); } module e1() { circle(r); translate([0,2*r]); e2(); } e1(r=20); //the radius in `e1` is 20, but in `e2` it is 10, you basically have to pass it along.(do `e2(r=r)`) //To avoid this, replace the variable `r` with `$r`Basically the special variable behavior make the global variables act as function arguments a bit.(afaik only Common Lisp had this feature before.) Tbh *I* didnt use this properly before.. using just regular variables.. Hmm the wikibook isnt clear on it, just talking about `$fn`, `$fs`(precision of the model created) afaik.
Re: Ideas on how to print intersecting tubes ?? October 18, 2013 08:23PM |
Registered: 11 years ago Posts: 134 |
Re: Ideas on how to print intersecting tubes ?? October 19, 2013 10:44AM |
Registered: 11 years ago Posts: 86 |
Re: Ideas on how to print intersecting tubes ?? October 19, 2013 04:07PM |
Registered: 11 years ago Posts: 273 |
Re: Ideas on how to print intersecting tubes ?? October 21, 2013 06:28PM |
Registered: 13 years ago Posts: 160 |
Re: Ideas on how to print intersecting tubes ?? October 21, 2013 10:30PM |
Registered: 11 years ago Posts: 730 |