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/

Reply via email to