[osg-users] TriStripVisitor issue

Robert Osfield robert.osfield at gmail.com
Mon Nov 23 07:52:00 PST 2009


HI Stephan,

On Mon, Nov 23, 2009 at 2:31 PM, Stephan Kussmaul
<stephan.kussmaul at triangraphics.de> wrote:
> We found a bug those days in TriStripVisitor.cpp. I didn't really read your
> latest email, but this might be related to your precision issues:

What bug was this?  Could you explain?  Which version of the OSG?

>
> class WriteValue : public osg::ConstValueVisitor
> {
>   ...
>       // add those 3 lines
>       virtual void apply(const Vec2d& v) { _o << v; }
>       virtual void apply(const Vec3d& v) { _o << v; }
>       virtual void apply(const Vec4d& v) { _o << v; }
>   ...
> }
>
> class RemapArray : public osg::ArrayVisitor
> {
>   ...
>       // add those 3 lines
>       virtual void apply(osg::Vec2dArray& array) { remap(array); }
>       virtual void apply(osg::Vec3dArray& array) { remap(array); }
>       virtual void apply(osg::Vec4dArray& array) { remap(array); }
>   ...
> }

And these lines do what?  To address what issue?

Robert.


More information about the osg-users mailing list