diff --git a/assembly.py b/assembly.py index f80cb32..ba1e473 100644 --- a/assembly.py +++ b/assembly.py @@ -566,7 +566,7 @@ def getElementSubname(self): 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 @@ def move(self): 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) diff --git a/solver.py b/solver.py index eaae1c9..2060aee 100644 --- a/solver.py +++ b/solver.py @@ -108,7 +108,7 @@ def getPartInfo(self,info): # 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 diff --git a/utils.py b/utils.py index 01d226c..1e81dc5 100644 --- a/utils.py +++ b/utils.py @@ -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