Hi Vincent,
On Mon, 2004-11-08 at 18:48, VIOU Vincent wrote:
> Hi,
>
> I have some intersections to controls but i just want test the intersect
> method "didHit" with the bounding box of geometries. How can i say to opensg
> to
> test only intersection with the bounding box ?
The IntersectAction per se doesn't support that.
But given that Actions keep a local copy of their callbacks, you can
create an IntersectAction and just overwrite the Geometry callback with
one that intersects the bbox. Take a look at testIntersectAction.cpp for
some hints how to do that, you just need to use
IntersectAction::registerEnterFunction on your Action instance to
replace the callback just for this action.
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users