Closed OvisMaximus closed 1 year ago
Thank you for raising this bug. The problem was actually in CenterArc
- it wasn't being built on Plane.XZ which when combined with the Polyline
with a point that was being placed on Plane.XZ (0, 5)
resulted in a non-planar set of edges and therefore the above error message. CenterArc
has been fixed now so the line is built on Plane.XZ which results in the desired end shape:
As you use build123d, if you see anything else that doesn't look right please raise another issue(s).
given the following code:
I get a ValueError: Cannot build face(s): wires not planar
When the comment of the BuildLine() line is moved to the other line, it renders just fine.
Expectation: according to documentation, for all Builders the default is to use the XY plane. In this situation this makes no sense, so I explicitly stated the plane I want to use to draw the sketch.
The observed behavior of the rendered model is what I expect - the plane of the sketch builder is adopted by the line builder. The observed behavior of the debug rendering is not what I expect because it is rendered on the default XY plane. Given that adopting the orientation (and location) of the surrounding builder as default overriding the XY default, it is also puzzeling that you will get a different orientation of the part when removing the explicit XZ plane in the constructor of the sketch builder:
Additional fun fact: when you replace
l4
by a straightLine(l1 @ 1, l2 @ 0)
both initialisations of BuildLine work out well.