Hi,all:
I posted this question before but no one answered it yet, I really want
to know the answer, so I post it again to hope anyone can help me about it.
The question is: When I load the VRML file, how can I get
the bounding box of the object in the VRML file? I mean if I can query the
minimum X, maxium X, minimum Y, minimum Y,minimum Z, maximum Z value from
Java3D about the VRML file, is there any method from Scene(or other class)
to query such parameters? something like :
Scene s=loader.load("myfile.wrl");
s.getMinimumX();?
s.getMaximumY(); etc?
I wonder if there is an automatic way of querying the bounding box of the
object in VRML file without opening to see it, if there are some files from
network URL,(you may not open the file to see it in advance to know its
bounding box), which are loaded into Java3D, I want to query the bounding
box from Java3D program so that I can transform it to other positions such
as the origin or elsewhere I wish it to be.
The second question related to this is that:
After I load the VRML objects in the scene, how can I know any point's 3D
coordinate? suppose I use mouse to click any point in an object, I want the
coordinate of that point shown on the screen, showing its X,Y,Z coordinate.
How can I get this parameters?
Thanks for any input!
best wishes,
David
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
===========================================================================
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".