AWT Shape Extruder inclusive String3D


AWT Shape Extruder 3.0 converts Java 2D™ Shapes and Strings to a GeometryArray for Java 3D™.


AWTShapeExtruder3.0.zip includes binaries, apidoc, sources, and license. (146 KB) [download]

Sample programs on this page require: Java Plug-in JRE™ Version 5.0, Java 3D™ 1.5.2.


Image

Sample Shapes 1

Arc2D arcPieYel = new Arc2D.Float(0, 0, 1, 1, 45, 270, Arc2D.PIE)
Arc2D arcPieRed = new Arc2D.Float(0, 0, 1, 1, 315, 90, Arc2D.PIE)



Image

Sample Shapes 2

Font font = new Font("Bitstream Vera Serif", Font.BOLD, 50);
char[] chars = {'j', 'i', 'm'};
Shape shapeGlyph = AWTShapeExtruder.createAWTShape(chars, font, true);

AffineTransform glyphTrans = new AffineTransform();
glyphTrans.setToTranslation(10, 18);

Shape shapeGlyphT = glyphTrans.createTransformedShape(shapeGlyph);
Area areaGlyph = new Area(shapeGlyphT);

Rectangle2D rectGlyph = new Rectangle2D.Float(0, 0, 105, 65);
Area areaRectGlyph = new Area(rectGlyph);

areaRectGlyph.subtract(areaGlyph);


Image

Sample Program: String3D Alignments

Alignments and paths of String3D geometries.

String3DAlignments1.0.zip   [download]



Image

Sample Program: String3D Fan

3D geometry generated from class String3D.

String3DFan1.0.zip   [download]



Image

Sample Program: String3D Outline

Sample program requires font 'Lucida Sans'.

3D outline geometry generated from class String3D.

String3DOutline1.0.zip   [download]



Image

Sample Program: Curved Shape

Animated and extruded Bézier curve generated from class AWTShapeExtruder.

CurvedShape1.0.zip   [download]

 



Image

Sample Program: Curved Outline

Animated Bézier curve generated from class AWTShapeExtruder.

CurvedOutline1.0.zip   [download]

 



Image

Demo program: String3D Text3D Comparison

This demo visualizes the current state of non-straight-bevel shape extrusion for Text3D, String3D in Text3D-style mode, and String3D in default mode.

S3DT3DComparison1.1.zip   [download]