Hi,
I have a problem with picking lines. When picking a line I do not get a
"real hit" (see code under). The only thing a manage to do is pick the
surronding bound no matter how perfect my pick is. This is a problem when I
am picking lines that is close to each other because I do not know wich line
I have picked. Any guiding suggestions?
Thanks
Todda
SceneGraphPath paths = _branchgroup.pickAny(_ray);
if(paths==null){
System.out.println("No hits");
}
else{
Node shape = paths.getObject();
double dist[] = {0.0};
boolean isRealHit = ((Shape3D) shape).intersect(paths, _ray, dist);
if(isRealHit){
Point3d point = new Point3d();
point.scaleAdd(dist[0], _rayDir, _rayOrg);
System.out.println(" real hit at " + point );
}
}
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
===========================================================================
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".