I am not sure if the ```std::vector<MeshLib::Node*> nodes``` is a copy of ```mesh.getNodes()``` or if the compiler will omit the copy because of the keyword ```const```.