From edc7e3ed8c6612941f211aa5153022ce2ae2b1aa Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Fri, 28 Feb 2020 10:48:50 +0000 Subject: [PATCH] [Draft] WireToBSpline Fix makeWire Placement See discussion https://forum.freecadweb.org/viewtopic.php?f=23&t=43184 --- src/Mod/Draft/Draft.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index febc7082d6..af0530e8b4 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -361,7 +361,7 @@ def makeAngularDimension(center,angles,p3,normal=None): return obj -def makeWire(pointslist,closed=False,placement=None,face=None,support=None): +def makeWire(pointslist,closed=False,placement=None,face=None,support=None,bs2wire=False): """makeWire(pointslist,[closed],[placement]): Creates a Wire object from the given list of vectors. If closed is True or first and last points are identical, the wire is closed. If face is @@ -387,7 +387,8 @@ def makeWire(pointslist,closed=False,placement=None,face=None,support=None): if placement: typecheck([(placement,FreeCAD.Placement)], "makeWire") ipl = placement.inverse() - pointslist = [ipl.multVec(p) for p in pointslist] + if bs2wire is not True: + pointslist = [ipl.multVec(p) for p in pointslist] if len(pointslist) == 2: fname = "Line" else: fname = "Wire" obj = FreeCAD.ActiveDocument.addObject("Part::Part2DObjectPython",fname)