> Hi Kevin, Dug,
>
> Java3D. My proposal is to supply the coordinates of the hitten triangle in
> method intersect(SceneGraphPath path, PickRay pickRay, double[] dist) of
> Shape3D in member dist.
> I also encountered another thing: the garbage collector gets really stressed
> when you try to pick an object. Even more by continuous picking (moving the
> mouse pointer over the surface). It seams that picking is producing a big
> amount of objects that aren't used anymore. I remember the discussion here
> about some code in the com.sun...package.
> IMHO there is place for some optimizations using references instead of
> creating new objects ?

Just lately I've created a simple class for searching itersected triangle.
(as no one responed to my question about the some problem few day earlier)
Its quite fast.
Maybe someone can make it more generally usable.
Current version takes just TringleArray (from the picked shape3d), EyePoint
and RayDirection

Return the point and the distance.

Hope this help:

http://www.fi.muni.cz/~kabi/TriangleIntersect.java

--
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
   Zdenek Kabelac  http://i.am/~kabi/ [EMAIL PROTECTED] {debian.org; fi.muni.cz}

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