Skip to content

Commit 7d341a6

Browse files
committed
Minor do refactor and fixed a comment
1 parent 74e3eb8 commit 7d341a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SymmetricCircle.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from bpy.props import FloatProperty, IntProperty, BoolProperty
66

77

8-
# This is table contains constant values of truncation for a circle by each 1mm in diameter for each amount subdivision when used modifier Subdivision Surface.
9-
# keys - amount sudivision, values - value of truncation on 1mm of diameter for this subdivision
10-
circle_trunc_values = {
8+
# This is table contains constant values of truncation by radius is relatively original radius when applies modifier Subdivision Surface
9+
# keys - amount sudivision, values - value of truncation
10+
subsurf_radius_trunc_values = {
1111
4: 0.333333313, 8: 0.097631067, 12: 0.044658184, 16: 0.025373548, 20: 0.016314536, 24: 0.010971054, 28: 0.008357316, 32: 0.006404966,
1212
36: 0.004987121, 40: 0.004103929, 44: 0.003358349, 48: 0.002827346, 52: 0.002430379, 56: 0.002095923, 60: 0.001816005, 64: 0.001597404,
1313
68: 0.001415908, 72: 0.001263544, 76: 0.001138449, 80: 0.001027584, 84: 0.000932068, 88: 0.000849292, 92: 0.000777096, 96: 0.000713691,
@@ -43,11 +43,11 @@
4343

4444

4545
def calculate_segments(self):
46-
for i in circle_trunc_values.items():
46+
for i in subsurf_radius_trunc_values.items():
4747
if round(self.radius * 1000 * i[1], 2) <= self.max_trunc_radius * 1000:
4848
return i[0]
4949

50-
return list(circle_trunc_values.keys())[-1] # default value, limit the maximum value of calculate segments
50+
return list(subsurf_radius_trunc_values.keys())[-1] # default value, limit the maximum value of calculate segments
5151

5252

5353
def get_radius(self):

0 commit comments

Comments
 (0)