Moin

> how to get a 3D point on any "java3D polygon" if we pick by using mouse
> click. i.e. i had to map the 2D point on 2D canvas to a 3D point on 3D
> canvas how to do that?

From the PickCanvas-doc:
<snip>
PickCanvas pickCanvas = new PickCanvas(canvas, scene);
pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO); 
pickCanvas.setTolerance(4.0f);

Then for each mouse event: 

pickCanvas.setShapeLocation(mouseEvent);
PickResult[] results = pickCanvas.pickAll();
<snap>


PickIntersection PICKINTER =  results[0].getIntersection(0) ;

from the PickIntersection-doc:
<snap>
Point3d getClosestVertexCoordinates() 
          Get coordinates of closest vertex (local)

 Point3d getClosestVertexCoordinatesVW() 
          Get coordinates of closest vertex (world)
<snip>


You will have to check for length-0 or null PickResult-arrays and you have to 
set some capabilities on the shapes and geometrie-arrays.


have fun.
Gilson Laurent

===========================================================================
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".

Reply via email to