diff options
author | jimmyhaze <jimhazevoet@gmail.com> | 2017-06-01 12:07:50 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2017-06-01 12:07:50 +0300 |
commit | 6129bc3102c222bb1c0cea60b1ad5082db2f5b8c (patch) | |
tree | f919ecb13db722157f02373b2b9f993c5c6b4d8f /add_curve_extra_objects | |
parent | b5d1d095fd6432182654f9bd0e5cc3ac8b76c2a1 (diff) |
add curves galore: fix for last commit
Diffstat (limited to 'add_curve_extra_objects')
-rw-r--r-- | add_curve_extra_objects/add_curve_aceous_galore.py | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/add_curve_extra_objects/add_curve_aceous_galore.py b/add_curve_extra_objects/add_curve_aceous_galore.py index 14402e31..4ea44b72 100644 --- a/add_curve_extra_objects/add_curve_aceous_galore.py +++ b/add_curve_extra_objects/add_curve_aceous_galore.py @@ -597,9 +597,9 @@ def CycloidCurve(number=100, type=0, R=4.0, r=1.0, d=1.0): else: # Cycloid while i < number: - t = (i * step * pi) * a - x = (t - sin(t) * b) * 0.5 - y = (1 - cos(t) * b) * 0.5 + t = (i * step * pi) + x = (t - sin(t) * b) * a / pi + y = (1 - cos(t) * b) * a / pi z = 0 newpoints.append([x, y, z]) i += 1 @@ -1445,3 +1445,17 @@ class Curveaceous_galore(Operator): self.execute(context) return {'FINISHED'} + + +''' +def register(): + bpy.utils.register_module(__name__) + + +def unregister(): + bpy.utils.unregister_module(__name__) + + +if __name__ == '__main__': + register() +''' |