Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fractals > Re: 3d von Koch...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 179 of 217
Post > Topic >>

Re: 3d von Koch--> corner cube

by Roger Bagula <rlbagula@[EMAIL PROTECTED] > Sep 10, 2007 at 03:39 PM

eNZedBlue wrote:

>
>Unlike the regular 3D Koch these have a 2D Koch fractal silhoette when
>viewed from a 45 degree angle (pitch and yaw). The sphere-based one is
>the "Sphereflake".
>
>Regards,
>Chris Hayton
>
>
>
>
>  
>

Chris Hayton
I did some work on this model.
It isn't strickly a classical von Koch but something new.
The corners overlap.
And the ratio is 4 instead of 5 as in the Lawerier version.
It may not be the best version of this fractal,
but it is connected. Your faces are too plain in your versions:
this version has both bumps and voids.
Moran dimension:
2.564641508472483
Menger cube version takes forever in Mathenmatica 
at level 3.
Pictures:
http://profile.imeem.com/GUmj0c/photo/EjvNo7XVrN/
http://profile.imeem.com/GUmj0c/photo/KVkOBoyKGy/
Mathematica IFS:
(*  3d von Koch corner cube  IFS 3d Fractal*)
(* by R. L. Bagula 07 Sept. 2007 ©*)
(*Chris Hayton : web cormer 3d von Koch cube*)
Clear[f, dlst, pt, cr, ptlst]
in = Join[Flatten[Table[{i, 
      j, k}*1.5, {i, -1, 1, 2}, {j, -1, 1, 2}, {k, -1, 1, 2}], 2], \
Flatten[Table[{i, j, k}, {i, -1, 1}, {j, -1, 1}, {k, -1, 1}], 2]]
Length[in];
dim_app = N[Log[Length[in]]/Log[4]]
2.564641508472483`
dlst = Table[ Random[Integer, {1, Length[in]}], {n, 25000}];

f[j_, {x_, y_, z_}] := {x, y, z}/4 + in[[j]];

pt = {0.5, 0.5, 0.5};

cr[n_] := Flatten[Table[If[i == j == k == 1, {}, RGBColor[i, j, k]], {
        i, 0, 1, 0.5}, {j, 0, 1, 0.5}, {k, 0, 1, 0.5}]][[1 + Mod[n, 26]]];
ptlst = Table[{cr[dlst[[j]]], Point[pt = f[dlst[[j]], Sequence[pt]]]},
   {j, Length[dlst]}];
g = Show[Graphics3D[
    Join[{PointSize[.001]}, ptlst]], AspectRatio ->
         Automatic, PlotRange -> All, Boxed -> False]
Show[g, ViewPoint -> {-0.178, -0.172, 3.375}]
Show[g, ViewPoint -> {2.649, -2.104, 0.059}]

Mathematica Menger cube version:
Clear[pieces, menger]
pieces =
Join[Flatten[Table[{i, j, k}*1.5, {i, -1,
     1, 2}, {j, -1, 
      1, 2}, {k, -1, 1, 2}], 2], Flatten[Table[{i, j, k}, {i, -1, 1}, {j,
-1, 
        1}, {k, -1, 1}], 2]]
 menger[cornerPt_, sideLen_, n_] :=
  menger[cornerPt + #1*(sideLen/4), sideLen/4, n - 1] & /@[EMAIL PROTECTED]
 pieces;
 menger[cornerPt_, sideLen_, 0] :=
{EdgeForm[], Cuboid[ cornerPt , cornerPt + sideLen*{1, 1, 1}]};
Show[Graphics3D[Flatten[menger[{0, 0, 0}, 1, 1]]], Boxed -> False]
Show[Graphics3D[Flatten[menger[{0, 0, 0}, 1, 2]]], Boxed -> False]
gr = Show[Graphics3D[Flatten[menger[{0, 0, 0}, 1, 3]]], Boxed -> False]
Show[gr, ViewPoint -> {-0.002, 1.297, 3.125}]

Roger Bagula
 




 6 Posts in Topic:
3d von Koch
Roger Bagula <rlbagula  2007-09-07 11:17:41 
Re: 3d von Koch
Roger Bagula <rlbagula  2007-09-07 12:02:23 
Re: 3d von Koch--> triangular version
Roger Bagula <rlbagula  2007-09-09 06:43:35 
Re: 3d von Koch
eNZedBlue <chris@[EMAI  2007-09-08 00:57:50 
Re: 3d von Koch
Roger Bagula <rlbagula  2007-09-09 13:30:05 
Re: 3d von Koch--> corner cube
Roger Bagula <rlbagula  2007-09-10 15:39:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:24:31 CDT 2008.