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 2 of 6 Topic 179 of 217
Post > Topic >>

Re: 3d von Koch

by Roger Bagula <rlbagula@[EMAIL PROTECTED] > Sep 7, 2007 at 12:02 PM

This is a multi-part message in MIME format.
--------------010809060702030409020508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

(*  3d von Koch  IFS 3d Fractal*)
(* by R. L. Bagula 07 Sept. 2007 ©*)
(*from Hans Lauwerier, "Fractals, Endlessly Repeating Geometrical
Figures",
Princeton Science Library, Page 129*)
Clear[f, dlst, pt, cr, ptlst]
in = Join[{{0, 2, 2}, {4, 2, 2}, {2, 0, 2}, {2, 4, 2}, {2, 2, 0}, {2, 2, 
4}},
Flatten[Table[{i, j, k}, {i, 1, 3}, {j, 1, 3}, {k, 1, 3}], 2]];
Length[in];
dim_app = N[Log[Length[in]]/Log[5]]
2.1725022968909635`
dlst = Table[ Random[Integer, {1, Length[in]}], {n, 25000}];

f[j_, {x_, y_, z_}] := {x, y, z}/5 + 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}]

>
>
>


--------------010809060702030409020508
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
(*&nbsp; 3d von Koch&nbsp; IFS 3d Fractal*)<br>
(* by R. L. Bagula 07 Sept. 2007 &copy;*)<br>
(*from Hans Lauwerier, "Fractals, Endlessly Repeating Geometrical
Figures", <br>
Princeton Science Library, Page 129*)<br>
Clear[f, dlst, pt, cr, ptlst]<br>
in = Join[{{0, 2, 2}, {4, 2, 2}, {2, 0, 2}, {2, 4, 2}, {2, 2, 0}, {2,
2, 4}}, <br>
Flatten[Table[{i, j, k}, {i, 1, 3}, {j, 1, 3}, {k, 1, 3}], 2]];<br>
Length[in];<br>
dim_app = N[Log[Length[in]]/Log[5]]<br>
2.1725022968909635`<br>
dlst = Table[ Random[Integer, {1, Length[in]}], {n, 25000}];<br>
<br>
f[j_, {x_, y_, z_}] := {x, y, z}/5 + in[[j]];<br>
<br>
pt = {0.5, 0.5, 0.5};<br>
<br>
cr[n_] := Flatten[Table[If[<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i == j == k == 1, {}, RGBColor[i, j, k]],
{i, 0, 1, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.5}, {j, 0, 1,
0.5}, {k, 0, 1, 0.5}]][[1 + Mod[n, 26]]];<br>
ptlst = Table[{cr[dlst[[j]]], Point[pt = f[dlst[[j]], Sequence[pt]]]},<br>
&nbsp;&nbsp; {j, Length[dlst]}];<br>
g = Show[Graphics3D[Join[{PointSize[.001]}, ptlst]], AspectRatio -&gt;
<br>
Automatic, PlotRange -&gt; All, Boxed -&gt; False]<br>
Show[g, ViewPoint -&gt; {-0.178, -0.172, 3.375}]<br>
Show[g, ViewPoint -&gt; {2.649, -2.104, 0.059}]
<blockquote cite="midbBgEi.1899$Sd4.425@[EMAIL PROTECTED]
"
 type="cite">
  <div class="moz-text-flowed"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-western"><br>
  <br>
  <br>
  </div>
</blockquote>
<br>
</body>
</html>

--------------010809060702030409020508--
 




 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 Sep 6 22:34:00 CDT 2008.