Merge pull request #4712 from tomate44/wirestring

Draft.ShapeString : add option to choose wires or faces output
This commit is contained in:
Yorik van Havre
2021-04-07 13:06:22 +02:00
committed by GitHub

View File

@@ -55,6 +55,9 @@ class ShapeString(DraftObject):
_tip = QT_TRANSLATE_NOOP("App::Property", "Inter-character spacing")
obj.addProperty("App::PropertyLength", "Tracking", "Draft", _tip)
_tip = QT_TRANSLATE_NOOP("App::Property", "Fill letters")
obj.addProperty("App::PropertyBool", "FillLetters", "Draft", _tip).FillLetters = True
def execute(self, obj):
import Part
# import OpenSCAD2Dgeom
@@ -91,8 +94,12 @@ class ShapeString(DraftObject):
else:
sticky = True
fill = True
if hasattr(obj, "FillLetters"):
fill = obj.FillLetters
for char in CharList:
if sticky:
if sticky or (not fill):
for CWire in char:
SSChars.append(CWire)
else: