rem: size->addValue(Vec3f(s,0,0));
add: size->push_back(Vec3f(s,0,0));
context: int main(int argc, char **argv){    // OSG init    osgInit(argc,argv);    // GLUT init    int winid = setupGLUT(&argc, argv);    // the connection between GLUT and OpenSG    GLUTWindowPtr gwin= GLUTWindow::create();    gwin->setId(winid);    gwin->init();    // create the scene    NodePtr scene = Node::create();    ParticlesPtr particles = Particles::create();    beginEditCP(scene);    scene->setCore( particles );    endEditCP(scene);    UInt32 count = 100;        if (argc > 1)    {        count = atoi(argv[1]);    }        beginEditCP(particles);    GeoPositions3fPtr pnts = GeoPositions3f::create();    particles->setPositions( pnts );    MFPnt3f* p = pnts->getFieldPtr();    beginEditCP(pnts);    UInt32 i;    for(i = 0; i < count; ++i)    {        Pnt3f pnt(osgrand(),osgrand(),osgrand());        p->addValue(pnt);            }    endEditCP(pnts);    GeoColors3fPtr cols = GeoColors3f::create();    particles->setColors( cols );    beginEditCP(cols);    for(i = 0; i < count; ++i)    {        cols->getFieldPtr()->addValue( Color3f(osgrand(),osgrand(),osgrand()) );    }    endEditCP(cols);    MFVec3f *size = particles->getMFSizes();    for(i = 0; i < count; ++i)    {        Real32 s=osgrand()/10.f;        size->addValue(Vec3f(s,0,0));    }         endEditCP(particles);    SimpleTexturedMaterialPtr tm;    tm = SimpleTexturedMaterial::create();    UChar8 imgdata[] =        {  255,0,0,  255,0,0,  255,0,255,           255,0,0,  255,0,0,  255,0,255 };    Image image;    if (argc > 2)    {        image.read(argv[2]);    }    else    {        image.set(Image::OSG_RGB_PF, 3, 2, 1, 1, 1, 0, imgdata);    }        beginEditCP(tm);    tm->setDiffuse( Color3f( 1,1,1 ) );    tm->setLit( false );    tm->setImage( &image );    tm->setEnvMode( GL_MODULATE );        BlendChunkPtr bl=BlendChunk::create();        beginEditCP(bl);    bl->setSrcFactor(GL_SRC_ALPHA);    bl->setDestFactor(GL_ONE_MINUS_SRC_ALPHA);    bl->setAlphaFunc(GL_EQUAL);    bl->setAlphaValue(1);       endEditCP(bl);       tm->addChunk(bl);        endEditCP(tm);    particles->setMaterial( tm );    // create the SimpleSceneManager helper    mgr = new SimpleSceneManager;    // tell the manager what to manage    mgr->setWindow(gwin );    mgr->setRoot  (scene);    // show the whole scene    mgr->showAll();    mgr->setHighlight(scene);            // GLUT main loop    glutMainLoop();    return 0;}