diff --git a/MeshLib/convertMeshToGeo.cpp b/MeshLib/convertMeshToGeo.cpp index 5f8c655f916e7a95a6cec1681db83513feac1718..0a3b78bf1966101730a669b009e1c28bf8d0bbe0 100644 --- a/MeshLib/convertMeshToGeo.cpp +++ b/MeshLib/convertMeshToGeo.cpp @@ -41,7 +41,7 @@ bool convertMeshToGeo(const MeshLib::Mesh &mesh, GeoLib::GEOObjects &geo_objects const std::vector<MeshLib::Node*> &nodes = mesh.getNodes(); for (unsigned i=0; i<nNodes; ++i) - (*points)[i] = new GeoLib::Point(static_cast<GeoLib::Point>(*nodes[i])); + (*points)[i] = new GeoLib::Point(nodes[i]->getCoords()); std::string mesh_name (mesh.getName()); geo_objects.addPointVec(points, mesh_name, nullptr, eps);