Skip to content
Snippets Groups Projects
Commit b177dd8a authored by Andrew Wilson's avatar Andrew Wilson :elephant:
Browse files

REFAC: Moved returns

parent 7ec4766b
No related branches found
No related tags found
No related merge requests found
......@@ -104,11 +104,11 @@ VTKMeshIO::write(const std::shared_ptr<PointSet> imstkMesh, const std::string& f
case MeshFileType::VTU:
if (auto tetMesh = std::dynamic_pointer_cast<TetrahedralMesh>(vMesh))
{
VTKMeshIO::writeVtkUnstructuredGrid<vtkXMLUnstructuredGridWriter>(tetMesh, filePath);
return VTKMeshIO::writeVtkUnstructuredGrid<vtkXMLUnstructuredGridWriter>(tetMesh, filePath);
}
else if (auto hexMesh = std::dynamic_pointer_cast<HexahedralMesh>(vMesh))
{
VTKMeshIO::writeVtkUnstructuredGrid<vtkXMLUnstructuredGridWriter>(hexMesh, filePath);
return VTKMeshIO::writeVtkUnstructuredGrid<vtkXMLUnstructuredGridWriter>(hexMesh, filePath);
}
else
{
......@@ -118,11 +118,11 @@ VTKMeshIO::write(const std::shared_ptr<PointSet> imstkMesh, const std::string& f
case MeshFileType::VTK:
if (auto tetMesh = std::dynamic_pointer_cast<TetrahedralMesh>(vMesh))
{
VTKMeshIO::writeVtkUnstructuredGrid<vtkGenericDataObjectWriter>(tetMesh, filePath);
return VTKMeshIO::writeVtkUnstructuredGrid<vtkGenericDataObjectWriter>(tetMesh, filePath);
}
else if (auto hexMesh = std::dynamic_pointer_cast<HexahedralMesh>(vMesh))
{
VTKMeshIO::writeVtkUnstructuredGrid<vtkGenericDataObjectWriter>(hexMesh, filePath);
return VTKMeshIO::writeVtkUnstructuredGrid<vtkGenericDataObjectWriter>(hexMesh, filePath);
}
else
{
......@@ -181,7 +181,6 @@ VTKMeshIO::write(const std::shared_ptr<PointSet> imstkMesh, const std::string& f
LOG(WARNING) << "VTKMeshIO::write error: the provided mesh is not a surface or volumetric mesh.";
return false;
}
return true;
}
template<typename ReaderType>
......
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