@@ -436,49 +436,6 @@ static PyObject *PyRendererAgg_draw_quad_mesh(PyRendererAgg *self, PyObject *arg
436436 Py_RETURN_NONE;
437437}
438438
439- static PyObject *
440- PyRendererAgg_draw_gouraud_triangle (PyRendererAgg *self, PyObject *args)
441- {
442- GCAgg gc;
443- numpy::array_view<const double , 2 > points;
444- numpy::array_view<const double , 2 > colors;
445- agg::trans_affine trans;
446-
447- if (!PyArg_ParseTuple (args,
448- " O&O&O&O&|O:draw_gouraud_triangle" ,
449- &convert_gcagg,
450- &gc,
451- &points.converter ,
452- &points,
453- &colors.converter ,
454- &colors,
455- &convert_trans_affine,
456- &trans)) {
457- return NULL ;
458- }
459-
460- if (points.dim (0 ) != 3 || points.dim (1 ) != 2 ) {
461- PyErr_Format (PyExc_ValueError,
462- " points must have shape (3, 2), "
463- " got (%" NPY_INTP_FMT " , %" NPY_INTP_FMT " )" ,
464- points.dim (0 ), points.dim (1 ));
465- return NULL ;
466- }
467-
468- if (colors.dim (0 ) != 3 || colors.dim (1 ) != 4 ) {
469- PyErr_Format (PyExc_ValueError,
470- " colors must have shape (3, 4), "
471- " got (%" NPY_INTP_FMT " , %" NPY_INTP_FMT " )" ,
472- colors.dim (0 ), colors.dim (1 ));
473- return NULL ;
474- }
475-
476-
477- CALL_CPP (" draw_gouraud_triangle" , (self->x ->draw_gouraud_triangle (gc, points, colors, trans)));
478-
479- Py_RETURN_NONE;
480- }
481-
482439static PyObject *
483440PyRendererAgg_draw_gouraud_triangles (PyRendererAgg *self, PyObject *args)
484441{
@@ -603,7 +560,6 @@ static PyTypeObject *PyRendererAgg_init_type()
603560 {" draw_image" , (PyCFunction)PyRendererAgg_draw_image, METH_VARARGS, NULL },
604561 {" draw_path_collection" , (PyCFunction)PyRendererAgg_draw_path_collection, METH_VARARGS, NULL },
605562 {" draw_quad_mesh" , (PyCFunction)PyRendererAgg_draw_quad_mesh, METH_VARARGS, NULL },
606- {" draw_gouraud_triangle" , (PyCFunction)PyRendererAgg_draw_gouraud_triangle, METH_VARARGS, NULL },
607563 {" draw_gouraud_triangles" , (PyCFunction)PyRendererAgg_draw_gouraud_triangles, METH_VARARGS, NULL },
608564
609565 {" clear" , (PyCFunction)PyRendererAgg_clear, METH_NOARGS, NULL },
0 commit comments