Hi Robert, You've probably refactored this quite a bit already but have found a bug, a few optimzations, and a question:
Bug: PolytopeFunctor.cpp intersectSegmentPlane(), the checks on the D and N values should use absolute values Optimizations: PolytopeFunctor::intersects(Vec3,Vec3) could add an extra parameter: bool checkPoints which tells it whether to call the intersects(Vec3) version, this is useful for: PolytopeFunctor::intersects(Vec3,Vec3,Vec3) first calls the single point intersects() then the double point intersects() with false as the checkPoints parameter: Question: Can you/anyone think of any (fast) way of handling the case when a triangle completely contains the polytope? I can post my diffs if you need them... Chris On 11/18/06, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Chirs, On 11/17/06, c sklu <[EMAIL PROTECTED]> wrote: > Ya, I kind of had to make the deadline for today so that's why I > didn't make it all too pretty. I'm also not sure how efficient it is. > But now that the basics are in there there can be some more thought on > a better way to do things. But for now I have to work for yet another > deadline for monday 8-| "Release early, release often" "Its better have a solution, than no solution" I could go on :-) As long as piece of work is going in the right direction I'm happy, even if its not perfect.. yet :-) Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
