Try something like this:

averageGeom->getOrCreateStateSet()->setAttribute( new osg::Point( 3.0f ),
osg::StateAttribute::ON );


Glenn Waldron : Pelican Mapping : http://pelicanmapping.com :
+1.703.652.4791


On Thu, Nov 20, 2008 at 5:02 PM, Ruqin Zhang <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I couldn't find any function to set the point size, can anyone help? Here
> is the code:
>
> osg::ref_ptr<osg::Geometry> averageGeom = new osg::Geometry();
> averageGeom->addPrimitiveSet(new osg::DrawArrays(osg::PrimitiveSet:POINTS,
> 0, averageArray->size()));
>
> In this way, it will draw the points based on default size. While, is there
> any function
> that I can change the size to what I want? Thanks a lot!
>
> Ruqin
>
> _______________________________________________
> 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

Reply via email to