From e57b6ad08276fc512fde8d8e1e2cad3ffdb438af Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 17 Oct 2019 02:49:12 +0300 Subject: [PATCH] - wip --- flatcamParsers/ParseDXF.py | 2 ++ flatcamParsers/ParseExcellon.py | 6 ++++-- flatcamParsers/ParseSVG.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flatcamParsers/ParseDXF.py b/flatcamParsers/ParseDXF.py index ac464be1..fb09d3ed 100644 --- a/flatcamParsers/ParseDXF.py +++ b/flatcamParsers/ParseDXF.py @@ -6,6 +6,8 @@ # ########################################################## from shapely.geometry import LineString +from shapely.affinity import rotate + import logging log = logging.getLogger('base2') diff --git a/flatcamParsers/ParseExcellon.py b/flatcamParsers/ParseExcellon.py index 2843e7ec..53b1c1b0 100644 --- a/flatcamParsers/ParseExcellon.py +++ b/flatcamParsers/ParseExcellon.py @@ -1099,8 +1099,10 @@ class Excellon(Geometry): Scales geometry on the XY plane in the object by a given factor. Tool sizes, feedrates an Z-plane dimensions are untouched. - :param factor: Number by which to scale the object. - :type factor: float + :param xfactor: Number by which to scale the object. + :type xfactor: float + :param yfactor: Number by which to scale the object. + :type yfactor: float :return: None :rtype: NOne """ diff --git a/flatcamParsers/ParseSVG.py b/flatcamParsers/ParseSVG.py index c1d04589..86dea225 100644 --- a/flatcamParsers/ParseSVG.py +++ b/flatcamParsers/ParseSVG.py @@ -23,7 +23,7 @@ from svg.path import Line, Arc, CubicBezier, QuadraticBezier, parse_path from svg.path.path import Move from shapely.geometry import LineString -from shapely.affinity import skew, affine_transform +from shapely.affinity import skew, affine_transform, rotate import numpy as np from flatcamParsers.ParseFont import *