Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-19 19:13:31 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-19 19:13:31 +0300
commit1c75533d9cc0693733bacbadecfaac5c504313fb (patch)
tree865ca6cfc8f2ea136d7ff2462e435151e612d06d /io_import_dxf
parent4179941c58871bf85cf275130af0696affa5040f (diff)
parentd7d3233715503ecc15b8dd1973f7e73257e2cbda (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'io_import_dxf')
-rw-r--r--io_import_dxf/dxfgrabber/juliandate.py2
-rw-r--r--io_import_dxf/dxfimport/do.py14
-rw-r--r--io_import_dxf/dxfimport/groupsort.py2
3 files changed, 9 insertions, 9 deletions
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 0bc8667b..be79908c 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)]