Skip to content

Commit

Permalink
Fix for linearextrude with twist
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithSloan authored and wwmayer committed May 11, 2017
1 parent 56e023a commit 513efcb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Mod/OpenSCAD/OpenSCADFeatures.py
Expand Up @@ -382,7 +382,9 @@ def createGeometry(self,fp):
facetransform.rotateZ(math.radians(fp.Angle.Value))
facetransform.move(FreeCAD.Vector(0,0,fp.Height.Value))
faceu.transformShape(facetransform)
step = 2 + int(fp.Angle.Value // 90) #resolution in z direction
step = 2 + abs(int(fp.Angle.Value // 90)) #resolution in z direction
# print abs(int(fp.Angle.Value // 90)) #resolution in z direction
# print step
zinc = fp.Height.Value/(step-1.0)
angleinc = math.radians(fp.Angle.Value)/(step-1.0)
spine = Part.makePolygon([(0,0,i*zinc) \
Expand All @@ -395,7 +397,9 @@ def createGeometry(self,fp):
pipeshell=Part.BRepOffsetAPI.MakePipeShell(spine)
pipeshell.setSpineSupport(spine)
pipeshell.add(wire)
pipeshell.setAuxiliarySpine(auxspine,True,False)
# Was before function change
# pipeshell.setAuxiliarySpine(auxspine,True,False)
pipeshell.setAuxiliarySpine(auxspine,True,long(0))
print(pipeshell.getStatus())
assert(pipeshell.isReady())
#fp.Shape=pipeshell.makeSolid()
Expand Down

0 comments on commit 513efcb

Please sign in to comment.