The University of Queensland Homepage
UQ VisLab UQ VisLab

 Constructing a 3D String
445

Building Text Shapes
Constructing a 3D String

  • Use java.awt.Font to construct a 2D font

  • Use java.awt.Shape implementation (Line2D, GeneralPath, etc.) to define an extrusion shape

  • Construct a Text3D using the 2D font, the 2D extrusion shape, and a string

  • Insert the resultant Geometry into a Shape3D node