Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wackywendell committed Apr 21, 2015
1 parent f31a9ea commit 7fa8c5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tess/_voro.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ cdef class Cell:
return list(zip(v[::3], v[1::3], v[2::3]))

def neighbors(self):
r"""
Return a list of the *neighbors* of the current `Cell`.
This is a list of indices, which correspond to the input points. The exception to this
is the walls: walls are numbered -1 to -6, so an index less than 0 in the list of
`neighbors()` indicates that a `Cell` is neighbors with a wall.
"""
cdef vector[int] v
self.thisptr.neighbors(v)
return v
Expand Down

0 comments on commit 7fa8c5d

Please sign in to comment.