Hi all,

I met a trouble with Text3D.
When I create an object of Text3D and atatch it to my scene,
an exception is thrown if I use letter 'i' in the source
string of Text3D object, like  this :

String string = "Test-i-Test";
Font3D font = new Font3D(new Font("Arial", Font.PLAIN, 1), null);
Text3D text3d = new Text3D(font, string);
Shape3D shape = new Shape3D(text3d, myAppearance);
myScene.add(shape);

If I delete the letter 'i' from the string "Test-i-Test" (or
any string), it works well.  Stack trace of the exception
thrown is :

Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 75
        at 
javax.media.j3d.GeometryArrayRetained.setCoordinate(GeometryArrayRetained.java:673)
        at javax.media.j3d.GeometryArray.setCoordinate(GeometryArray.java:266)
        at javax.media.j3d.Font3D.triangulateGlyphs(Font3D.java:367)
        at javax.media.j3d.Text3DRetained.updateTextXform(Text3DRetained.java:508)
        at javax.media.j3d.Text3DRetained.updateRenderData(Text3DRetained.java:482)
        at javax.media.j3d.Text3DRetained.setLive(Text3DRetained.java:681)
        at javax.media.j3d.Shape3DRetained.setLive(Shape3DRetained.java:459)
        ...

I tried to change Font, but I couldn't find any way to go.
Did anyone have same probrem yet?

My environment is :
        WinNT 4.0 / Java2 / Java3D 1.1.1

Help me if you have any work around.


Tomohiro Koike
Columbia Genome Center



/* written by Koike,T. */


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to