Lan,

A quick read of the JavaDoc will show you:

void setScale(Vector3d scale)

Sets the possibly non-uniform scale component of the current transform; any
existing scale is first factored out of the existing transform before the
new scale is applied.

Sincerely,

Daniel Selman

Author - "Java 3D Programming"
http://www.manning.com/selman

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Lan Wu-Cavener
Sent: Friday, March 29, 2002 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Change j3d primitive size on fly - possible?


Thanks! Cristian,
It looks like I can not scale the cone one direction in dependent from the
other direction. the setScale is limited to uniform scale matrix in the
specs.



At 05:23 PM 3/29/2002 +0200, you wrote:
>Add your cone to a TransformGroup, set the capabilities of the
TransformGroup
>
>tg.setCabability(TransformGroup.ALLOW_TRANSFORM_WRITE);
>
>And then, when the branchgroup becomes live, you can use something like:
>
>Transform3D t=new Transform3D();
>tg.getTransform(t);
>t.setScale(....float...);
>tg.setTransform(t);
>
>Cristian
>
>
>
><<Hi, dear all:
>
>Is there any way to change the size of a Cone object in a live scene
>without using detaching/retaching BranchGroup?
>I mean like using Geometry By  Reference, you can change vertex corrdinates
>on fly without adding the object under a BranchGroup, here I want to change
>the height and radius of the cone.
>
>I would like to confirm this conclusion. So that I will start another
>approach to model my objects.
>
>Thanks much in advance!>>

Lan Wu-Cavener
Research Associate and Programmer
Dept. of Landscape Architecture

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to