MathGroup Archive 1998

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

Search the Archive

Re: Cuboid & RotateShape

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15199] Re: [mg15184] Cuboid & RotateShape
  • From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
  • Date: Tue, 22 Dec 1998 04:01:32 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

On Fri, Dec 18, 1998, Richard W. Klopp <rwklopp at unix.sri.com> wrote:

>How come Cuboid[] appears to be designed such that RotateShape doesn't
>work on it? The following doesn't do any rotation:
>
>RotateShape[
>         Graphics3D[Cuboid [{0.1,1,1}]],
>		Pi/4,0,0]
>
>The following is a workaround:
>
>RotateShape[
>      AffineShape[Polyhedron[Cube],{0.1,1,1}],
>                 Pi/4,0,0]
>
>RotateShape looks for Polygon, Line, or Point objects to rotate, so
>Cuboid must somehow not be made of those things. Is this correct? Is
>there a reason that Cuboid[] is designed this way?

Cuboid is a Graphics3D primitive, just as a Rectangle or Polygon are 2D
primitives. Thus it is not made up of anything but itself. What you
probably want is Cube which you can find in the package
<<Geometry`Polytopes` . Note that you display it with 
Show[Polyhedron[Cube]] (no need to wrap it in Graphicds3D !). You can
see that it is made up of polygons by evaluating
InputForm[Polyhedron[Cube]]

Andrzej Kozlowski
Toyama International University
JAPAN
http://sigma.tuins.ac.jp/
http://eri2.tuins.ac.jp/



  • Prev by Date: Re: Re: rician random number
  • Next by Date: Re: Cuboid & RotateShape
  • Previous by thread: Cuboid & RotateShape
  • Next by thread: Re: Cuboid & RotateShape