fix typos

This commit is contained in:
wmayer
2018-03-14 11:59:09 +01:00
parent 00ed07ca3e
commit 1df241ce3f
3 changed files with 7 additions and 7 deletions

View File

@@ -272,7 +272,7 @@ void exportFemMeshFaces(vtkSmartPointer<vtkUnstructuredGrid> 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<vtkUnstructuredGrid> grid, const SMDS_Vo
hexaArray->InsertNextCell(cell);
}
*/
else if ( aVol->NbNodes() == 10) { // quadratic tetrahedra
else if (aVol->NbNodes() == 10) { // quadratic tetrahedra
vtkSmartPointer<vtkQuadraticTetra> tetra = vtkSmartPointer<vtkQuadraticTetra>::New();
for(int i=0; i<10; i++){
@@ -368,7 +368,7 @@ void exportFemMeshCells(vtkSmartPointer<vtkUnstructuredGrid> 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");
}
}

View File

@@ -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;

View File

@@ -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