Skip to content

Commit e2e6714

Browse files
author
Andrea Mola
committed
more improvements to FFD cad tests. Added hollow cylinder files
1 parent dcffe7d commit e2e6714

File tree

6 files changed

+9720
-5864
lines changed

6 files changed

+9720
-5864
lines changed

pygem/cad/ffd.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,7 @@ class FFD(OriginalFFD):
103103
>>> ffd(input_cad_file_name,modified_cad_file_name)
104104
"""
105105
def __init__(self, n_control_points=None):
106-
self.conversion_unit = 1.
107-
108-
self.box_length = np.array([1., 1., 1.])
109-
self.box_origin = np.array([0., 0., 0.])
110-
self.rot_angle = np.array([0., 0., 0.])
111-
112-
self.array_mu_x = None
113-
self.array_mu_y = None
114-
self.array_mu_z = None
115-
116-
if n_control_points is None:
117-
n_control_points = [2, 2, 2]
118-
self.n_control_points = n_control_points
106+
super().__init__(n_control_points=None)
119107
self.uKnotsToAdd = 30
120108
self.vKnotsToAdd = 30
121109
self.knotsToAdd = 30
@@ -136,7 +124,6 @@ def __call__(self, obj, dst=None):
136124
else:
137125
raise TypeError
138126

139-
print("Modifying faces")
140127

141128
#create compound to store modified faces
142129
compound_builder = BRep_Builder()

0 commit comments

Comments
 (0)