Brandon, Thanks a lot! It works very well.
Alejandro > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:JAVA3D-INTEREST@;JAVA.SUN.COM]On Behalf Of Brandon > Sent: Monday, November 11, 2002 5:14 PM > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] Text3D size and extrusion > > > The following code worked for me (made it larger and > changed the font extrusion): > BranchGroup objRoot = new BranchGroup(); > Font3D yF3D = new Font3D(new Font("Serif", Font.BOLD, > 1), new FontExtrusion(new Line2D.Double(0, 0, .02, > 0))); > Text3D xT3D = new Text3D(yF3D, "X", new Point3f(0.0f, > 0.0f, 0.0f)); > Shape3D shxT3D = new Shape3D(xT3D); > Transform3D t3d = new Transform3D(); > t3d.setScale(5.0); > TransformGroup myTransform = new TransformGroup(t3d); > myTransform.addChild(shxT3D); > objRoot.addChild(myTransform); > > --- Alejandro Allievi <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I checked the archives and was unable to find an > > answer. My question is on > > this code > > > > Font3D yF3D = new Font3D( new Font( "Serif" , > > Font.BOLD , 1 ) , new > > FontExtrusion() ); > > Text3D xT3D = new Text3D( yF3D , "X" , new Point3f( > > 0.0f,0.0f,0.0f) ); > > Shape3D shxT3D = new Shape3D( xT3D ); > > myTransform.addChild( shxT3D ); > > > > creates a Text3D string "X" that is 1 meter high. > > > > Is it possible to make the size of the Text3D > > smaller than 1 meter? I tried > > setScale with no luck. > > > > Is it possible to make the extrusion smaller than > > the default from 0.0 to > > 0.2? > > > > Thanks for any help! > > > > Alejandro > > > > > ================================================================== > ========= > > 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". > > > __________________________________________________ > Do you Yahoo!? > U2 on LAUNCH - Exclusive greatest hits videos > http://launch.yahoo.com/u2 > > ================================================================== > ========= > 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". > =========================================================================== 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".
