rem: };
add: }
context: static void convertSubdivisionGrid( grid *ext_grid,                                    UInt32 *_uValues,                                    UInt32 *_vValues,                                                            vector<osg::Pnt3f> & _vertices,                                    vector<osg::Vec3f> & _normals,                                    vector<osg::Vec2f> & _texCoords ){  Real32 *vertices  = ext_grid->data[POINTS];  Real32 *normals   = ext_grid->data[NORMALS];  Real32 *texCoords = ext_grid->data[TEXTURE];    UInt32 sp_len = ext_grid->ui_max[POINTS];  UInt32 cs_len = ext_grid->vi_max[POINTS];  *_uValues = sp_len;  *_vValues = cs_len;  UInt32 tot_sp_len = ext_grid->ui_max[TEXTURE];  UInt32 tot_cs_len = ext_grid->vi_max[TEXTURE];    _vertices.resize(sp_len * cs_len);  UInt32 i,j,k;      for(i = 0; i < ext_grid->ui_max[POINTS]; i++)    for(j = 0; j < ext_grid->vi_max[POINTS]; j++)          for(k = 0; k < 3; k++)            _vertices[i*cs_len+j][k] = vertices[3*(i*cs_len+j)+k];  if(normals != NULL)    {      _normals.resize(sp_len*cs_len);            for(i = 0; i < ext_grid->ui_max[NORMALS]; i++)        for(j = 0; j < ext_grid->vi_max[NORMALS]; j++)          for(k = 0; k < 3; k++)            _normals[i*cs_len+j][k] = normals[3*(i*cs_len+j)+k];    }  if(texCoords != NULL)    {      _texCoords.resize(tot_sp_len*tot_cs_len);      for(i = 0; i < ext_grid->ui_max[TEXTURE]; i++)        for(j = 0; j < ext_grid->vi_max[TEXTURE]; j++)          for(k = 0; k < 2; k++)            _texCoords[i*tot_cs_len+j][k] = texCoords[2*(i*tot_cs_len+j)+k];    }  /* the second argument is a flag which signals if the original grid */   /* constructed during linear extrusion from the original extrusion data */  /* has also to be set free */  /* we know this condition */  //if(numOfSubdivision > 0)  freeGrid(ext_grid, false);};