Farshid,

Thank you for your help...:)

-Shayne

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Farshid
Lashkari
Sent: Tuesday, September 11, 2012 11:28 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] LineSegmentIntersector question...

Hi Shayne,

Yes, the default is NO_LIMIT. I'm using it in version 2.9.12, but I
think I might have backported it from a newer version. Sounds like
you'll need to do an upgrade to get this feature.

Cheers,
Farshid


On Tue, Sep 11, 2012 at 10:25 AM, Tueller, Shayne R Civ USAF AFMC 519
SMXS/MXDEC <[email protected]> wrote:


        Just a follow on question to my previous email...
        
        Is this functionality of setting limits on intersection results
only
        found in later versions of OSG? I'm currently using OSG 2.9.11
and I
        can't find any support for this. I guess this would explain why
I asked
        the questions in the first place.
        
        If true, I need to upgrade to a later version like 3.0.1...
        

        -Shayne
        
        -----Original Message-----
        From: [email protected]
        [mailto:[email protected]] On Behalf Of
        
        Tueller,Shayne R Civ USAF AFMC 519 SMXS/MXDEC
        Sent: Tuesday, September 11, 2012 11:13 AM
        To: OpenSceneGraph Users
        Subject: Re: [osg-users] LineSegmentIntersector question...
        
        Farshid,
        
        Thanks much for the input and addressing my questions. That is
good news
        that the support is there.
        
        I'm assuming the default is NO_LIMIT. Is this true?
        
        Thanks,
        -Shayne
        
        -----Original Message-----
        From: [email protected]
        [mailto:[email protected]] On Behalf Of
Farshid
        Lashkari
        Sent: Tuesday, September 11, 2012 11:08 AM
        To: OpenSceneGraph Users
        Subject: Re: [osg-users] LineSegmentIntersector question...
        
        Hi Shayne,
        
        The base osgUtil::Intersector class supports setting the limits
on
        intersection results, using the setIntersectionLimit() method.
The
        current options are NO_LIMIT, LIMIT_ONE_PER_DRAWABLE, LIMIT_ONE,
        LIMIT_NEAREST.
        
        On Tue, Sep 11, 2012 at 9:47 AM, Tueller, Shayne R Civ USAF AFMC
519
        SMXS/MXDEC <[email protected]> wrote:
        
                1)      Does it support a feature of detecting a "hit"
and then
        returning without the need to compute all the intersections?
This would
        be sort of like a visibility test.
        
        Set the intersection limit to LIMIT_ONE
        
        
        
                2)      Does it have the ability to find the closest
        intersection without the need to compute all the intersections?
In other
        words, does it step along from the starting point of the line
segment
        until an intersection is found and then bail out?
        
        Set the intersection limit to LIMIT_NEAREST. This mode could be
        optimized more, but it will currently reject a subgraph if the
nearest
        point of the bounding sphere is further than the nearest hit. So
it can
        still provide significant savings in computation time.
        
        Cheers,
        Farshid
        
        
        
        
                3)      If it doesn't support these features, is it
possible to
        modify the LineSegmentIntersector to support these?
        
        
        
                I would think that having this capability would improve
        performance where applicable.
        
        
        
                Thanks for any input in advance...
        
        
        
                -Shayne
        
        
        
        
        
        
                _______________________________________________
                osg-users mailing list
                [email protected]
        
        
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
        g
<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.o
r g> 
        
        
        
        
        _______________________________________________
        osg-users mailing list
        [email protected]
        
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
        g
<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.o
r g> 
        _______________________________________________
        osg-users mailing list
        [email protected]
        
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
        


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to