Hello Pablo,

Pablo Carneiro Elias wrote:
> after recently updating OSG from svn, we're experiencing a proble with 
> intersectAction (possibly) at windows:
> 
> we have a custom node which holds its own geometry. We've created our 
> own intersect method.. We run over all triangles performing the above:
> 
> ...
> ... access the intersecting line from intersect action
> ...
> 
> ... access the quad i and its vertices....
> ...
> 
> if( ia->getLine().intersect( p1, p2, p3, t, &norm ) ||
> 
> ia->getLine().intersect( p2, p3, p4, t, &norm ) )

hm, this looks strange, assuming your p1,...,p4 are in counter clockwise 
order you are not testing the correct triangles:

    p1---p4      p1               p4
    |    |       | \            / |
    |    |       |   \         /  |
    p2---p3      p2---p3     p2---p3


> But when trying to pick, only the right part of the geometry is picked, 
> but picking at the left side has no effect.. If we rotate the object, 
> the exact opposite occurs..
> 
> The strange thing is that the problem does not occurs under linux...

hm, the OS should not make a difference, strange.

        Cheers,
                Carsten


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to