rem: static void renderHull( const vector<osg::Pnt3f> &vertices, const vector<osg::Vec3f> &normals, const vector<osg::Vec2f> &texCoords, bool buildNormal, bool buildTexCoord, bool uWrap, bool vWrap, UInt32 uValues, UInt32 vValues, GeoPositions3fPtr   &geoVertices, GeoNormals3fPtr     &geoNormals, GeoTexCoords2fPtr   &geoTexCoords, GeoPLengthsUI32Ptr  &geoLengths, GeoPTypesUI8Ptr     &geoTypes )
add: static void renderHull(const std::vector<Pnt3f>      &vertices, const std::vector<Vec3f>      &normals, const std::vector<Vec2f>      &texCoords, bool                buildNormal, bool                buildTexCoord, bool                uWrap, bool                vWrap, UInt32              uValues, UInt32              vValues, GeoPositions3fPtr  &geoVertices, GeoNormals3fPtr    &geoNormals, GeoTexCoords2fPtr  &geoTexCoords, GeoPLengthsUI32Ptr &geoLengths, GeoPTypesUI8Ptr    &geoTypes)
context: static void renderHull( const vector<osg::Pnt3f> &vertices,                        const vector<osg::Vec3f> &normals,                        const vector<osg::Vec2f> &texCoords,                        bool buildNormal,                         bool buildTexCoord,                        bool uWrap,                        bool vWrap,                        UInt32 uValues,                        UInt32 vValues,                        GeoPositions3fPtr   &geoVertices,                        GeoNormals3fPtr     &geoNormals,                        GeoTexCoords2fPtr   &geoTexCoords,                        GeoPLengthsUI32Ptr  &geoLengths,                        GeoPTypesUI8Ptr     &geoTypes ){  GeoPositions3f::StoredFieldType  *geoVerticesPtr = geoVertices->getFieldPtr();  GeoNormals3f::StoredFieldType    *geoNormalsPtr  = geoNormals->getFieldPtr();  GeoPLengthsUI32::StoredFieldType *geoLengthsPtr = geoLengths->getFieldPtr();  GeoPTypesUI8::StoredFieldType    *geoTypesPtr   = geoTypes->getFieldPtr();    /* calculate spine and crosssection lengths */  UInt32 tot_sp_len = uWrap ? uValues + 1 : uValues;  UInt32 tot_cs_len = vWrap ? vValues + 1 : vValues;    beginEditCP(geoLengths);  beginEditCP(geoTypes);      UInt32 k,j;  UInt32 il,iu;  UInt32 ilc,iuc;  FDEBUG(("drawing to OpenSG\n"));  /* Maybe striping along the spine is worth to go for */  for(k = 0; k < tot_sp_len - 1; k++)    {      beginEditCP(geoVertices);      /*initialize index of first points of line i*/      il = k*vValues;      iu = ((k + 1) % uValues)*vValues;            geoLengthsPtr->push_back(2*tot_cs_len);      geoTypesPtr->push_back(GL_TRIANGLE_STRIP);            ilc = il;      iuc = iu;      /* write vertices to geometry */            for(j = 0;j < vValues; j++)                        {           geoVerticesPtr->push_back(vertices[ilc++]);          geoVerticesPtr->push_back(vertices[iuc++]);        }            if(vWrap)        {           iuc = ((k + 1) % uValues)*vValues;          ilc = k*vValues;                    geoVerticesPtr->push_back(vertices[ilc]);          geoVerticesPtr->push_back(vertices[iuc]);        }            endEditCP(geoVertices);            /* write normals to geometry if necessary */            if(buildNormal)        {          beginEditCP(geoNormals);          ilc = il;          iuc = iu;                    for(j = 0;j < vValues; j++)                      {               geoNormalsPtr->push_back(normals[ilc++]);              geoNormalsPtr->push_back(normals[iuc++]);            }                    if(vWrap)          {             iuc = ((k + 1) % uValues)*vValues;            ilc = k*vValues;                        geoNormalsPtr->push_back(normals[ilc]);            geoNormalsPtr->push_back(normals[iuc]);          }          endEditCP(geoNormals);        }      /* write texture coordinates to geometry if necessary */      if(buildTexCoord)        {          beginEditCP(geoTexCoords);          il = k*tot_cs_len;          iu = (k+1)*tot_cs_len;          for(j = 0;j < tot_cs_len; j++)          {             geoTexCoords->push_back(texCoords[il++]);            geoTexCoords->push_back(texCoords[iu++]);          }          beginEditCP(geoTexCoords);        }      endEditCP(geoLengths);      endEditCP(geoTypes);    }}