From 1df241ce3fb52feeedba955d81eef9a38f3c3c1a Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 14 Mar 2018 11:59:09 +0100 Subject: [PATCH] fix typos --- src/Mod/Fem/App/FemVTKTools.cpp | 6 +++--- src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp | 2 +- src/Mod/Fem/feminout/importVTKResults.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mod/Fem/App/FemVTKTools.cpp b/src/Mod/Fem/App/FemVTKTools.cpp index fd7cf983c1..0485fda46a 100644 --- a/src/Mod/Fem/App/FemVTKTools.cpp +++ b/src/Mod/Fem/App/FemVTKTools.cpp @@ -272,7 +272,7 @@ void exportFemMeshFaces(vtkSmartPointer grid, const SMDS_Fa } else { - throw std::runtime_error("Face not yet supported by FreeCADs VTK mesh builder\n"); + throw std::runtime_error("Face not yet supported by FreeCAD's VTK mesh builder\n"); } } if(triangleArray->GetNumberOfCells()>0) @@ -349,7 +349,7 @@ void exportFemMeshCells(vtkSmartPointer grid, const SMDS_Vo hexaArray->InsertNextCell(cell); } */ - else if ( aVol->NbNodes() == 10) { // quadratic tetrahedra + else if (aVol->NbNodes() == 10) { // quadratic tetrahedra vtkSmartPointer tetra = vtkSmartPointer::New(); for(int i=0; i<10; i++){ @@ -368,7 +368,7 @@ void exportFemMeshCells(vtkSmartPointer grid, const SMDS_Vo } */ else { - throw std::runtime_error("Volume not yet supported by FreeCADs VTK mesh builder\n"); + throw std::runtime_error("Volume not yet supported by FreeCAD's VTK mesh builder\n"); } } diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp b/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp index bb7a0deccf..4f6357cd4a 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemPostObject.cpp @@ -551,7 +551,7 @@ bool ViewProviderFemPostObject::doubleClicked(void) { ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View"); bool isBackLightEnabled = hGrp->GetBool("EnableBacklight", false); if (isBackLightEnabled == false) - Base::Console().Error("Back light is not enabled. Due to a VTK implemataion problem you really should consider to enable back light in FreeCAD display preferences if you work with VTK post processing.\n"); + Base::Console().Error("Backlight is not enabled. Due to a VTK implementation problem you really should consider to enable backlight in FreeCAD display preferences if you work with VTK post processing.\n"); // set edit Gui::Application::Instance->activeDocument()->setEdit(this, (int)ViewProvider::Default); return true; diff --git a/src/Mod/Fem/feminout/importVTKResults.py b/src/Mod/Fem/feminout/importVTKResults.py index 654d05f5dd..b9273792aa 100644 --- a/src/Mod/Fem/feminout/importVTKResults.py +++ b/src/Mod/Fem/feminout/importVTKResults.py @@ -61,8 +61,8 @@ def insert(filename, docname): def export(objectslist, filename): - "called when freecad exports a object to vtk" - if len(objectslist) > 1: # the case of no selected obj is catched by FreeCAD already + "called when freecad exports an object to vtk" + if len(objectslist) > 1: # the case of no selected obj is caught by FreeCAD already FreeCAD.Console.PrintError("This exporter can only export one object at once\n") return @@ -76,7 +76,7 @@ def export(objectslist, filename): elif obj.isDerivedFrom("Fem::FemResultObject"): Fem.writeResult(filename, obj) else: - FreeCAD.Console.PrintError('Object selcted is not supported by to export to VTK.\n') + FreeCAD.Console.PrintError('Selected object is not supported by export to VTK.\n') return