MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: random 3D object consisting of cuboids


I am guessing you are referring to Section 2.10.8, as in 
http://documents.wolfram.com/mathematica/book/section-2.10.8. 

Did you set 
      rcoord := {Random[ ], Random[ ], Random[ ]} 
(In[1] in that section) ??


Also - the plot will look better and run faster if you 
include the 10 in 

       Show[Graphics3D[ Table[Cuboid[10 rcoord], {20}] ]] 

Brue Miller


On Tue, Aug 29, 2006 at 03:25:32AM -0400, gavrili wrote:
> i am trying to create random 3d objects constisting of cuboids; as the
> end result i need the coordinates of the cuboids;
> 
> however, i am having trouble with the commands from the very start;
> even when i cut and paste the following line from mathematica
> 
> Show[Graphics3D[Table[Cuboid[rcoord], {20}]]]
> 
> i am getting error messages of the sort
> Graphics3D::nlist3: rcoord is not a list of three numbers
> 
> 
> 
> could anyone help?
> 


  • Prev by Date: Errors in Mathematica
  • Next by Date: RE: Something wrong with my FrontEnd?
  • Previous by thread: random 3D object consisting of cuboids
  • Next by thread: Re: random 3D object consisting of cuboids