Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7006
| From | Roger Bagula <roger.bagula@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Crashing problem with 3d IFS program |
| Date | 2011-12-08 10:25 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbq3b6$ihl$1@smc.vnet.net> (permalink) |
I don't know what the problem is:
at level two this goes "bang" on me.
I've had the same problem when I try to add color
with an Insert[].
Needs["Manifolds`Morphology`"]
OneStepIFS[ifs_][s_] := Flatten[Map[Through[ifs[#]] &, s], 1]
IterateIFS[ifs_, init_, n_] := Nest[OneStepIFS[ifs], {init}, n]
ManifoldIFS[ifs_, Manifold[p_, c___], n_] :=
Manifold[IterateIFS[ifs, p, n], c]
Clear[Sierpinsky3D, Sierpinsky3DIFS, gr]
pieces = N[ {{0, 0, 0}, {0, 0, 1}, {0, 0, 2}, {0, 1, 0}, {0, 1,
2}, {0, 2, 0}, {0, 2, 1}, {0, 2, 2}, {1, 1/2, 0}, {1, 1/2,
2}, {1, 1.5, 0}, {1, 1.5, 2}, {2, 1, 0}, {2, 1, 1}, {2, 1,
2}, {-1, 0, 1/2}, {-1, 2, 1/2}, {-1, 0, 1.5}, {-1, 2, 1.5}, {-2,
0, 1}, {-2, 1, 1}, {-2, 2, 1}}/4];
Sierpinsky3D[n_][v_] := (1/3)*v + pieces[[n]]
Sierpinsky3DIFS := Array[Sierpinsky3D, Length[pieces]]
gr = Draw[
ManifoldIFS[Sierpinsky3DIFS,
Manifold[{u/1.01, (1 - u) v + 1, 2* w/1.01}/(4/3)/2, {u, 0, 1}, {v,
0, 1}, {w, 0, 1}], 1], PlotPoints -> 2, Axes -> None,
PlotRange -> All, Boxed -> False]
gr3 = Draw[
ManifoldIFS[Sierpinsky3DIFS,
Manifold[{u/1.01, -(1 - u) v + 1, 2* w/1.01}/(4/3)/2, {u, 0,
1}, {v, 0, 1}, {w, 0, 1}], 1], PlotPoints -> 2, Axes -> None,
PlotRange -> All, Boxed -> False]
gr2 = Draw[
ManifoldIFS[Sierpinsky3DIFS,
Manifold[{-u/1.01, 2* w/1.01, 1 + (1 - u) v}/(4/3)/2, {u, 0,
1}, {v, 0, 1}, {w, 0, 1}], 1], PlotPoints -> 2, Axes -> None,
PlotRange -> All, Boxed -> False]
gr4 = Draw[
ManifoldIFS[Sierpinsky3DIFS,
Manifold[{-u/1.01, 2*w/1.01, 1 - (1 - u) v}/(4/3)/2, {u, 0, 1}, {v,
0, 1}, {w, 0, 1}], 1], PlotPoints -> 2, Axes -> None,
PlotRange -> All, Boxed -> False]
gw = Show[{gr, gr2, gr3, gr4}, PlotRange -> All]
The package is at:
At:
http://www.ens2m.fr/maths/Barrere%20Remi/Mathematica/pages/files.html
http://www.ens2m.fr/maths/Barrere%20Remi/Mathematica/packages/Manifolds.zip
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Crashing problem with 3d IFS program Roger Bagula <roger.bagula@gmail.com> - 2011-12-08 10:25 +0000
Re: Crashing problem with 3d IFS program Roger Bagula <roger.bagula@gmail.com> - 2011-12-10 12:33 +0000
Re: Crashing problem with 3d IFS program Roger Bagula <roger.bagula@gmail.com> - 2011-12-11 08:56 +0000
Re: Crashing problem with 3d IFS program Murray Eisenberg <murray@math.umass.edu> - 2011-12-12 11:43 +0000
Re: Crashing problem with 3d IFS program Heike Gramberg <heike.gramberg@gmail.com> - 2011-12-11 08:57 +0000
csiph-web