MathGroup Archive 2006

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

Search the Archive

Re: random 3D object consisting of cuboids

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69083] Re: [mg69054] random 3D object consisting of cuboids
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 30 Aug 2006 06:32:05 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

coords={};
Show[Graphics3D[Table[
        AppendTo[coords, 
          rcoord=3{Random[],Random[],Random[]}];
        Cuboid[rcoord], {20}]],
    Boxed->False];

The coordinates are stored in coords


Bob Hanlon

---- gavrili <gavrili at rhrk.uni-kl.de> 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: Re: one-dimensional and two-dimensional convolution
  • Next by Date: Re: General--Using FindRoot
  • Previous by thread: Re: random 3D object consisting of cuboids
  • Next by thread: RE: random 3D object consisting of cuboids