- Paint Plugin: fixed an issue where a Gerber object cannot be painted using the Single Polygon selection correctly because it painted the whole geometry

This commit is contained in:
Marius Stanciu
2024-01-11 02:11:23 +02:00
parent 97bc45926a
commit 84460daa29
5 changed files with 35 additions and 24 deletions

View File

@@ -5,7 +5,7 @@
# Date: 2/5/2014 #
# MIT Licence #
# ########################################################## ##
import shapely
from PyQt6 import QtWidgets
from appCommon.Common import GracefulException as grace
@@ -887,7 +887,7 @@ class Geometry(object):
# else:
# return self.solid_geometry.bounds
def find_polygon(self, point, geoset=None):
def find_polygon(self, point, geoset=None) -> shapely.Polygon | None:
"""
Find an object that object.contains(Point(point)) in
poly, which can can be iterable, contain iterable of, or