Skip to content

Commit

Permalink
Fixes RH-30638
Browse files Browse the repository at this point in the history
  • Loading branch information
piac committed Jun 23, 2015
1 parent 0799cca commit 0d23eaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scripts/rhinoscript/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ def coerce3dpointlist(points, raise_on_error=False):
pt = Rhino.Geometry.Point3d(points[i*3], points[i*3+1], points[i*3+2])
rc.append(pt)
return rc
if hasattr(points, '__iter__'):
return [coerce3dpoint(pt, raise_on_error) for pt in points]
if raise_on_error: raise ValueError("Could not convert %s to a list of points" % points)


Expand Down

0 comments on commit 0d23eaf

Please sign in to comment.