From d7d3233715503ecc15b8dd1973f7e73257e2cbda Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 19 Oct 2018 17:59:58 +0200 Subject: Spelling fixes in comments and descriptions, patch by luzpaz. Differential Revision: https://developer.blender.org/D3746 --- io_import_dxf/dxfgrabber/juliandate.py | 2 +- io_import_dxf/dxfimport/do.py | 14 +++++++------- io_import_dxf/dxfimport/groupsort.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'io_import_dxf') diff --git a/io_import_dxf/dxfgrabber/juliandate.py b/io_import_dxf/dxfgrabber/juliandate.py index 3fbbb5b8..be8a3826 100644 --- a/io_import_dxf/dxfgrabber/juliandate.py +++ b/io_import_dxf/dxfgrabber/juliandate.py @@ -40,7 +40,7 @@ class CalendarDate: Z = floor(self.jdate) if Z < 2299161: - A = Z # julian calender + A = Z # julian calendar else: g = floor((Z - 1867216.25) / 36524.25) # gregorian calendar A = Z + 1. + g - floor(g / 4.) diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py index e570f9d7..7ac4c392 100644 --- a/io_import_dxf/dxfimport/do.py +++ b/io_import_dxf/dxfimport/do.py @@ -290,7 +290,7 @@ class Do: note: en.start_angle + en.end_angle: angles measured from the angle base (angbase) in the direction of angdir (1 = clockwise, 0 = counterclockwise) """ - treshold = 0.005 + threshold = 0.005 if aunits is None: aunits = self.dwg.header.get('$AUNITS', 0) @@ -337,22 +337,22 @@ class Do: # start spline = list() spline.append(vc + start) - if abs(angle) - pi / 2 > treshold: # if angle is more than pi/2 incl. treshold + if abs(angle) - pi / 2 > threshold: # if angle is more than pi/2 incl. threshold spline.append(vc + start + start * kappa * rot) else: spline.append(vc + start + start * kappa * angle / (pi / 2) * rot) # fill if angle is larger than 90 degrees a = pi / 2 - if abs(angle) - treshold > a: + if abs(angle) - threshold > a: fill = start - while abs(angle) - a > treshold: + while abs(angle) - a > threshold: fillnext = fill * rot spline.append(vc + fillnext + fill * kappa) spline.append(vc + fillnext) # if this was the last fill control point - if abs(angle) - a - pi / 2 < treshold: + if abs(angle) - a - pi / 2 < threshold: end_angle = (abs(angle) - a) * abs(angle) / angle spline.append(vc + fillnext + fillnext * kappa * end_angle / (pi / 2) * rot) else: @@ -578,7 +578,7 @@ class Do: def polymesh(self, en, bm): """ - en: POLYMESH entitiy + en: POLYMESH entity bm: Blender bmesh instance """ mc = en.mcount if not en.is_mclosed else en.mcount + 1 @@ -905,7 +905,7 @@ class Do: for obj in inserts: obj.parent = o - # put a copy of the retreived objects into the known_blocks dict, so that the attributes being added to + # put a copy of the retrieved objects into the known_blocks dict, so that the attributes being added to # the object from this point onwards (from INSERT attributes) are not being copied to new/other INSERTs self.known_blocks[name] = [[o.copy() for o in objects], inserts] diff --git a/io_import_dxf/dxfimport/groupsort.py b/io_import_dxf/dxfimport/groupsort.py index e4af8c84..998b69b4 100644 --- a/io_import_dxf/dxfimport/groupsort.py +++ b/io_import_dxf/dxfimport/groupsort.py @@ -72,7 +72,7 @@ def by_dxftype(entities): def by_attributes(entities): """ entities: list of DXF entities - attributes: thickness and width occuring in curve types; subdivision_levels occuring in MESH dxf types + attributes: thickness and width occurring in curve types; subdivision_levels occurring in MESH dxf types """ def attributes(entity): width = [(0, 0)] -- cgit v1.2.3