summaryrefslogtreecommitdiff
path: root/lib/elements/satin_column.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-07-13 19:51:25 -0400
committerGitHub <noreply@github.com>2018-07-13 19:51:25 -0400
commitc6ebfea5425229f19e12d40391ff1d6253ea4c55 (patch)
tree58a53c0730c516b9ce53ec873fd23e9463cb631f /lib/elements/satin_column.py
parent67342608b0d059bc3ec79001e62d0bc0cdb251d4 (diff)
parent6caba7b839e9f4e90ab9f3ff1110c8759e30337d (diff)
Merge pull request #224 from inkstitch/lexelby-trim-stop-commands
trim and stop commands
Diffstat (limited to 'lib/elements/satin_column.py')
-rw-r--r--lib/elements/satin_column.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py
index 1d13c5e0..2ceb38de 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -89,6 +89,17 @@ class SatinColumn(EmbroideryElement):
@property
@cache
+ def shape(self):
+ # This isn't used for satins at all, but other parts of the code
+ # may need to know the general shape of a satin column.
+
+ flattened = self.flatten(self.parse_path())
+ line_strings = [shgeo.LineString(path) for path in flattened]
+
+ return shgeo.MultiLineString(line_strings)
+
+ @property
+ @cache
def csp(self):
return self.parse_path()