Skip to content

Commit 06737f7

Browse files
authored
Update operations.py
1 parent 8466c52 commit 06737f7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

geomdl/operations.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,9 +1721,9 @@ def extract_curve_u(obj, param, **kwargs):
17211721

17221722
# Control points
17231723
if (param == 0):
1724-
curve_ctrlpts = temp_obj.ctrlpts2d[0]
1724+
curve_ctrlpts = obj.ctrlpts2d[0]
17251725
elif (param == 1):
1726-
curve_ctrlpts = temp_obj.ctrlpts2d[-1]
1726+
curve_ctrlpts = obj.ctrlpts2d[-1]
17271727
else:
17281728
curve_ctrlpts = temp_obj.ctrlpts2d[ks + r - 1]
17291729

@@ -1739,7 +1739,7 @@ def extract_curve_u(obj, param, **kwargs):
17391739

17401740

17411741
@export
1742-
def extract_surface_v(obj, param, **kwargs):
1742+
def extract_curve_v(obj, param, **kwargs):
17431743
""" Extracts the curve at the input parametric coordinate on the v-direction.
17441744
17451745
Keyword Arguments:
@@ -1775,13 +1775,16 @@ def extract_surface_v(obj, param, **kwargs):
17751775
# Control points
17761776
curve_ctrlpts = []
17771777
idx = 0
1778+
o = temp_obj
17781779
if (param == 0):
17791780
idx = 0
1781+
o = obj
17801782
elif (param == 1):
17811783
idx = -1
1784+
o = obj
17821785
else:
17831786
idx = ks + r - 1
1784-
for v_row in temp_obj.ctrlpts2d:
1787+
for v_row in o.ctrlpts2d:
17851788
temp = v_row[idx]
17861789
curve_ctrlpts.append(temp)
17871790

0 commit comments

Comments
 (0)