From 439bf8960dca8d16a768b5f700889ab932bba2de Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 22 Dec 2020 22:12:39 -0500 Subject: [PATCH] Fix typos [skip ci] Found via `codespell v2.1.dev0` --- src/Mod/Arch/importWebGL.py | 4 ++-- src/Mod/Draft/draftguitools/gui_draft2sketch.py | 2 +- src/Mod/Path/PathScripts/PathSlot.py | 6 +++--- src/Mod/Path/PathScripts/post/heidenhain_post.py | 4 ++-- src/Mod/Sketcher/App/SketchObject.cpp | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Mod/Arch/importWebGL.py b/src/Mod/Arch/importWebGL.py index f8d2e27cea..0148279984 100644 --- a/src/Mod/Arch/importWebGL.py +++ b/src/Mod/Arch/importWebGL.py @@ -670,7 +670,7 @@ def export( exportList, filename, colors = None, camera = None ): break if not found: break if not found: - FreeCAD.Console.PrintMessage("Facet to Face Mismach.\n") + FreeCAD.Console.PrintMessage("Facet to Face Mismatch.\n") objdata['facesToFacets'] = [] break @@ -685,7 +685,7 @@ def export( exportList, filename, colors = None, camera = None ): break if not found: break if not found: - FreeCAD.Console.PrintMessage("Facet List Mismach.\n") + FreeCAD.Console.PrintMessage("Facet List Mismatch.\n") objdata['facesToFacets'] = [] break diff --git a/src/Mod/Draft/draftguitools/gui_draft2sketch.py b/src/Mod/Draft/draftguitools/gui_draft2sketch.py index a3070ec574..6deac33000 100644 --- a/src/Mod/Draft/draftguitools/gui_draft2sketch.py +++ b/src/Mod/Draft/draftguitools/gui_draft2sketch.py @@ -24,7 +24,7 @@ # *************************************************************************** """Provides GUI tools to convert Draft objects to Sketches and back. -Many Draft objects will be converted to a single non-contrainted Sketch. +Many Draft objects will be converted to a single non-constrained Sketch. However, a single sketch with disconnected traces will be converted into several individual Draft objects. diff --git a/src/Mod/Path/PathScripts/PathSlot.py b/src/Mod/Path/PathScripts/PathSlot.py index 113e46260c..2461f441b1 100644 --- a/src/Mod/Path/PathScripts/PathSlot.py +++ b/src/Mod/Path/PathScripts/PathSlot.py @@ -792,7 +792,7 @@ class ObjectSlot(PathOp.ObjectOp): flag = 1 eCnt = len(shape.Edges) lstE = eCnt - 1 - for i in range(0, eCnt): # populate empty parrallel edge flag list + for i in range(0, eCnt): # populate empty parallel edge flag list parallel_edge_flags.append(0) for i in range(0, eCnt): # Cycle through edges to identify parallel pairs if i < lstE: @@ -1075,7 +1075,7 @@ class ObjectSlot(PathOp.ObjectOp): def _normalizeVector(self, v): """_normalizeVector(v)... - Returns a copy of the vector recieved with values rounded to 10 decimal places.""" + Returns a copy of the vector received with values rounded to 10 decimal places.""" posTol = 0.0000000001 negTol = -1 * posTol V = FreeCAD.Vector(v.x, v.y, v.z) @@ -1220,7 +1220,7 @@ class ObjectSlot(PathOp.ObjectOp): def _extendArcSlot(self, p1, p2, cent, begExt, endExt): """_extendArcSlot(p1, p2, cent, begExt, endExt)... This function extends an arc defined by two end points, p1 and p2, and the center. - The arc is extended along the circumferance with begExt and endExt values. + The arc is extended along the circumference with begExt and endExt values. The function returns the new end points as tuple (n1, n2) to replace p1 and p2.""" cancel = True n1 = p1 diff --git a/src/Mod/Path/PathScripts/post/heidenhain_post.py b/src/Mod/Path/PathScripts/post/heidenhain_post.py index a0365eb125..3cf5a3248f 100644 --- a/src/Mod/Path/PathScripts/post/heidenhain_post.py +++ b/src/Mod/Path/PathScripts/post/heidenhain_post.py @@ -490,8 +490,8 @@ def HEIDEN_End(ActualJob): #use Label for program name program_id = "NEW" return "END PGM " + program_id + " " + UNITS -#def HEIDEN_ToolDef(tool_id, tool_lenght, tool_radius): # old machines don't have tool table, need tooldef list -# return "TOOL DEF " + tool_id + " R" + "{:.3f}".format(tool_lenght) + " L" + "{:.3f}".format(tool_radius) +#def HEIDEN_ToolDef(tool_id, tool_length, tool_radius): # old machines don't have tool table, need tooldef list +# return "TOOL DEF " + tool_id + " R" + "{:.3f}".format(tool_length) + " L" + "{:.3f}".format(tool_radius) def HEIDEN_ToolCall(tool_Params): global MACHINE_SPINDLE_DIRECTION diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 21e3365b13..3511927ef1 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -2347,7 +2347,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) } constrId++; } - /* It is possible that the trimming entity has both a PointOnObject constrait to the trimmed entity, and a simple Tangent contstrait + /* It is possible that the trimming entity has both a PointOnObject constraint to the trimmed entity, and a simple Tangent contstrait * to the trimmed entity. In this case we want to change to a single end-to-end tangency, i.e we want to ensure that constrType1 is * set to Sketcher::Tangent, that the secondPos1 is captured from the PointOnObject, and also make sure that the PointOnObject constraint * is deleted. The below loop ensures this, also in case the ordering of the constraints is first Tangent and then PointOnObject. */ @@ -2808,7 +2808,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point) } if (GeoId1 >= 0) { creategeometryundopoint(); // for when geometry will change, but no new geometry will be committed. - ConstraintType constrType1 = Sketcher::PointOnObject; // So this is the fallback contraint type here. + ConstraintType constrType1 = Sketcher::PointOnObject; // So this is the fallback constraint type here. PointPos secondPos1 = Sketcher::none; getTransformParamsAndDeleteConstraints(GeoId, GeoId1, point1, constrType1, secondPos1);