Re: random 3D object consisting of cuboids
- To: mathgroup at smc.vnet.net
- Subject: [mg69079] Re: random 3D object consisting of cuboids
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Wed, 30 Aug 2006 06:32:01 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <ed0rda$skc$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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 Well, the variable or parameter rcoord must be a list of three numbers as in the following examples: rcoord = {0, 0, 0}; Show[Graphics3D[Cuboid[rcoord]]]; rcoord := Table[Random[], {3}]; Show[Graphics3D[Table[Cuboid[rcoord], {20}]]]; rcoord = {{0, 0, 0}, {0, 0, 1}, {0, 1, 1}, {1, 1, 1}}; Show[Graphics3D[Cuboid /@ rcoord]]; HTH, Jean-Marc