       Re: Convex random polyhedrons

• To: mathgroup at smc.vnet.net
• Subject: [mg85213] Re: [mg85200] Convex random polyhedrons
• From: Takashi Yoshino <tyoshino at toyonet.toyo.ac.jp>
• Date: Sat, 2 Feb 2008 03:27:45 -0500 (EST)
• References: <200802010721.CAA10045@smc.vnet.net>

```It is easy to obtain the number of points from the results of ConvexHull3D.

rp = Table[{RandomReal[], RandomReal[], RandomReal[]}, {20}];

polytope = ConvexHull3D[rp];

List @@@ polytope // Flatten // Partition[#, 3] & // Union // Length

Steve Gray wrote:
> 	Does anyone have a handy way in Mathematica of making convex random
> polyhedrons in 3D? The number of points should be a parameter. The
> points do not have to be evenly spaced (obviously) and if up to say
> 10% of them are not quite convex, that's ok. I have some ideas but
> maybe it's already been done.
> 	I know about ConvexHull3D.m and maybe that's the best way, but
> it doesn't return the number of points, which must be computed. That
> seems inefficient because the number of points must be exact.
>
> Steve Gray
>

--
Takashi Yoshino
Katachi Wiki: \$BC/\$b\$,;22C\$G\$-\$k7A\$N2J3X%[!<%`%Z!<%8(B
http://www.random-walk.org/katachi/
katachiML: \$B7A\$N2J3X\$K\$D\$\$\$F5DO@\$9\$k%a!<%j%s%0%j%9%H(B
http://www.random-walk.org/katachi/index.php?KatachiML

```

• Prev by Date: Re: Convex random polyhedrons
• Next by Date: Re: Drawing on top of the image
• Previous by thread: Convex random polyhedrons
• Next by thread: Re: Convex random polyhedrons