[osg-users] Polytopes limited to 32 planes

Robert Osfield robert.osfield at gmail.com
Thu Sep 21 01:27:47 PDT 2017


Hi Antoine,

On 20 September 2017 at 17:15, Antoine Rennuit <antoinerennuit at hotmail.com>
wrote:

> Hi all,
>
> There seems to be a maximum of 32 osg::Plane that can be added to a
> osg::Polytope for intersection computations. The osg::Plane beyond 32 are
> not checked against.
>
> Is there a reason for this?
>

I don't recall the details, but most likely down to a uint being used as
mask internally.

I'd be cautious about expanding it beyond this, checking more than 32
planes is going to be pretty expensive, if you are getting to this level of
planes then I would expect that solving the task with a different
appropriate would probably be appropriate.  A custom technique may be the
most appropriate route.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170921/c22ef64c/attachment.htm>


More information about the osg-users mailing list