Closed Jopie01 closed 1 week ago
xDir
is optional when creating the plane. It is computed automatically if not specified.
Try with explicit xDir:
plane = cq.Plane(
origin=path.val().startPoint(),
xDir=(1, 0, 0),
normal=path.val().tangentAt(0),
)
Indeed, using explicitly the xDir
, everything stays where it should be.
Thanks again.
I walk into the situation where I do a sweep or extrude from a plane which has an angle of 45 degrees. At that moment the object is flips. Use the code below for reproduction.
I draw a line with an angle and put a plane at the startpoint which is normal to that line. Then I use that plane to draw a L-shaped sketch and sweep it or extrude it. In both cases the result its flipped.