Hello,
I sent this earlier, but got no response. Hopefully some Java3d wizards out
there will help me out :)
I'm trying to get the size of the 3d text I'm placing on the screen,
however, everytime I call getLower or getUpper, it returns 0. Any help
would would be appreciated. The code is simply as follows:
Font3D f3d = new Font3D(new Font(fontName, fontStyle, fontSize), new
FontExtrusion());
Text3D txt = new Text3D(f3d, text.toString());
txt.setCapability(txt.ALLOW_BOUNDING_BOX_READ);
Shape3D sh = new Shape3D();
sh.setGeometry(txt);
objTrans.addChild(sh);
BoundingBox bb = new BoundingBox();
txt.getBoundingBox(bb);
System.out.println(bb);
The output is: Bounding Box: Lower=0.0 0.0 0.0 Upper=0.0 0.0 0.0
Any ideas?
Regards,
James
===========================================================================
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".