[osg-users] Possible PolytopeIntersector bug?

Robert Osfield robert.osfield at gmail.com
Wed Oct 4 05:31:42 PDT 2017


Hi Jordi,

On 4 October 2017 at 10:49, Jordi Torres <jtorresfabra at gmail.com> wrote:

> Sorry I sent the mail without finishing it.
>
> As I was saying...
>
> In previous versions it was some code checking that.
> https://github.com/openscenegraph/OpenSceneGraph/
> blob/OpenSceneGraph-3.4/src/osgUtil/PolytopeIntersector.cpp#L300
>
> Am I missing something?
>

The new implementation works differently, it aims to take an input polygon
(the triangle as three src vertices) and trims this successively by
clipping it against each plane of the polytope.  If all the vertices are
clipped away then there is nothing left of the original polygon to
intersect with so returning false at this point is appropriate.

Is there a specific problem you've come across or are you just trying to
compare code before and after?

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171004/34e97663/attachment-0001.html>


More information about the osg-users mailing list