rem: cerr << "Geometry Points: " << hex << g1->getPositions() << endl; cerr << p->size() << " Points: " << endl;
add: std::cerr << "Geometry Points: " << std::hex << g1->getPositions() << std::endl; std::cerr << p->size() << " Points: " << std::endl;
context: int main (int argc, char **argv){    UInt32 i;    osgInit(argc, argv);        NodePtr  p1 = Node::create();    GeometryPtr g1 = Geometry::create();    GeoPositions3f::getClassType();    p1->setCore( g1 );    cerr << "Geometry Node: " << hex << (Geometry*) g1.getCPtr() << endl;    GeoPositions3f::PtrType pnts = GeoPositions3f::create();    GeoPositionsPtr pnt = pnts;    cerr << "Positions: " << endl;    cerr << "Dim:" << pnts->getDimension() << ", Format:"          << hex << pnts->getFormat() << dec         << ", Stride:" << pnts->getStride() << ", Data:"          << hex << pnts->getData() << dec          << ", getSize " << pnts->getSize()         << ", size " << pnts->size()         << endl;    g1->setPositions( pnts );    beginEditCP(g1, FieldBits::AllFields);    MFPnt3f *p = pnts->getFieldPtr();       // The p pointer is not MT-safe!!    // generic access    pnts->push_back( Pnt3f( -1, -1, -1) );    // via the property    pnts->getFieldPtr()->push_back( Pnt3f(  1, -1, -1) );    // via the field    p->push_back( Pnt3f( -1,  1, -1) );    p->push_back( Pnt3f(  1,  1, -1) );    p->push_back( Pnt3f( -2, -1,  1) );    p->push_back( Pnt3f(  1, -1,  1) );    p->push_back( Pnt3f( -2,  1,  1) );    p->push_back( Pnt3f(  1,  1,  1) );    endEditCP(g1, FieldBits::AllFields);        cerr << "Positions: " << endl;    cerr << "Dim:" << pnts->getDimension() << ", Format:"          << hex << pnts->getFormat() << dec         << ", Stride:" << pnts->getStride() << ", Data:"          << hex << pnts->getData() << dec          << ", Size " << pnts->getSize()         << ", size " << pnts->size()         << endl;    cerr << "Geometry Points: " << hex << g1->getPositions() << endl;    cerr << p->size() << " Points: " << endl;    for(i = 0; i < p->size(); i++ )    {        cerr << "Point " << i << " " << (*p)[i] << endl;    }    cerr << "Generic Access" << endl;    cerr << pnts->getSize() << " Points: " << endl;    for(i = 0; i < pnts->getSize(); i++ )    {        Pnt3f pp;        pnts->getValue(pp,i);        cerr << "Point " << i << " " << pnts->getValue(i) << " " << pp << endl;    }    cerr << "Geometry Points: " << hex << g1->getPositions() << endl;    Pnt3f mean = calcMean(*p);    cerr << "Mean " << mean << endl;    p1->updateVolume();    Vec3f center;    p1->getVolume().getCenter(center);    cerr << "Volume: center " << center << ", volume "         << p1->getVolume().getScalarVolume() << endl;    return 0;}