Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Module Oddity' topicStudent Support Forum > General > Archives > "Module Oddity"

Next Comment >Help | Reply To Topic
Author Comment/Response
02/22/08 3:22pm

When I use the "Module" function, I can combine the graphics with manipulate. Without module, I get an error saying the coordinates need to be in triplet or scaled form. Why does "Module" have any effect on this?

Line 1:

sh[a_, u_] := Module[{cube, sp1} ,
cube = Graphics3D[Cuboid[{u, a, u}], PlotRange -> 5];
sp1 = Graphics3D[Sphere[{u, a, u}], PlotRange -> 5];
Show[cube, sp1]]

Line 2: Manipulate[sh[a, u], {a, 0, 2}, {u, 0, 2}]

URL: ,

Subject (listing for 'Module Oddity')
Author Date Posted
Module Oddity Tom 02/22/08 3:22pm
Re: Module Oddity Xavier 02/27/08 10:51am
Re: Module Oddity yehuda ben-s... 02/27/08 3:54pm
Next Comment >Help | Reply To Topic