[osg-users] [forum] bug in ShapeDrawable.cpp

2011-11-11 Thread Peter Wraae Marino
Hi,

void PrimitiveShapeVisitor::createCylinderBody(unsigned int numSegments, float 
radius, float height, const osg::Matrix matrix)

has a bug.. it doesn't transform the last two points:

 // do last point by hand to ensure no round off errors.
_functor.vertex(osg::Vec3(r,0.0f,topz));
_functor.vertex(osg::Vec3(r,0.0f,basez));

missing * matrix

osg version 2.8.3

Thank you!

Cheers,
Peter

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43827#43827





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [forum] bug in ShapeDrawable.cpp

2011-11-11 Thread Robert Osfield
Hi Peter,

This bug has been fixed in 3.0.0.

Thanks,
Robert.

On 11 November 2011 09:29, Peter Wraae Marino marino.pe...@gmail.com wrote:
 Hi,

 void PrimitiveShapeVisitor::createCylinderBody(unsigned int numSegments, 
 float radius, float height, const osg::Matrix matrix)

 has a bug.. it doesn't transform the last two points:

  // do last point by hand to ensure no round off errors.
        _functor.vertex(osg::Vec3(r,0.0f,topz));
        _functor.vertex(osg::Vec3(r,0.0f,basez));

 missing * matrix

 osg version 2.8.3

 Thank you!

 Cheers,
 Peter

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=43827#43827





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org