Hi Weylin,
Thanks a lot, it works!
I also don't like this very much, but anyway we can do it.
Thanks again, have a nice day!
Tomohiro
At 13:14 99/03/19 -0600, Weylin Debetaz wrote:
> I had the same problem that you describe but I had not isolated it to the 'i'
>character. When I
> started getting the error, I assumed the Java3D team had taken away the ability to
>set a null
> FontExtrusion in the Font3D constructor. My fix to this was to set a very thin
>extrusion with the
> following call.
>
> Font3D font = new Font3D(new Font("Arial", Font.PLAIN, 1),
> new FontExtrusion(new java.awt.geom.Line2D.Double(0.0,0.0,0.01,0.0)));
>
> This works but I would much rather use a null FontExtrusion.
>
> Weylin
>
> Tomohiro Koike wrote:
>
> > 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/
>
> 復元された添付ファイル:"C:\home\tkoike\Eudora\attach\weylin5.vcf"
>
/* written by Koike,T. */
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/