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 3 of 6 Topic 179 of 219
Post > Topic >>

Re: 3d von Koch--> triangular version

by Roger Bagula <rlbagula@[EMAIL PROTECTED] > Sep 9, 2007 at 06:43 AM

This method  is sort of a clunky way to make
a triangular 3d von Koch using Cuboids.
It doesn't start to look triangular  except by level 3.
What I did was take a triangular carpet tetrahedron ( 10 cubes , ratio 3)
 and added a central cube and face cubes
to get this at 15 cubes and a ratio of 4.
If I could get the Mathematica Tetrahedron[] graphic primitive to work
like
a Cuboid[] , I would have used it instead.
Essentually what I'm doing if a three relative size tetrahedron with a 
one size
tetrahedron on each face ( sort of a 3d Jewish Star) using cubes
instead of tetrahedrons.

Picture:
http://profile.imeem.com/GUmj0c/photo/_BKRMfb9tf/

Mathematica code:
Clear[pieces, menger]
(* 3d tetrahedron/ cuboid triangular von Koch*)
(* Roger Bagula 09 sept 2007©*)
pieces =
{{1, 0, 1}, {-1, 0, 1}, {0, -1, -1}, {0, 1, -1}, {0, 0, 1}, {0, 0, -1}, 
{0, \
0, 0}, {0, 1.5, 0}, {0, -1.5, 0}, {
    1.5, 0, 0}, {-1.5, 0,
      0}, {1/2, 1/2, 0}, {1/2, -1/2, 0}, {-1/2, 1/2, 0}, {-1/2, -1/2, 0}};
N[Log[Length[pieces]]/Log[4]]
1.9534452978042591`
 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]
gr = Show[Graphics3D[Flatten[menger[{0, 0, 0}, 1, 3]]], Boxed -> False]
Show[gr, ViewPoint -> {-0.002, 1.297, 3.125}]
 




 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 Wed Oct 15 19:14:25 CDT 2008.