I made another mistake...

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

I made another mistake...

Dan Zuras 3D


        I make a lot of them in my dotage. :-)

        That recursive step should be:

        module dragon(k,s) if (k < 1) dragonbasis(s);
                else union() {
                dragon(k-1),s);
                translate(s*complex2xy((1-i)^k))
                        rotate(a = [0,0,90]) dragon(k-1),s);
        }

        The way I wrote it before involved powers of (s-i*s)^k.
        That would be bad for any s other than 1.

        Sorry,

                                Dan