discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

modularization of common rotatation

JD
Jerry Davis
Sat, Apr 8, 2017 10:27 PM

I can't seem to figure out what is wrong here:

module rotate_item(a=[0,0,0]) {
rotate(a) children();
}

module rotate_around(n=5,t=[0,0,0]) {
for (i = [0:n]) {
rotate([0,0,i360/n])
translate(t)
rotate_item([0,0,i
360]) chldren();
}
}
rotate_around(n=7, t=[25/2,0,0]) cube([10,5,2]);

If I do the same thing but not using children()
It works.

Can someone tell me what I am doing wrong?
Thanks,

Jerry

Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Openscad developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

I can't seem to figure out what is wrong here: module rotate_item(a=[0,0,0]) { rotate(a) children(); } module rotate_around(n=5,t=[0,0,0]) { for (i = [0:n]) { rotate([0,0,i*360/n]) translate(t) rotate_item([0,0,i*360]) chldren(); } } rotate_around(n=7, t=[25/2,0,0]) cube([10,5,2]); If I do the same thing but not using children() It works. Can someone tell me what I am doing wrong? Thanks, Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Openscad developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov
TP
Torsten Paul
Sat, Apr 8, 2017 10:35 PM

Seems to work fine after fixing the typo chldren() -> children().

ciao,
Torsten.

Seems to work fine after fixing the typo chldren() -> children(). ciao, Torsten.
JD
Jerry Davis
Sat, Apr 8, 2017 11:49 PM

thanks, Torsten.

I feel stupid ... you don't know HOW LONG I stared at that!

Ha!

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Openscad developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

On Sat, Apr 8, 2017 at 3:35 PM, Torsten Paul Torsten.Paul@gmx.de wrote:

Seems to work fine after fixing the typo chldren() -> children().

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

thanks, Torsten. I feel stupid ... you don't know HOW LONG I stared at that! Ha! Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Openscad developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov On Sat, Apr 8, 2017 at 3:35 PM, Torsten Paul <Torsten.Paul@gmx.de> wrote: > Seems to work fine after fixing the typo chldren() -> children(). > > ciao, > Torsten. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
M
MichaelAtOz
Sun, Apr 9, 2017 3:07 AM

Happens to the best of us...  [schadenfreude]
https://makebitcoingreatagain.wordpress.com/2017/02/18/is-the-zcoin-bug-in-checktransaction/


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/modularization-of-common-rotatation-tp21130p21139.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Happens to the best of us... [schadenfreude] <https://makebitcoingreatagain.wordpress.com/2017/02/18/is-the-zcoin-bug-in-checktransaction/> ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/modularization-of-common-rotatation-tp21130p21139.html Sent from the OpenSCAD mailing list archive at Nabble.com.