misc. trivial typos

Decided to quickly run `codespell` on the repo.
This commit is contained in:
luzpaz 2017-11-19 19:11:56 -05:00
parent 9e2037a13b
commit 9ae710b154
3 changed files with 5 additions and 5 deletions

View File

@ -566,7 +566,7 @@ class AsmElementLink(AsmBase):
AsmElementLink links to elements of a constraint. It always link to an
AsmElement object belonging to the same parent assembly. AsmElement is
also a link, which links to an arbitarily nested part object. This
also a link, which links to an arbitrarily nested part object. This
function is for resolving the AsmElementLink's subname reference to the
actual part object subname reference relative to the parent assembly's
part group
@ -1448,7 +1448,7 @@ class AsmMovingPart(object):
fixed = self.fixedTransform
movement = self.draggerPlacement.inverse().multiply(pla)
if not fixed.Shape:
# The moving part has completly fixed placement, so we move the
# The moving part has completely fixed placement, so we move the
# parent assembly instead
pla = obj.Placement.multiply(movement)
setPlacement(obj,pla,self.undos,self._undoName)

View File

@ -108,7 +108,7 @@ class Solver(object):
# info.Part may be a link to that object. We use info.Object as a key so
# that multiple info.Part can share the same entity map.
#
# TODO: It is actually more complicated than that. Becuase info.Object
# TODO: It is actually more complicated than that. Because info.Object
# itself may be a link, and followed by a chain of multiple links. It's
# complicated because each link can either have a linked placement or
# not, depends on its LinkTransform property, meaning that their

View File

@ -346,7 +346,7 @@ def fit_rotation_axis_to_surface1( surface, n_u=3, n_v=3 ):
for j in range(i+1,len(N)):
# based on the distance_between_axes( p1, u1, p2, u2) function,
if 1 - abs(np.dot( N[i], N[j])) < 10**-6:
continue #ignore parrallel case
continue #ignore parallel case
p1_x, p1_y, p1_z = P[i]
u1_x, u1_y, u1_z = N[i]
p2_x, p2_y, p2_z = P[j]
@ -385,7 +385,7 @@ def fit_rotation_axis_to_surface1( surface, n_u=3, n_v=3 ):
_U,s,V = np.linalg.svd(A)
axis_pos = centroid
axis_dir = V[0]
error = s[1] #dont know if this will work
error = s[1] #don't know if this will work
return axis_dir, axis_pos, error
_tol = 10e-7