Below is a code that ive tried. That works fine for Spheres. But i need Cylinder and Box primitives too. Because Cylinder and Box have more than one Shape sides, i cant get the Geometry. Do you have any idea?
Transform3D myLastShapeLocation=new Transform3D(); myShapeLocation.setTranslation(new Vector3f(0.1f,0.1f,-0.3f)); TransformGroup myTrans=new TransformGroup(myShapeLocation); Sphere mySphere=new Sphere(0.3f); Geometry myGeo=mySphere.getShape().getGeometry(); OrientedShape3D myLastShape=new OrientedShape3D(); myLastShape.setGeometry(myGeo); myLastShape.setAppearance(apText); myLastShape.setConstantScaleEnable(true); objSpin.addChild(myTrans); =========================================================================== 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".