Misc typos and whitespace fixes

Found via `codespell`
This commit is contained in:
luz.paz 2018-08-18 07:34:51 -04:00 committed by realthunder
parent 7adcf54874
commit e9fe377f7b
2 changed files with 6 additions and 8 deletions

View File

@ -469,7 +469,7 @@ class AsmElement(AsmBase):
If there is only one selection, then the selection must refer to a sub
element of some part object of an assembly. We shall create a new
element beloning to the top-level assembly
element belonging to the top-level assembly
If there are two selections, then first one shall be either the
element group or an individual element. The second selection shall
@ -767,7 +767,7 @@ def getElementInfo(parent,subname,
subname: subname reference to the part element (i.e. edge, face, vertex)
shape: caller can pass in a pre-obtained element shape. The shape is
assumed ot be in the assembly coordinate space. This function will then
assumed to be in the assembly coordinate space. This function will then
transform the shape into the its owner part's coordinate space. If
'shape' is not given, then the output shape will be obtained through
'parent' and 'subname'
@ -858,7 +858,7 @@ def getElementInfo(parent,subname,
# trim the subname to be after the array element
subname = '.'.join(names[2:])
# There are two states of an link array.
# There are two states of an link array.
if getLinkProperty(part[0],'ElementList'):
# a) The elements are expanded as individual objects, i.e
# when ElementList has members, then the moveable Placement
@ -1478,7 +1478,7 @@ class AsmConstraint(AsmGroup):
Parse Gui.Selection for making a constraint
The selected elements must all belong to the same immediate parent
assembly.
assembly.
'''
if not sels:
sels = FreeCADGui.Selection.getSelectionEx('',False)
@ -3290,4 +3290,3 @@ class ViewProviderAsmWorkPlane(ViewProviderAsmBase):
def setDisplayMode(self, mode):
return mode

View File

@ -18,7 +18,7 @@ from .system import System
# plane of the part.
# EntityMap: string -> entity handle map, for caching
# Group: transforming entity group handle
# CstrMap: map from other part to the constrains between this and the othe part.
# CstrMap: map from other part to the constrains between this and the other part.
# This is for auto constraint DOF reduction. Only some composite
# constraints will be mapped.
# Update: in case the constraint uses the `Multiplication` feature, only the
@ -347,7 +347,7 @@ def _solve(objs=None,recursive=None,reportFailed=False,
# topologically sorted list.
#
# TODO: it would be ideal if we can filter out those disabled assemblies
# found during the recrusive search. Can't think of an easy way right
# found during the recursive search. Can't think of an easy way right
# now
objs = FreeCAD.getDependentObjects(assemblies,False,True)
assemblies = []
@ -407,4 +407,3 @@ def solve(*args, **kargs):
def isBusy():
return _SolverBusy