From bfeb71005ac12ecf878f3433d6d9e93083d4c274 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 19 Mar 2018 13:01:49 +0100 Subject: [PATCH] FEM: VTK, better comments in vtk result data creation --- src/Mod/Fem/App/FemVTKTools.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/App/FemVTKTools.cpp b/src/Mod/Fem/App/FemVTKTools.cpp index 77de410a8f..60eb18dbb3 100644 --- a/src/Mod/Fem/App/FemVTKTools.cpp +++ b/src/Mod/Fem/App/FemVTKTools.cpp @@ -869,7 +869,7 @@ void _exportResult(const App::DocumentObject* result, vtkSmartPointerGetPointData()->AddArray(data); - Base::Console().Message("Info: PropertyVectorList %s exported as vtk array name '%s'\n", kv.first.c_str(), kv.second.c_str()); + Base::Console().Log(" Info: PropertyVectorList %s exported as vtk array name '%s'\n", kv.first.c_str(), kv.second.c_str()); } else Base::Console().Error("field = static_cast failed or empty for field: %s", kv.first.c_str()); @@ -889,7 +889,7 @@ void _exportResult(const App::DocumentObject* result, vtkSmartPointerSetValue(i, vec[i]); grid->GetPointData()->AddArray(data); - Base::Console().Message("Info: PropertyFloatList %s exported as vtk array name '%s'\n", kv.first.c_str(), kv.second.c_str()); + Base::Console().Log(" Info: PropertyFloatList %s exported as vtk array name '%s'\n", kv.first.c_str(), kv.second.c_str()); } } @@ -992,6 +992,7 @@ void FemVTKTools::importMechanicalResult(vtkSmartPointer dataset, Ap void FemVTKTools::exportMechanicalResult(const App::DocumentObject* res, vtkSmartPointer grid) { + Base::Console().Message("Start: Create VTK result data from FreeCAD mechanical result data ======================\n"); if(!res->getPropertyByName("DisplacementVectors")){ Base::Console().Error("essential field like `DisplacementVectors` is not found in this Result object\n"); return; @@ -1016,6 +1017,7 @@ void FemVTKTools::exportMechanicalResult(const App::DocumentObject* res, vtkSmar std::string essential_property = std::string("DisplacementVectors"); _exportResult(res, grid, vectors, scalers, essential_property); + Base::Console().Message("End: Create VTK result data from FreeCAD mechanical result data ======================\n"); } } // namespace