@@ -258,10 +258,12 @@ delaunay(PyObject *self, PyObject *args)
258258 npy_intp npoints;
259259 const double * x;
260260 const double * y;
261+ int verbose = 0 ;
261262
262- if (!PyArg_ParseTuple (args, " O&O&" ,
263+ if (!PyArg_ParseTuple (args, " O&O&i:delaunay " ,
263264 &xarray.converter_contiguous , &xarray,
264- &yarray.converter_contiguous , &yarray)) {
265+ &yarray.converter_contiguous , &yarray,
266+ &verbose)) {
265267 return NULL ;
266268 }
267269
@@ -288,7 +290,7 @@ delaunay(PyObject *self, PyObject *args)
288290 }
289291
290292 CALL_CPP (" qhull.delaunay" ,
291- (ret = delaunay_impl (npoints, x, y, Py_VerboseFlag == 0 )));
293+ (ret = delaunay_impl (npoints, x, y, verbose == 0 )));
292294
293295 return ret;
294296}
@@ -302,7 +304,7 @@ version(PyObject *self, PyObject *arg)
302304
303305static PyMethodDef qhull_methods[] = {
304306 {" delaunay" , delaunay, METH_VARARGS,
305- " delaunay(x, y, /)\n "
307+ " delaunay(x, y, verbose, /)\n "
306308 " --\n\n "
307309 " Compute a Delaunay triangulation.\n "
308310 " \n "
@@ -311,6 +313,8 @@ static PyMethodDef qhull_methods[] = {
311313 " x, y : 1d arrays\n "
312314 " The coordinates of the point set, which must consist of at least\n "
313315 " three unique points.\n "
316+ " verbose : int\n "
317+ " Python's verbosity level.\n "
314318 " \n "
315319 " Returns\n "
316320 " -------\n "
0 commit comments