Re: 2D to 3D graphics?
- To: mathgroup at smc.vnet.net
- Subject: [mg31329] Re: 2D to 3D graphics?
- From: Mark Westwood <mark at galeawestwood.freeserve.co.uk>
- Date: Sun, 28 Oct 2001 03:07:10 -0500 (EST)
- References: <9rb87l$5m4$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Ingolf,
Something like:
twoDto3D[graphicObject] := Replace[graphicObject, {x_, y_} -> {x, y, 0},
{-2}]
works on things like Points and Lines, but may be too simple for more
complicated objects. Hope it points you in the right direction for
those too.
Regards
Mark Westwood
Pilot Solutions Ltd
Ingolf Dahl wrote:
> Dear Mathgroup,
> Is there any way to transform a general (2D) Graphics objects to a
> Graphics3D object (with zero z coordinates)? I have a feeling that it is
> either very simple or very complicated. Have I missed something in the Book?
>
> Then I of course also want to be able to rotate the graphics in three
> dimensions, by RotateShape, but that is maybe to ask too much.
>
> I have experimented a bit with StackGraphics, since it seems to take 2D
> graphics as input, and 3D as output, but have not yet managed to manipulate
> the output of StackGraphics in any way.
>
> Ingolf Dahl
> Chalmers University
>
>