Skip to content

Commit 1f30ae6

Browse files
authored
xrange() no longer exists in python3 => range()
1 parent 030895e commit 1f30ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OCCUtils/Common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def resample_curve_with_uniform_deflection(curve, deflection=0.5, degreeMin=3, d
438438
defl = GCPnts_UniformDeflection(crv, deflection)
439439
with assert_isdone(defl, 'failed to compute UniformDeflection'):
440440
print("Number of points:", defl.NbPoints())
441-
sampled_pnts = [defl.Value(i) for i in xrange(1, defl.NbPoints())]
441+
sampled_pnts = [defl.Value(i) for i in range(1, defl.NbPoints())]
442442
resampled_curve = GeomAPI_PointsToBSpline(point_list_to_TColgp_Array1OfPnt(sampled_pnts), degreeMin, degreeMax, continuity, tolerance)
443443
return resampled_curve.Curve().GetObject()
444444

0 commit comments

Comments
 (0)