diff options
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/satin_column.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 912dad4b..2353fc1c 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -556,7 +556,7 @@ class SatinColumn(EmbroideryElement): def csp(self): paths = self.parse_path() # exclude subpaths which are just a point - paths = [path for path in paths if shgeo.LineString(self.flatten_subpath(path)).length > 0] + paths = [path for path in paths if len(self.flatten_subpath(path)) > 1] return paths @property @@ -641,7 +641,7 @@ class SatinColumn(EmbroideryElement): @cache def rail_indices(self): paths = [self.flatten_subpath(subpath) for subpath in self.csp] - paths = [shgeo.LineString(path) for path in paths] + paths = [shgeo.LineString(path) for path in paths if len(path) > 1] num_paths = len(paths) # Imagine a satin column as a curvy ladder. |
