Re: Simple Problem with Polyhedron::Hexahedron

• To: mathgroup at smc.vnet.net
• Subject: [mg71224] Re: Simple Problem with Polyhedron::Hexahedron
• From: "OtavioCC" <otavio at gmail.com>
• Date: Fri, 10 Nov 2006 06:39:02 -0500 (EST)
• References: <eiuroh\$ghn\$1@smc.vnet.net>

```Hi, I've found the answer :)

>From Mathematica manual: "The polyhedra are by default centered at the
origin with a unit distance from the origin to the midpoint of the
edges." So I need 1/2 = h^2 h = Sqrt[0.5]. The correct way to plot an
Hexahedron (or a Cube) is:

<< Graphics`Polyhedra`

des = Polyhedron[Hexahedron, {0, 0, 0}, Sqrt[0.5] {10, 5, 3}];
Show[des, Axes -> True, AxesLabel -> {"x", "y", "z"}];

Bye.

On Nov 9, 7:18 am, "OtavioCC" <ota... at gmail.com> wrote:
> Hi,
>
> I've a simple question but I didn't found an answer. I'm trying to draw
> a Hexahedron with dimensions (10, 5, 3), centered on {0, 0, 0}. So,
> I've been doing this:
>
> << Graphics`Polyhedra`
>
> des = Polyhedron[Hexahedron, {0, 0, 0}, {10, 5, 3}];
> Show[des, Axes -> True, AxesLabel -> {"x", "y", "z"}];
>
> But it's not working, and the resultant Hexahedron don't have this
> dimensions...
>
> Thanks.

```

• Prev by Date: Re: Singularity-handling transformation employed by NIntegrate
• Next by Date: Re: I could do with a list of geometric shape names can anyone help????
• Previous by thread: Re: Simple Problem with Polyhedron::Hexahedron
• Next by thread: Singularity-handling transformation employed by NIntegrate