Hi Ben, Also, to change the line thickness, change the attribute of your line(s) by creating a new LineAttribute object and using the setLineWidth() method.
josh >>> [EMAIL PROTECTED] 03/03/03 05:04AM >>> Ben, If you don't have another solution yet, an easy way is to copy IntersectInfoBehavior.java from the demo/java3d/PickTest directory into your own. After, place the following code into your main program: IntersectInfoBehavior behavior=new IntersectInfoBehavior(yourCanvas, yourScene,0.01f); behavior.setSchedulingBounds(yourBounds); yourScene.addChild(behavior); It will give you all the info you want on the selected shapes, even more than that. Success, Dirk ----- Original Message ----- From: Ben Logan To: [EMAIL PROTECTED] Sent: Monday, March 03, 2003 12:08 AM Subject: [JAVA3D] Two Things: Line thickness and Picking Ok, firstly could someone please tell me how I go about setting the line thickness, here is the code lArray[i] = new LineArray(2, LineArray.COORDINATES | LineArray.COLOR_3); transGroup[i].setCapability(lArray[i].ALLOW_COLOR_WRITE); Point3f[] pts = new Point3f[2]; pts[0] = fromCD; // Start Point pts[1] = toCD; // End Point (arrow end) lArray[i].setCoordinates(0, pts); lArray[i].setColors(0, clrs); shapes[i].setGeometry(lArray[i]); transGroup[i].addChild(shapes[i]); addChild(transGroup[i]); Secondly, could someone please explain in simple terms, with some example code how to implement picking I cant make sense of the java tutorial stuff on it Basically I have a screen of spheres and when I click on one I want to display some text next to it Don't need any help with the display text bit, just determining what sphere has been clicked on Thanks in advance for any 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".
