Hi Carsten,
There was an info missing... sorry.. I have a quad list.. so, the two
triangles I use are actually created from the quad... so, the quad i+1
actually has two vertices in common with the quad i.
I might be wrong, but since the problem does not occurs under linux, my
guess is there is some kind of numeric issue related to some picking
tolerance or something like that under windows... is that a possibility? Is
there anything different under windows?
Thanks
[]s
On Wed, Nov 18, 2009 at 2:45 PM, Carsten Neumann <[email protected]>wrote:
> 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
>
------------------------------------------------------------------------------
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