Skip to content
Snippets Groups Projects
Commit dc44554e authored by Karsten Rink's avatar Karsten Rink
Browse files

fixed re-naming of surface

parent f896a2ad
No related branches found
No related tags found
No related merge requests found
...@@ -106,10 +106,8 @@ int main(int argc, char *argv[]) ...@@ -106,10 +106,8 @@ int main(int argc, char *argv[])
else else
geo_objects.appendSurfaceVec(*new_sfc, geo_names[0]); geo_objects.appendSurfaceVec(*new_sfc, geo_names[0]);
std::string const surface_name (polyline_name + "_surface"); std::string const surface_name (polyline_name + "_surface");
std::size_t id (0); std::size_t const sfc_id = geo_objects.getSurfaceVec(geo_names[0])->size() - 1;
sfc_vec = geo_objects.getSurfaceVecObj(geo_names[0]); sfc_vec->setNameForElement(sfc_id, surface_name);
sfc_vec->getElementIDByName(surface_name, id);
sfc_vec->setNameForElement(id, surface_name);
// write new file // write new file
xml.setNameForExport(geo_names[0]); xml.setNameForExport(geo_names[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment