freecad-heini-1 wrote:If you extrude a sketch with a taper angle in xy plane, it works fine.
But if you extrude in xz and yz direction, it's wrong.
It does not even work correctly when the sketch is in xy plane. Just observe the height of the drafted object: it will be 20 instead of 10.
The actual problem seems to be the OCCT class BRepOffsetAPI_MakeOffset which has a very strange behaviour. If the underlying shape to be offset has a placement applied then this class applies it a second time on the output shape.
wire1=App.ActiveDocument.Sketch.Shape # the xy sketch
wire1.Placement
# empty placement
wire2=wire1.makeOffset2D(-0.5)
Part.show(wire2)
# wire2 is ok
wire3=wire1.copy()
wire3.Placement.Base.z=10
wire3.Placement
# wire has been moved along z axis
Part.show(wire3)
wire4=wire3.makeOffset2D(-0.5)
Part.show(wire4)
# wire4 again has been moved along z which is not OK
freecad-heini-1 wrote:If you extrude a sketch with a taper angle in xy plane, it works fine.
But if you extrude in xz and yz direction, it's wrong.
It does not even work correctly when the sketch is in xy plane. Just observe the height of the drafted object: it will be 20 instead of 10.
The actual problem seems to be the OCCT class BRepOffsetAPI_MakeOffset which has a very strange behaviour. If the underlying shape to be offset has a placement applied then this class applies it a second time on the output shape.
It looks like that the problem only occurs if the basis wire consists of a single edge. If you make a sketch with two half-circles then the extrusion works independent from the sketch plane.
wmayer wrote: ↑Thu Jan 24, 2019 10:05 pm
It looks like that the problem only occurs if the basis wire consists of a single edge. If you make a sketch with two half-circles then the extrusion works independent from the sketch plane.
Hi Werner,
thank you so much for your ongoing great work here. Two half circle, that's a hack I can work with.
Best regards
Wilfried
wmayer wrote: ↑Fri Jan 25, 2019 9:10 am
You don't need to. With git commit 4079c9603fe it should work out of the box now.
Your getting a bit slow Werner....a whole hour and 5 minutes to fix and report a bug! You must need more caffeine, come over to my place mate and I'll make you a coffee.
Actually I am feeling generous, I'll take you into town to a nice caffee and buy you one, it's only about a 60km drive.