- Paint Tool: fixed the calculation of object bounds

- camlib: updated the method used to calculate the extrapolated lines for the laser_lines method: camlib.fill_with_lines()
This commit is contained in:
Marius Stanciu
2023-12-06 19:21:55 +02:00
parent 89dd51ff99
commit 825a05d538
4 changed files with 154 additions and 145 deletions

View File

@@ -447,7 +447,7 @@ def getsvggeo(node, object_type, root=None, units='MM', res=64, factor=1.0, app=
else:
log = logging.getLogger('base2')
kind = re.search('(?:\{.*\})?(.*)$', node.tag).group(1)
kind = re.search('(?:\{.*})?(.*)$', node.tag).group(1)
geo = []
# Recurse
@@ -558,7 +558,7 @@ def getsvgtext(node, object_type, app, units='MM'):
:return: List of Shapely geometry
:rtype: list
"""
kind = re.search('(?:\{.*\})?(.*)$', node.tag).group(1)
kind = re.search('(?:\{.*})?(.*)$', node.tag).group(1)
geo = []
# Recurse