|
Have a
look at the IntersectTest demo in the demo/PickTest directory of the download.
It shows that you can use the methods::
Point3d eyePos = pickCanvas.getStartPosition
();
PickIntersection pi
= pickResult.getClosestIntersection (eyePos);
then
one of:
Point3d intPtVW =
pi.getPointCoordinatesVW();
Point3d intPt = pi.getPointCoordinates(); one
warning, however.... I have used this with an IndexedGeometry and the the
getPointCoordinates() method returns and odd x value which causes large
portions of the shape to not be pickable because the x value is outside of the
shape. The getPointCoordinatesVW() seems to return a correct value. I've sent
this to the people at Sun, who tell me a bug report has been filed. It seems to
work OK on non-indexedGeometry.
Cheers,
B.
-----------------------------
|
- [JAVA3D] Point Coordinates Marina Santana
- Re: [JAVA3D] Point Coordinates Julian Scheid
- Re: [JAVA3D] Point Coordinates Barry Walsh
- Re: [JAVA3D] Point Coordinates Marina Santana
- Re: [JAVA3D] Point Coordinates Olivier fillon
- Re: [JAVA3D] Point Coordinates Marina Santana
- Re: [JAVA3D] Point Coordinates David Hall�
