Commit ed42ff6b authored by Jan Möbius's avatar Jan Möbius

Merge branch 'avoid-deprecated' into 'master'

Avoid deprecated OVM method

See merge request !1
parents 8503b5cd c0ca64ca
...@@ -697,7 +697,7 @@ int FileVTKPlugin::addFaceToOpenVolumeMesh(MeshT*& _mesh, std::vector<quint32> _ ...@@ -697,7 +697,7 @@ int FileVTKPlugin::addFaceToOpenVolumeMesh(MeshT*& _mesh, std::vector<quint32> _
OpenVolumeMesh::HalfFaceHandle halffacehandle; OpenVolumeMesh::HalfFaceHandle halffacehandle;
halffacehandle = _mesh->halfface(face); halffacehandle = _mesh->halfface(face);
if (halffacehandle == -1) // face didn't exist if (!halffacehandle.is_valid()) // face didn't exist
{ {
OpenVolumeMesh::FaceHandle fh = _mesh->add_face(face); OpenVolumeMesh::FaceHandle fh = _mesh->add_face(face);
halffacehandle = _mesh->halfface_handle(fh, 0); halffacehandle = _mesh->halfface_handle(fh, 0);
...@@ -715,7 +715,7 @@ int FileVTKPlugin::addFaceToOpenVolumeMesh(MeshT*& _mesh, quint32 _index1, quint ...@@ -715,7 +715,7 @@ int FileVTKPlugin::addFaceToOpenVolumeMesh(MeshT*& _mesh, quint32 _index1, quint
OpenVolumeMesh::HalfFaceHandle halffacehandle; OpenVolumeMesh::HalfFaceHandle halffacehandle;
halffacehandle = _mesh->halfface(face); halffacehandle = _mesh->halfface(face);
if (halffacehandle == -1) // face didn't exist if (!halffacehandle.is_valid()) // face didn't exist
{ {
OpenVolumeMesh::FaceHandle fh = _mesh->add_face(face); OpenVolumeMesh::FaceHandle fh = _mesh->add_face(face);
halffacehandle = _mesh->halfface_handle(fh, 0); halffacehandle = _mesh->halfface_handle(fh, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment