Skip to content

Commit bb1fdb2

Browse files
committed
Refactor freeform module for 6.x
1 parent 932721b commit bb1fdb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

geomdl/freeform.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:platform: Unix, Windows
44
:synopsis: Provides freeform geometry classes
55
6-
.. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com>
6+
.. moduleauthor:: Onur R. Bingol <contact@onurbingol.net>
77
88
"""
99

@@ -12,9 +12,9 @@
1212

1313
class Freeform(abstract.Geometry):
1414
""" n-dimensional freeform geometry """
15-
def __init__(self, **kwargs):
16-
super(Freeform, self).__init__(**kwargs)
17-
self._geometry_type = "freeform"
15+
def __init__(self, *args, **kwargs):
16+
super(Freeform, self).__init__(*args, **kwargs)
17+
self._idt['geometry_type'] = "freeform"
1818
self.name = "freeform geometry"
1919

2020
@property
@@ -36,4 +36,4 @@ def evaluate(self, **kwargs):
3636
* ``points``: sets the points
3737
"""
3838
self._eval_points = kwargs.get('points', self._init_array())
39-
self._dimension = len(self._eval_points[0])
39+
self._idt['dimension'] = len(self._eval_points[0])

0 commit comments

Comments
 (0)