On Sun, Dec 11, 2022 at 07:03:05PM +0000, 3dcase via Discuss wrote:
I like simple things.
for(a=[0:90:360]){
rotate([0,0,a])translate[(radius,0,0])cylinder(h=holedepth,d=boltsize,center=true);
}
Why five holes when he needs only four?
(I think the way "for" works in openscad is mathematically inconvenient.
Here you see a case where you'd want the other behaviour. I think this
is more common than the other way around, but... we can't change it
anymore).
Roger.
--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 **
f equals m times a. When your f is steady, and your m is going down
your a is going up. -- Chris Hadfield about flying up the space shuttle.
Yeah it should have been 270, since starting at 0. But what has happened to the syntax? Is this a result of writing it on my phone and then gets sent as email???
That is super annoying if that happens when using the phone. Will have to remember that.
Sent with Proton Mail secure email.
------- Original Message -------
On Monday, December 12th, 2022 at 9:38 AM, Rogier Wolff R.E.Wolff@BitWizard.nl wrote:
On Sun, Dec 11, 2022 at 07:03:05PM +0000, 3dcase via Discuss wrote:
I like simple things.
for(a=[0:90:360]){
rotate([0,0,a])translate[(radius,0,0])cylinder(h=holedepth,d=boltsize,center=true);
}
Why five holes when he needs only four?
(I think the way "for" works in openscad is mathematically inconvenient.
Here you see a case where you'd want the other behaviour. I think this
is more common than the other way around, but... we can't change it
anymore).
Roger.
--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 **
f equals m times a. When your f is steady, and your m is going down
your a is going up. -- Chris Hadfield about flying up the space shuttle.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org