From 5f7df347f8140776e8497d10fff3bd237a056304 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Fri, 20 Apr 2018 10:07:28 -0400 Subject: [PATCH] Path: misc. source comment typos --- src/Mod/Path/App/Area.cpp | 4 ++-- src/Mod/Path/App/AreaParams.h | 2 +- src/Mod/Path/Gui/Resources/panels/PageOpPocketFullEdit.ui | 2 +- .../Gui/Resources/preferences/PathDressupHoldingTags.ui | 2 +- src/Mod/Path/PathScripts/PathDressupRampEntry.py | 6 +++--- src/Mod/Path/PathScripts/PathOpGui.py | 2 +- src/Mod/Path/PathScripts/PathPocketBaseGui.py | 2 +- src/Mod/Path/PathTests/TestPathGeom.py | 2 +- src/Mod/Path/libarea/kurve/Matrix.cpp | 6 +++--- src/Mod/Path/libarea/kurve/geometry.h | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Mod/Path/App/Area.cpp b/src/Mod/Path/App/Area.cpp index f9608a27cc..270714ffb5 100644 --- a/src/Mod/Path/App/Area.cpp +++ b/src/Mod/Path/App/Area.cpp @@ -331,7 +331,7 @@ static std::vector discretize(const TopoDS_Edge &edge, double deflection // NOTE: OCCT QuasiUniformDeflection has a bug cause it to return only // partial points for some (BSpline) curve if we pass in the edge trimmed // first and last parameters. Passing the original curve first and last - // paramaters works fine. The following algorithm uses the original curve + // parameters works fine. The following algorithm uses the original curve // parameters, and skip those out of range. The algorithm shall work the // same for any other discetization algorithm, althgouth it seems only // QuasiUniformDeflection has this bug. @@ -341,7 +341,7 @@ static std::vector discretize(const TopoDS_Edge &edge, double deflection Standard_Failure::Raise("Curve discretization failed"); if(discretizer.NbPoints () > 1) { int nbPoints = discretizer.NbPoints (); - //strangly OCC discretizer points are one-based, not zero-based, why? + //strangely OCC discretizer points are one-based, not zero-based, why? if(reversed) { for (int i=nbPoints-1; i>=1; --i) { auto param = discretizer.Parameter(i); diff --git a/src/Mod/Path/App/AreaParams.h b/src/Mod/Path/App/AreaParams.h index 3da6227afc..8010c5a524 100644 --- a/src/Mod/Path/App/AreaParams.h +++ b/src/Mod/Path/App/AreaParams.h @@ -23,7 +23,7 @@ #ifndef PATH_AreaParams_H #define PATH_AreaParams_H -// deifne this to enable offset algo selection +// define this to enable offset algo selection // #define AREA_OFFSET_ALGO /** \file diff --git a/src/Mod/Path/Gui/Resources/panels/PageOpPocketFullEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageOpPocketFullEdit.ui index 7ab90c7ce8..2ba652d231 100644 --- a/src/Mod/Path/Gui/Resources/panels/PageOpPocketFullEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/PageOpPocketFullEdit.ui @@ -53,7 +53,7 @@ - <html><head/><body><p>Specify if the facing should be restricted by the actual shape of the selected face (or the part if no face is selected), or if the bounding box shold be faced off.</p><p>The latter can be used to face of the entire stock area to ensure uniform heights for the following operations.</p></body></html> + <html><head/><body><p>Specify if the facing should be restricted by the actual shape of the selected face (or the part if no face is selected), or if the bounding box should be faced off.</p><p>The latter can be used to face of the entire stock area to ensure uniform heights for the following operations.</p></body></html> diff --git a/src/Mod/Path/Gui/Resources/preferences/PathDressupHoldingTags.ui b/src/Mod/Path/Gui/Resources/preferences/PathDressupHoldingTags.ui index c5085d5fa8..febc16a026 100644 --- a/src/Mod/Path/Gui/Resources/preferences/PathDressupHoldingTags.ui +++ b/src/Mod/Path/Gui/Resources/preferences/PathDressupHoldingTags.ui @@ -77,7 +77,7 @@ - <html><head/><body><p>Radius of the fillet on the tag's top edge.</p><p>If the radius is bigger than than the tag shape itself supports the resulting shape will be that of a dome.</p></body></html> + <html><head/><body><p>Radius of the fillet on the tag's top edge.</p><p>If the radius is bigger than that which the the tag shape itself supports, the resulting shape will be that of a dome.</p></body></html> diff --git a/src/Mod/Path/PathScripts/PathDressupRampEntry.py b/src/Mod/Path/PathScripts/PathDressupRampEntry.py index 1ce3adb9fe..312846f165 100644 --- a/src/Mod/Path/PathScripts/PathDressupRampEntry.py +++ b/src/Mod/Path/PathScripts/PathDressupRampEntry.py @@ -302,7 +302,7 @@ class ObjectDressup: by going the path backwards until the original plunge end point is reached 4. Continue with the original path - This method causes unecessarily many moves with tool down + This method causes many unnecessary moves with tool down. """ outedges = [] rampremaining = projectionlen @@ -365,10 +365,10 @@ class ObjectDressup: 1. Start from the original startpoint of the plunge 2. Ramp down along the path that comes after the plunge until traveled half of the Z distance - 3. Change direction and ramp backwards to the origianal plunge end point + 3. Change direction and ramp backwards to the original plunge end point 4. Continue with the original path - This method causes unecessarily many moves with tool down + This method causes many unnecessary moves with tool down. """ outedges = [] rampremaining = projectionlen diff --git a/src/Mod/Path/PathScripts/PathOpGui.py b/src/Mod/Path/PathScripts/PathOpGui.py index f1911093f9..b897d85eca 100644 --- a/src/Mod/Path/PathScripts/PathOpGui.py +++ b/src/Mod/Path/PathScripts/PathOpGui.py @@ -221,7 +221,7 @@ class TaskPanelPage(object): def pageUpdateData(self, obj, prop): '''pageUpdateData(obj, prop) ... internal callback. - Do not overwrite, implement updateData(obj) instaed.''' + Do not overwrite, implement updateData(obj) instead.''' self.updateData(obj, prop) def setTitle(self, title): diff --git a/src/Mod/Path/PathScripts/PathPocketBaseGui.py b/src/Mod/Path/PathScripts/PathPocketBaseGui.py index 5b8dd42a5f..4c5118a93c 100644 --- a/src/Mod/Path/PathScripts/PathPocketBaseGui.py +++ b/src/Mod/Path/PathScripts/PathPocketBaseGui.py @@ -58,7 +58,7 @@ class TaskPanelOpPage(PathOpGui.TaskPanelPage): pass def getForm(self): - '''getForm() ... returns UI, adapted to the resutls from pocketFeatures()''' + '''getForm() ... returns UI, adapted to the results from pocketFeatures()''' form = FreeCADGui.PySideUic.loadUi(":/panels/PageOpPocketFullEdit.ui") if not FeatureFacing & self.pocketFeatures(): diff --git a/src/Mod/Path/PathTests/TestPathGeom.py b/src/Mod/Path/PathTests/TestPathGeom.py index 535d5b242b..8fd185ed66 100644 --- a/src/Mod/Path/PathTests/TestPathGeom.py +++ b/src/Mod/Path/PathTests/TestPathGeom.py @@ -188,7 +188,7 @@ class TestPathGeom(PathTestBase): self.assertLine(PathGeom.edgeForCmd(Path.Command('G01', {'X': 1, 'Y': 3, 'Z': 5}), spt), spt, Vector(1, 3, 5)) def test20(self): - """Verfiy proper geometry for arcs in the XY-plane are created.""" + """Verify proper geometry for arcs in the XY-plane are created.""" p1 = Vector(0, -1, 2) p2 = Vector(-1, 0, 2) self.assertArc( diff --git a/src/Mod/Path/libarea/kurve/Matrix.cpp b/src/Mod/Path/libarea/kurve/Matrix.cpp index 7de02058dc..b56e6d6859 100644 --- a/src/Mod/Path/libarea/kurve/Matrix.cpp +++ b/src/Mod/Path/libarea/kurve/Matrix.cpp @@ -102,7 +102,7 @@ namespace geoff_geometry { rotate.e[8] = rotAxis->getx() * rotAxis->getz() * oneminusc - rotAxis->gety() * sinang; rotate.e[9] = rotAxis->gety() * rotAxis->getz() * oneminusc + rotAxis->getx() * sinang; rotate.e[10] = rotAxis->getz() * rotAxis->getz() * oneminusc + cosang; - Multiply(rotate); // concatinate rotation with this matrix + Multiply(rotate); // concatenate rotation with this matrix m_unit = false; m_mirrored = -1; // don't know } @@ -139,7 +139,7 @@ namespace geoff_geometry { rotate.e[4] = sinang; break; } - Multiply(rotate); // concatinate rotation with this matrix + Multiply(rotate); // concatenate rotation with this matrix m_unit = false; m_mirrored = -1; // don't know } @@ -165,7 +165,7 @@ namespace geoff_geometry { } void Matrix::Multiply(Matrix& m) { - // multiply this by give matrix - concatinate + // multiply this by give matrix - concatenate int i, k, l; Matrix ret; diff --git a/src/Mod/Path/libarea/kurve/geometry.h b/src/Mod/Path/libarea/kurve/geometry.h index 4b435cce23..85c6e23f68 100644 --- a/src/Mod/Path/libarea/kurve/geometry.h +++ b/src/Mod/Path/libarea/kurve/geometry.h @@ -639,7 +639,7 @@ inline bool FNEZ(double a, double tolerance = TIGHT_TOLERANCE) {return fabs(a) > Point On(const CLine& s, const Point& p); // returns a point on s nearest to p Point On(const Circle& c, const Point& p); // returns a point on c nearest to p - // cline definitons + // cline definitions CLine AtAngle(double angle, const Point& p, const CLine& s = HORIZ_CLINE); // cline at angle to line thro' point CLine Tanto(int AT, const Circle& c, double angle, const CLine& s0 = HORIZ_CLINE);//// cline tanto circle at angle to optional cline