Hi all,
I'm trying to create a ScaleInterpolator that resizes a cylinder in 1 dimension only
(ie. its length) & I'm not sure if it can be done. The posting below describes how to
perform a one-off scaling of this type (ie. not dynamic). Is it possible to
dynamically scale in 1 dimension?
Many thanks in advance,
Tom Richards
University of Bath, UK
-----Original Message-----
From: Christian Petermann [SMTP:[EMAIL PROTECTED]]
Sent: Friday, May 07, 1999 11:50 AM
To: Hua Cao
Cc: [EMAIL PROTECTED]
Subject: Re: [java3d] Scale up/down on one dimension only
Use setScale(Vector3d scale) on a Transform3D, then use setTransform from the
TransformGroup to add the Transform3D.
eg:
..
Transform3D t3d = new Transform3D();
t3d.setScale(new Vector3d(1,0.5,0.4);
tg.setTransform(t3d);
..
Hope this helps,
Chris.
On Fri, 7 May 1999, Hua Cao wrote:
> Hi, everyone,
>
> As I know, the size of a graph object can be scaled up/down by calling
> the set() method of the TransformGroup. Can I do the same manipulation
> on one dimension (X or Y or Z) only? How?
>
> Thanks in advance.
>
> Hua Cao
>
>
> --
> Hua Cao
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/