diff --git a/src/Gui/View3DInventorViewer.h b/src/Gui/View3DInventorViewer.h index 278ec84c27..fe53f68b5b 100644 --- a/src/Gui/View3DInventorViewer.h +++ b/src/Gui/View3DInventorViewer.h @@ -379,7 +379,7 @@ protected: enum eWinGestureTuneState{ ewgtsDisabled, //suppress tuning/re-tuning after errors - ewgtsNeedTuning, //gestures are to be retuned upon next event + ewgtsNeedTuning, //gestures are to be re-tuned upon next event ewgtsTuned }; eWinGestureTuneState winGestureTuneState;//See ViewerEventFilter::eventFilter function for explanation @@ -458,4 +458,3 @@ private: } // namespace Gui #endif // GUI_VIEW3DINVENTORVIEWER_H - diff --git a/src/Mod/Arch/exportIFC.py b/src/Mod/Arch/exportIFC.py index 48be36ec21..4dabbb9cef 100644 --- a/src/Mod/Arch/exportIFC.py +++ b/src/Mod/Arch/exportIFC.py @@ -111,7 +111,7 @@ END-ISO-10303-21; # ************************************************************************************************ # ********** duplicate methods **************** -# TODO red rid of this duplicate +# TODO get rid of this duplicate def getPreferences(): diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index e63c7f570e..32dbe8c8ac 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -173,7 +173,7 @@ def dms2dd(degrees, minutes, seconds, milliseconds=0): # ************************************************************************************************ # ********** duplicate methods **************** -# TODO red rid of this duplicate +# TODO get rid of this duplicate def getPreferences(): """retrieves IFC preferences""" @@ -1195,9 +1195,9 @@ def insert(filename,docname,skip=[],only=[],root=None): if hasattr(objects[o],"Material"): # the reason behind ... # there are files around in which the material color is different from the shape color - # all viewers use the shape color wheras in FreeCAD the shape color will be - # overwritten by the material coloer (if there is a material with a color) - # in such a case FreeCAD shows different color than all common ifc viewers + # all viewers use the shape color whereas in FreeCAD the shape color will be + # overwritten by the material color (if there is a material with a color). + # In such a case FreeCAD shows different a color than all common ifc viewers # https://forum.freecadweb.org/viewtopic.php?f=39&t=38440 col = objects[o].ViewObject.ShapeColor[:3] dig = 5 diff --git a/src/Mod/Draft/DraftVecUtils.py b/src/Mod/Draft/DraftVecUtils.py index 40dd50d4d1..5fce420641 100644 --- a/src/Mod/Draft/DraftVecUtils.py +++ b/src/Mod/Draft/DraftVecUtils.py @@ -347,7 +347,7 @@ def angle(u, v=Vector(1, 0, 0), normal=Vector(0, 0, 1)): dp = u.dot(v)/ll # Due to rounding errors, the dot product could be outside - # the range [-1, 1], so let's force it to be withing this range. + # the range [-1, 1], so let's force it to be within this range. if dp < -1: dp = -1 elif dp > 1: @@ -785,7 +785,7 @@ def removeDoubles(vlist): Finding duplicated vectors tests for `equality` which depends on the `precision` parameter in the parameter database. - Paramaters + Parameters ---------- vlist : list of Base::Vector3 List with vectors. diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index b11cf08403..7367d52af1 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -66,7 +66,7 @@ class plane: A vector that is supposed to be perpendicular to `u` and `v`; it is helpful although redundant. position : Base::Vector3 - A point throught which the plane goes through, + A point, which the plane goes through, that helps define the working plane. stored : bool A placeholder for a stored state. @@ -159,7 +159,7 @@ class plane: The points are as follows - * `p` is an arbitraty point outside the plane. + * `p` is an arbitrary point outside the plane. * `c` is a known point on the plane, for example, `plane.position`. * `x` is the intercept on the plane from `p` in @@ -532,7 +532,7 @@ class plane: Returns ------- bool - `True` if the operation was succesful, and `False` if the shape + `True` if the operation was successful, and `False` if the shape is not a `'Face'`. See Also @@ -585,7 +585,7 @@ class plane: Returns ------- bool - `True` if the operation was succesful, and `False` otherwise. + `True` if the operation was successful, and `False` otherwise. """ import Part w = Part.makePolygon([p1, p2, p3, p1]) @@ -612,7 +612,7 @@ class plane: Returns ------- bool - `True` if the operation was succesful, and `False` otherwise. + `True` if the operation was successful, and `False` otherwise. It returns `False` if the selection has no elements, or if it has more than one element, or if the object is not derived from `'Part::Feature'` diff --git a/src/Mod/Draft/importSVG.py b/src/Mod/Draft/importSVG.py index 1f7c0c837d..14bcd44368 100644 --- a/src/Mod/Draft/importSVG.py +++ b/src/Mod/Draft/importSVG.py @@ -1559,7 +1559,7 @@ class svgHandler(xml.sax.ContentHandler): obj.ViewObject.TextColor = (0.0, 0.0, 0.0, 0.0) def endElement(self, name): - """Finish procesing the element indicated by the name. + """Finish processing the element indicated by the name. Parameters ----------