Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc1e9c1

Browse files
authored
Merge pull request #22342 from anntzer/_qhull
Docstrings for _qhull.
2 parents 67e69e9 + 27d6745 commit dc1e9c1

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/qhull_wrap.cpp

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,25 @@ version(PyObject *self, PyObject *arg)
301301
}
302302

303303
static PyMethodDef qhull_methods[] = {
304-
{"delaunay", delaunay, METH_VARARGS, ""},
305-
{"version", version, METH_NOARGS, ""},
304+
{"delaunay", delaunay, METH_VARARGS,
305+
"delaunay(x, y, /)\n"
306+
"--\n\n"
307+
"Compute a Delaunay triangulation.\n"
308+
"\n"
309+
"Parameters\n"
310+
"----------\n"
311+
"x, y : 1d arrays\n"
312+
" The coordinates of the point set, which must consist of at least \n"
313+
" three unique points.\n"
314+
"\n"
315+
"Returns\n"
316+
"-------\n"
317+
"triangles, neighbors : int arrays, shape (ntri, 3)\n"
318+
" Indices of triangle vertices and indices of triangle neighbors.\n"
319+
},
320+
{"version", version, METH_NOARGS,
321+
"version()\n--\n\n"
322+
"Return the qhull version string."},
306323
{NULL, NULL, 0, NULL}
307324
};
308325

0 commit comments

Comments
 (0)