Hi Ishwari,
                To do that first u have to pick that particular object and then u can apply scale to that.
Amit Jindal
-----Original Message-----
From: ishwari [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 7:15 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Zooming

Hi,
 
Thanks for ur reply. But I don't want the mouse zoom feature. I wish to do zoom window by selecting a portion of the scene graph and scaling them. Got any idea on this?
 
Regards,
ishwari
----- Original Message -----
Sent: Tuesday, June 19, 2001 9:23 PM
Subject: Re: [JAVA3D] Zooming




Hi,

I think what you need is a MouseZoom object.
Set the TransformGroup object as the argument
to  the MouseZoom object.

MouseZoom zoomObj = new MouseZoom();
zoomObj.setTransformGroup(t3d);
zoomObj.setSchedulingBounds(    new BoundingSphere());

 After this, adding your Shape3D objects to t3d should
do the work.

Regards,

Anand





ishwari <[EMAIL PROTECTED]> on 06/19/2001 04:43:42 PM

Please respond to Discussion list for Java 3D API <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Anand PILLAI/dassault-systemes)
Subject:  [JAVA3D] Zooming



Hi,

I have a scenegraph object containing some lines, circles, arcs, texts etc. I
wish to do some zooming and hence I did the follg to the scenegraph's
transformgroup

    Transformgroup t3d;
  t3d.setTranslation(new Vector3d(0,0,0));
  t3d.setScale(scale);
  t3d.setTranslation(new Vector3d(test.x,test.y,test.z));//screen origin

  scenegraph.transformgroup.setTransform(t3d);


With this I am able to zoom line and circle. But the arc, text etc are not
zoomed but only translated.. Can anyone tell me whether what I did is correct or
not? If yes, why it is not zooming all the objects? Is my approach correct?

Regards,
ishwari


Reply via email to