<div dir="ltr">Hi Robert, <div><br></div><div>All ok in my side. </div><div><br></div><div>Thanks!! </div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-25 9:51 GMT+02:00 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jordi,<br>
<br>
Yesterday I checked in a couple of change, from the git log:<br>
<br>
<br>
$ git log<br>
commit 20ac472d1f7d85360714168d94e107<wbr>29c1f9ce8d<br>
Author: Robert Osfield <<a href="mailto:robert@openscenegraph.com">robert@openscenegraph.com</a>><br>
Date:   Wed May 24 19:40:08 2017 +0100<br>
<br>
    Moved OSG_USE_DEPRECATED_API from include/osg/Export to Cmake<br>
controlled include/osg/Config<br>
<br>
commit 8c54a4931975967022aba6ce92973a<wbr>d27def8e97<br>
Author: Robert Osfield <<a href="mailto:robert@openscenegraph.com">robert@openscenegraph.com</a>><br>
Date:   Wed May 24 19:39:36 2017 +0100<br>
<br>
    Replaced deprecated API usage<br>
<br>
commit a60aed70b58f2d1b95f5b8eecfd2a3<wbr>a583906661<br>
Author: Robert Osfield <<a href="mailto:robert@openscenegraph.com">robert@openscenegraph.com</a>><br>
Date:   Wed May 24 18:34:22 2017 +0100<br>
<br>
    Replaced DimensionMask naming with more appropriate PrimitiveMask nameing.<br>
<br>
commit a201b15648ce3bd5a34b96cb046c1e<wbr>8a6431bb4e<br>
Author: Robert Osfield <<a href="mailto:robert@openscenegraph.com">robert@openscenegraph.com</a>><br>
Date:   Wed May 24 16:02:29 2017 +0100<br>
<br>
    Added support for PolytopeIntersector::<wbr>setDimensionsMask.<br>
<br>
<br>
The new API naming is:<br>
<br>
        /// dimension enum to specify primitive types to check.<br>
        enum {<br>
            POINT_PRIMITIVES = (1<<0),      /// check for points<br>
            LINE_PRIMITIVES = (1<<1),       /// check for lines<br>
            TRIANGLE_PRIMITIVES = (1<<2),   /// check for triangles<br>
and other primitives like quad, polygons that can be decomposed into<br>
triangles<br>
            ALL_PRIMITIVES = ( POINT_PRIMITIVES | LINE_PRIMITIVES |<br>
TRIANGLE_PRIMITIVES )<br>
        };<br>
<br>
        /** Set which Primitives should be tested for intersections.*/<br>
        void setPrimitiveMask(unsigned int mask) { _primitiveMask = mask; }<br>
<br>
        /** Get which Primitives should be tested for intersections.*/<br>
        unsigned int getPrimitiveMask() const { return _primitiveMask; }<br>
<br>
The old API is now deprecated:<br>
<br>
#ifdef OSG_USE_DEPRECATED_API<br>
<br>
        enum {<br>
            DimZero = POINT_PRIMITIVES,    /// deprecated, use POINT_PRIMITIVES<br>
            DimOne = LINE_PRIMITIVES,      /// deprecated, use POINT_PRIMITIVES<br>
            DimTwo = TRIANGLE_PRIMITIVES,  /// deprecated, use POINT_PRIMITIVES<br>
            AllDims =  ALL_PRIMITIVES      /// deprecated, use ALL_PRIMITIVES<br>
        };<br>
<br>
        /** deprecated, use setPrimtiveMask() */<br>
        inline void setDimensionMask(unsigned int mask) {<br>
setPrimitiveMask(mask); }<br>
<br>
        /** deprecated, use getPrimtiveMask() */<br>
        inline unsigned int getDimensionMask() const { return<br>
getPrimitiveMask(); }<br>
#endif<br>
<br>
I have also change the way that OSG_USE_DEPRECATED_API is controlled,<br>
it used to be hard-wired into include/osg/Export, I have moved it into<br>
the cmake generated include/osg/Config header.  To enable/disable the<br>
deprecated API you just now need to use ccmake to toggle the<br>
OSG_USE_DEPRECATED_API.<br>
<br>
I also modified the osgkeyboardmouse example to set the PrimitiveMask<br>
and in my testing it looks like things are working fine.  Could you<br>
test this and let me know how it all works out in your usage case.<br>
<div class="HOEnZb"><div class="h5"><br>
Robert.<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jordi Torres<br><br><br></div></div>
</div>