Hello,
I need to find out the exact size of a Text2D object, but when I
examine the underlying Geometry (it is a QuadArray) i find that
its values are always powers of 2 (e.g. 0.125, 0.25, 0.5, 1.0, 2.0...)
Text2D text2d = new Text2D(zeile, color, "Sans", size, 0);
QuadArray g = (QuadArray) text2d.getGeometry();
for (int i=0; i<4; i++) {
Point3f p = new Point3f();
g.getCoordinate(1, p);
System.out.println(p);
}
The same problem of inaccuracy appears if I check the bounds.
How can I find out the exact size of a Text2D node?
Henrik
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/