Skip to content

Commit d2b8ab1

Browse files
committed
Rename make_mesh to make_quad
1 parent f057ccb commit d2b8ab1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

geomdl/BSpline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ def save_ctrlpts_to_csv(self, filename="", scalar=0, mode='linear'):
11551155
:rtype: bool
11561156
"""
11571157
# Check possible modes
1158-
mode_list = ['linear', 'zigzag', 'mesh']
1158+
mode_list = ['linear', 'zigzag', 'quad']
11591159
if mode not in mode_list:
11601160
warnings.warn("Input mode is not valid, defaulting to linear.")
11611161

@@ -1179,7 +1179,7 @@ def save_ctrlpts_to_csv(self, filename="", scalar=0, mode='linear'):
11791179
if mode == 'zigzag':
11801180
ctrlpts = utils.make_zigzag(ctrlpts, self._control_points_size_v)
11811181
if mode == 'mesh':
1182-
ctrlpts = utils.make_mesh(ctrlpts, self._control_points_size_v, self._control_points_size_u)
1182+
ctrlpts = utils.make_quad(ctrlpts, self._control_points_size_v, self._control_points_size_u)
11831183

11841184
# Loop through control points
11851185
for pt in ctrlpts:
@@ -1211,7 +1211,7 @@ def save_surfpts_to_csv(self, filename="", scalar=0, mode='linear'):
12111211
:rtype: bool
12121212
"""
12131213
# Check possible modes
1214-
mode_list = ['linear', 'zigzag', 'triangle']
1214+
mode_list = ['linear', 'zigzag', 'quad', 'triangle']
12151215
if mode not in mode_list:
12161216
warnings.warn("Input mode is not valid, defaulting to linear.")
12171217

geomdl/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def make_zigzag(points, row_size):
259259
return new_points
260260

261261

262-
def make_mesh(points, row_size, col_size):
262+
def make_quad(points, row_size, col_size):
263263
new_points = make_zigzag(points, row_size)
264264
points_reverse = copy.deepcopy(points)
265265
points_reverse.reverse()

0 commit comments

Comments
 (0)