@@ -445,3 +445,133 @@ index 81eae82..80ee5af 100644
445
445
"numpy>=1.15",
446
446
"pillow>=6.2.0",
447
447
"pyparsing>=2.0.3,!=2.0.4,!=2.1.2,!=2.1.6",
448
+ diff --git a/src/_path_wrapper.cpp b/src/_path_wrapper.cpp
449
+ index 708d7d3..f4484ac 100644
450
+ --- a/src/_path_wrapper.cpp
451
+ +++ b/src/_path_wrapper.cpp
452
+ @@ -30,7 +30,7 @@ PyObject *convert_polygon_vector(std::vector<Polygon> &polygons)
453
+
454
+ const char *Py_point_in_path__doc__ = "point_in_path(x, y, radius, path, trans)";
455
+
456
+ - static PyObject *Py_point_in_path(PyObject *self, PyObject *args, PyObject *kwds)
457
+ + static PyObject *Py_point_in_path(PyObject *self, PyObject *args)
458
+ {
459
+ double x, y, r;
460
+ py::PathIterator path;
461
+ @@ -60,7 +60,7 @@ static PyObject *Py_point_in_path(PyObject *self, PyObject *args, PyObject *kwds
462
+
463
+ const char *Py_points_in_path__doc__ = "points_in_path(points, radius, path, trans)";
464
+
465
+ - static PyObject *Py_points_in_path(PyObject *self, PyObject *args, PyObject *kwds)
466
+ + static PyObject *Py_points_in_path(PyObject *self, PyObject *args)
467
+ {
468
+ numpy::array_view<const double, 2> points;
469
+ double r;
470
+ @@ -89,7 +89,7 @@ static PyObject *Py_points_in_path(PyObject *self, PyObject *args, PyObject *kwd
471
+
472
+ const char *Py_point_on_path__doc__ = "point_on_path(x, y, radius, path, trans)";
473
+
474
+ - static PyObject *Py_point_on_path(PyObject *self, PyObject *args, PyObject *kwds)
475
+ + static PyObject *Py_point_on_path(PyObject *self, PyObject *args)
476
+ {
477
+ double x, y, r;
478
+ py::PathIterator path;
479
+ @@ -119,7 +119,7 @@ static PyObject *Py_point_on_path(PyObject *self, PyObject *args, PyObject *kwds
480
+
481
+ const char *Py_points_on_path__doc__ = "points_on_path(points, radius, path, trans)";
482
+
483
+ - static PyObject *Py_points_on_path(PyObject *self, PyObject *args, PyObject *kwds)
484
+ + static PyObject *Py_points_on_path(PyObject *self, PyObject *args)
485
+ {
486
+ numpy::array_view<const double, 2> points;
487
+ double r;
488
+ @@ -148,7 +148,7 @@ static PyObject *Py_points_on_path(PyObject *self, PyObject *args, PyObject *kwd
489
+
490
+ const char *Py_get_path_extents__doc__ = "get_path_extents(path, trans)";
491
+
492
+ - static PyObject *Py_get_path_extents(PyObject *self, PyObject *args, PyObject *kwds)
493
+ + static PyObject *Py_get_path_extents(PyObject *self, PyObject *args)
494
+ {
495
+ py::PathIterator path;
496
+ agg::trans_affine trans;
497
+ @@ -176,7 +176,7 @@ static PyObject *Py_get_path_extents(PyObject *self, PyObject *args, PyObject *k
498
+ const char *Py_update_path_extents__doc__ =
499
+ "update_path_extents(path, trans, rect, minpos, ignore)";
500
+
501
+ - static PyObject *Py_update_path_extents(PyObject *self, PyObject *args, PyObject *kwds)
502
+ + static PyObject *Py_update_path_extents(PyObject *self, PyObject *args)
503
+ {
504
+ py::PathIterator path;
505
+ agg::trans_affine trans;
506
+ @@ -252,7 +252,7 @@ static PyObject *Py_update_path_extents(PyObject *self, PyObject *args, PyObject
507
+
508
+ const char *Py_get_path_collection_extents__doc__ = "get_path_collection_extents(";
509
+
510
+ - static PyObject *Py_get_path_collection_extents(PyObject *self, PyObject *args, PyObject *kwds)
511
+ + static PyObject *Py_get_path_collection_extents(PyObject *self, PyObject *args)
512
+ {
513
+ agg::trans_affine master_transform;
514
+ PyObject *pathsobj;
515
+ @@ -302,7 +302,7 @@ const char *Py_point_in_path_collection__doc__ =
516
+ "point_in_path_collection(x, y, radius, master_transform, paths, transforms, offsets, "
517
+ "offset_trans, filled, offset_position)";
518
+
519
+ - static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyObject *kwds)
520
+ + static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args)
521
+ {
522
+ double x, y, radius;
523
+ agg::trans_affine master_transform;
524
+ @@ -367,7 +367,7 @@ static PyObject *Py_point_in_path_collection(PyObject *self, PyObject *args, PyO
525
+
526
+ const char *Py_path_in_path__doc__ = "path_in_path(path_a, trans_a, path_b, trans_b)";
527
+
528
+ - static PyObject *Py_path_in_path(PyObject *self, PyObject *args, PyObject *kwds)
529
+ + static PyObject *Py_path_in_path(PyObject *self, PyObject *args)
530
+ {
531
+ py::PathIterator a;
532
+ agg::trans_affine atrans;
533
+ @@ -399,7 +399,7 @@ static PyObject *Py_path_in_path(PyObject *self, PyObject *args, PyObject *kwds)
534
+
535
+ const char *Py_clip_path_to_rect__doc__ = "clip_path_to_rect(path, rect, inside)";
536
+
537
+ - static PyObject *Py_clip_path_to_rect(PyObject *self, PyObject *args, PyObject *kwds)
538
+ + static PyObject *Py_clip_path_to_rect(PyObject *self, PyObject *args)
539
+ {
540
+ py::PathIterator path;
541
+ agg::rect_d rect;
542
+ @@ -424,7 +424,7 @@ static PyObject *Py_clip_path_to_rect(PyObject *self, PyObject *args, PyObject *
543
+
544
+ const char *Py_affine_transform__doc__ = "affine_transform(points, trans)";
545
+
546
+ - static PyObject *Py_affine_transform(PyObject *self, PyObject *args, PyObject *kwds)
547
+ + static PyObject *Py_affine_transform(PyObject *self, PyObject *args)
548
+ {
549
+ PyObject *vertices_obj;
550
+ agg::trans_affine trans;
551
+ @@ -461,7 +461,7 @@ static PyObject *Py_affine_transform(PyObject *self, PyObject *args, PyObject *k
552
+
553
+ const char *Py_count_bboxes_overlapping_bbox__doc__ = "count_bboxes_overlapping_bbox(bbox, bboxes)";
554
+
555
+ - static PyObject *Py_count_bboxes_overlapping_bbox(PyObject *self, PyObject *args, PyObject *kwds)
556
+ + static PyObject *Py_count_bboxes_overlapping_bbox(PyObject *self, PyObject *args)
557
+ {
558
+ agg::rect_d bbox;
559
+ numpy::array_view<const double, 3> bboxes;
560
+ @@ -595,7 +595,7 @@ const char *Py_cleanup_path__doc__ =
561
+ "cleanup_path(path, trans, remove_nans, clip_rect, snap_mode, stroke_width, simplify, "
562
+ "return_curves, sketch)";
563
+
564
+ - static PyObject *Py_cleanup_path(PyObject *self, PyObject *args, PyObject *kwds)
565
+ + static PyObject *Py_cleanup_path(PyObject *self, PyObject *args)
566
+ {
567
+ py::PathIterator path;
568
+ agg::trans_affine trans;
569
+ @@ -675,7 +675,7 @@ static PyObject *Py_cleanup_path(PyObject *self, PyObject *args, PyObject *kwds)
570
+ const char *Py_convert_to_string__doc__ = "convert_to_string(path, trans, "
571
+ "clip_rect, simplify, sketch, precision, codes, postfix)";
572
+
573
+ - static PyObject *Py_convert_to_string(PyObject *self, PyObject *args, PyObject *kwds)
574
+ + static PyObject *Py_convert_to_string(PyObject *self, PyObject *args)
575
+ {
576
+ py::PathIterator path;
577
+ agg::trans_affine trans;
0 commit comments