Re: Intersection of two triangles
Posted by philjord on Aug 14, 2017; 5:49am
URL: https://forum.jogamp.org/Intersection-of-two-triangles-tp4038124p4038127.html
Saeid,
The collision behavior can be set to USE_GEOMETRY using the speedHint, which as you say is the only useful options, the bounds are almost always to course too be wanted.
I agree the PickTool does more than you need, and if you want to run a bunch of collision it probably won't be maximum speed.
If you do do your own intersection code, don't forget to run a gross comparison using the bounds first then the fine grain using the geometry data.
If you are using 1.6 then you don't need to set the *_READ capabilities as at some point in Java3D's history a default read capabilities got shoved in, possibly just as it was being made open source, so most read capabilites are turned on by default. This has killed the biggest advantage of a retained mode scene graph, the compilation of branches. So turning them on will have no impact on performance. In 1.7 where this is a flag to not use them by default, in cases where scene graphs are simple you can get amazing performance improvements. But that's not relevant here.
Phil.