Skip to content

Commit 0fa3893

Browse files
authored
Use transformShape instead of transformGeometry for weld nuts (#441)
The transformGeometry method turns all geometry into B-spline curves and surfaces. If the object is not scaled unequally transformShape should be used instead. Forum topic: https://forum.freecad.org/viewtopic.php?t=96751
1 parent b5801b9 commit 0fa3893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FsFunctions/FSmakeWeldNut.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _makeHexWeldNut(self, fa):
9898
# transform so that the XY-plane relates better to the installed height
9999
mat = Base.Matrix()
100100
mat.move(Base.Vector(0.0, 0.0, -h1))
101-
shape = shape.transformGeometry(mat)
101+
shape = shape.transformShape(mat)
102102
return shape
103103

104104

@@ -211,5 +211,5 @@ def _makeSquareWeldNut(self, fa):
211211
# transform so that the XY-plane relates better to the installed height
212212
mat = Base.Matrix()
213213
mat.move(Base.Vector(0.0, 0.0, -h1))
214-
shape = shape.transformGeometry(mat)
214+
shape = shape.transformShape(mat)
215215
return shape

0 commit comments

Comments
 (0)