From b6f9f39ffcebcf7d65d692c0348ae59807f5412a Mon Sep 17 00:00:00 2001 From: luz paz Date: Wed, 8 Dec 2021 15:47:13 -0500 Subject: [PATCH] Fix various typos and grammatical refinements --- src/Mod/Part/App/TopoShape.cpp | 2 +- src/Mod/PartDesign/App/FeatureHelix.cpp | 6 +++--- src/Mod/PartDesign/Gui/ReferenceSelection.cpp | 2 +- src/Mod/Path/Generators/rotation_generator.py | 10 +++++----- src/Mod/Sketcher/App/GeoList.h | 2 +- src/Mod/Sketcher/App/GeometryFacade.cpp | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index b7617a3943..9ae039e2d1 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -239,7 +239,7 @@ const char* BRepBuilderAPI_FaceErrorText(BRepBuilderAPI_FaceError et) return "Parameters out of range"; #if OCC_VERSION_HEX < 0x060500 case BRepBuilderAPI_SurfaceNotC2: - return "Surface not C2-continous"; + return "Surface not C2-continuous"; #endif default: return "Unknown creation error"; diff --git a/src/Mod/PartDesign/App/FeatureHelix.cpp b/src/Mod/PartDesign/App/FeatureHelix.cpp index ba797c97b0..611409c2de 100644 --- a/src/Mod/PartDesign/App/FeatureHelix.cpp +++ b/src/Mod/PartDesign/App/FeatureHelix.cpp @@ -510,7 +510,7 @@ double Helix::safePitch() double X = Xmax - Xmin, Y = Ymax - Ymin, Z = Zmax - Zmin; gp_Vec boundingBoxVec(X, Y, Z); - // Below is an approximation becaue since we take the bounding box it is + // Below is an approximation because since we take the bounding box it is // impossible to calculate it precisely. For example a circle has as bounding // box a square and thus results in a larger pitch than really necessary @@ -518,7 +518,7 @@ double Helix::safePitch() double pitch0 = boundingBoxVec * direction; if (mode == HelixMode::height_turns_growth) { - // if the distange perpendicular to axisVec + // if the distance perpendicular to axisVec // between two turns is larger than the bounding box size in this direction // the minimal necessary pitch is zero if (abs(growthValue) > abs(boundingBoxVec * directionStart)) @@ -527,7 +527,7 @@ double Helix::safePitch() return pitch0; } else { - // if the angle is so large that the distange perpendicular to axisVec + // if the angle is so large that the distance perpendicular to axisVec // between two turns is larger than the bounding box size in this direction // the pitch can be smaller than pitch0 if (tan(abs(angle)) * pitch0 > abs(boundingBoxVec * directionStart)) diff --git a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp index 55feb77d9e..b07d06203c 100644 --- a/src/Mod/PartDesign/Gui/ReferenceSelection.cpp +++ b/src/Mod/PartDesign/Gui/ReferenceSelection.cpp @@ -77,7 +77,7 @@ bool ReferenceSelection::allow(App::Document* pDoc, App::DocumentObject* pObj, c return allowDatum(body, pObj); } - // The flag was used to be set. So, this block will never be treated and doesn't make really sense anyway + // The flag was used to be set. So, this block will never be treated and really doesn't make sense anyway #if 0 if (!type.testFlag(AllowSelection::OTHERBODY)) { if (support == NULL) diff --git a/src/Mod/Path/Generators/rotation_generator.py b/src/Mod/Path/Generators/rotation_generator.py index 47749b49a5..a2bc44f845 100644 --- a/src/Mod/Path/Generators/rotation_generator.py +++ b/src/Mod/Path/Generators/rotation_generator.py @@ -135,13 +135,13 @@ def generate(normalVector, aMin=-360, aMax=360, cMin=-360, cMax=360, compound=Fa to align the vector the positive Y axis. Then around the X axis (A rotation). - The min and max arguments dictate the range of motion allowed rotation in the respective - axis. - Default assumes continous rotation. + The min and max arguments dictate the range of motion allowed rotation in + the respective axis. + Default assumes continuous rotation. - returns a list of path commands for the shortest valid solution + Returns a list of path commands for the shortest valid solution - if compound is False, axis moves will be broken out to individual commands + If compound is False, axis moves will be broken out to individual commands The normalVector input from a typical face (f) can be obtained like this: diff --git a/src/Mod/Sketcher/App/GeoList.h b/src/Mod/Sketcher/App/GeoList.h index 515c1cd08b..3c781475e5 100644 --- a/src/Mod/Sketcher/App/GeoList.h +++ b/src/Mod/Sketcher/App/GeoList.h @@ -58,7 +58,7 @@ namespace Sketcher { * Internal and external geometries are present in a single geometry vector one after the other. * * N.B.: Note that the index of the geomlist (all layers) and the GeoId can be converted - * from each other at needed using the member fuctions (and sometimes the statics). + * from each other at needed using the member functions (and sometimes the statics). */ template class GeoListModel { diff --git a/src/Mod/Sketcher/App/GeometryFacade.cpp b/src/Mod/Sketcher/App/GeometryFacade.cpp index 7e8af8500b..a456c3a050 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.cpp +++ b/src/Mod/Sketcher/App/GeometryFacade.cpp @@ -102,7 +102,7 @@ void GeometryFacade::initExtension() void GeometryFacade::initExtension() const { - // const Geometry without SketchGeometryExtension cannot initiliase a GeometryFacade + // const Geometry without SketchGeometryExtension cannot initialise a GeometryFacade assert(Geo->hasExtension(SketchGeometryExtension::getClassTypeId())); auto ext = std::static_pointer_cast(Geo->getExtension(SketchGeometryExtension::getClassTypeId()).lock());