Package javax.media.j3d

Examples of javax.media.j3d.OrientedShape3D


        String fontName = "Serif";
        Font3D f3d = new Font3D(new Font(fontName, Font.PLAIN, 2),
            new FontExtrusion());
        Text3D txt = new Text3D(f3d, label,
            new Point3f(2f,2f,0));
        OrientedShape3D textShape = new OrientedShape3D();
        textShape.setGeometry(txt);
        textShape.setAppearance(grayLook);
//        textShape.setAlignmentAxis( 0.0f, 1.0f, 0.0f);
        textShape.setAlignmentMode(OrientedShape3D.ROTATE_ABOUT_POINT);
        textShape.setRotationPoint(new Point3f());
//        objScale.addChild( textShape );
//        BranchGroup bg = new BranchGroup();
//        bg.addChild(textShape);
//        branch.addChild(bg);
       
View Full Code Here

TOP

Related Classes of javax.media.j3d.OrientedShape3D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.