Skip to content

Commit

Permalink
Changed Documentation to include range.
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-chaudhari1 committed May 1, 2021
1 parent 051ef0e commit 5e56a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fury/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def surface(vertices, faces=None, colors=None, smooth=None, subdivision=3):
It is an optional parameter, it is computed locally if None
colors : (N, 3) array
Specifies the colors associated with each vertex in the
vertices array.
vertices array. Range should be 0 to 1.
Optional parameter, if not passed, all vertices
are colored white
smooth : string - "loop" or "butterfly"
Expand All @@ -298,7 +298,7 @@ def surface(vertices, faces=None, colors=None, smooth=None, subdivision=3):

if colors is not None:
triangle_poly_data.GetPointData().\
SetScalars(numpy_to_vtk_colors(colors))
SetScalars(numpy_to_vtk_colors(255 * colors))

if faces is None:
tri = Delaunay(vertices[:, [0, 1]])
Expand Down

0 comments on commit 5e56a7d

Please sign in to comment.