pull/2742/head
Kaalleen 2024-02-23 16:52:29 +01:00 zatwierdzone przez GitHub
rodzic cb87279cff
commit 760f39df90
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 9 dodań i 8 usunięć

Wyświetl plik

@ -680,13 +680,14 @@ class SatinColumn(EmbroideryElement):
yield TwoRungsWarning(self.flattened_rails[0].interpolate(0.5, normalized=True))
if len(self.csp) == 2 and len(self.rails[0]) != len(self.rails[1]):
yield UnequalPointsWarning(self.flattened_rails[0].interpolate(0.5, normalized=True))
for rung in self.flattened_rungs:
for rail in self.flattened_rails:
intersection = rung.intersection(rail)
if intersection.is_empty:
yield DanglingRungWarning(rung.interpolate(0.5, normalized=True))
elif not isinstance(intersection, shgeo.Point):
yield TooManyIntersectionsWarning(rung.interpolate(0.5, normalized=True))
if len(self.csp) > 2:
for rung in self.flattened_rungs:
for rail in self.flattened_rails:
intersection = rung.intersection(rail)
if intersection.is_empty:
yield DanglingRungWarning(rung.interpolate(0.5, normalized=True))
elif not isinstance(intersection, shgeo.Point):
yield TooManyIntersectionsWarning(rung.interpolate(0.5, normalized=True))
def validation_errors(self):
# The node should have exactly two paths with the same number of points - or it should

Wyświetl plik

@ -42,7 +42,7 @@
<param indent="1" name="rung-count" type="optiongroup" appearance="combo" gui-text="Rung count"
gui-description="Only select satins with this rung count">
<option value="all">No restriction</option>
<option value="zero">No Rungs</optiagon>
<option value="zero">No Rungs</option>
<option value="two">Two Rungs</option>
</param>
</vbox>