- enhanced the Tool Film adding the Film adjustments and added the GUI in Preferences
- set the GUI layout in Preferences for a new category named Tools 2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# ########################################################## ##
|
||||
# ##########################################################
|
||||
# FlatCAM: 2D Post-processing for Manufacturing #
|
||||
# http://flatcam.org #
|
||||
# Author: Juan Pablo Caram (c) #
|
||||
@@ -17,7 +17,7 @@
|
||||
# * All transformations #
|
||||
# #
|
||||
# Reference: www.w3.org/TR/SVG/Overview.html #
|
||||
# ########################################################## ##
|
||||
# ##########################################################
|
||||
|
||||
# import xml.etree.ElementTree as ET
|
||||
from svg.path import Line, Arc, CubicBezier, QuadraticBezier, parse_path
|
||||
@@ -136,6 +136,7 @@ def path2shapely(path, object_type, res=1.0):
|
||||
|
||||
return geometry
|
||||
|
||||
|
||||
def svgrect2shapely(rect, n_points=32):
|
||||
"""
|
||||
Converts an SVG rect into Shapely geometry.
|
||||
@@ -284,7 +285,7 @@ def svgpolygon2shapely(polygon):
|
||||
# return LinearRing(points)
|
||||
|
||||
|
||||
def getsvggeo(node, object_type, root = None):
|
||||
def getsvggeo(node, object_type, root=None):
|
||||
"""
|
||||
Extracts and flattens all geometry from an SVG node
|
||||
into a list of Shapely geometry.
|
||||
@@ -482,6 +483,7 @@ def getsvgtext(node, object_type, units='MM'):
|
||||
|
||||
return geo
|
||||
|
||||
|
||||
def parse_svg_point_list(ptliststr):
|
||||
"""
|
||||
Returns a list of coordinate pairs extracted from the "points"
|
||||
|
||||
Reference in New Issue
Block a user