Hi there,
Recently I added objects to PlatformGeometry but unable to pick them. I am
able to pick geometries in my scene but the same methods don't seem to
apply to picking a geometry in PlatformGeometry. Any ideas? Any tip/sample
of PlatformGeometry usage would be useful as well.
Thanks,
Kovalan
ps. The relevant code:
PlatformGeometry dashboard = buildDashboard();
PickCanvas pickCanvas = new PickCanvas(canvas3D, dashboard);
pickCanvas.setMode( PickTool.GEOMETRY );
pickCanvas.setTolerance(4.0f);
class MouseClicked extends java.awt.event.MouseAdapter {
public void mouseClicked(java.awt.event.MouseEvent e) {
super.mouseClicked(e);
PickResult[] results = null;
if ( e.getClickCount() == 1 ) {
try {
pickCanvas.setShapeLocation(e);
results = pickCanvas.pickAll();
}
catch ( Exception err ) {
err.printStackTrace();
System.out.println( "Err: Not pickable??" );
}
if ( results != null ) {
System.out.println( "Pickable!" );
}
else
System.out.println( "Not Picked!" );
}
When I click on the dashboard objects, the output is "Not Picked!".
===========================================================================
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".