You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I fall on strange issue with clean on sketch, some faces of complexe sketch are not correctly removed. I tried to create a simple test case
From svg containing two path, I recreate edges, then face and making union from these two faces. The second face is completly inside the first one.
But following the path rotation of the second one (which is 2 arcs for a full circle) the clean function doesn't work
The only difference here is:
Wire.combine([
Edge.makeThreePointArc((5.3882, 37.5328), (5.7382, 37.1828), (6.0882, 37.5328))
Edge.makeThreePointArc((6.0882, 37.5328), (5.7382, 37.8828), (5.3882, 37.5328))])
Using following function before running clean seems to work
def normalize_faces(sketch):
sketch._faces = Compound.makeCompound([Face(f.wrapped.Reversed()) if f.normalAt().z < 0 else f for f in sketch.faces()])
return sketch
I fall on strange issue with clean on sketch, some faces of complexe sketch are not correctly removed. I tried to create a simple test case
From svg containing two path, I recreate edges, then face and making union from these two faces. The second face is completly inside the first one.
But following the path rotation of the second one (which is 2 arcs for a full circle) the clean function doesn't work
eddddd_ok.svg file:
eddddd_ko.svg file:
test.py file:
And here the results: https://imgur.com/a/4JZ0p26
The only difference here is:
Wire.combine([
Edge.makeThreePointArc((5.3882, 37.5328), (5.7382, 37.1828), (6.0882, 37.5328))
Edge.makeThreePointArc((6.0882, 37.5328), (5.7382, 37.8828), (5.3882, 37.5328))])
vs
Wire.combine([
Edge.makeThreePointArc((5.3882, 37.5328), (5.7382, 37.8828), (6.0882, 37.5328))
Edge.makeThreePointArc((6.0882, 37.5328), (5.7382, 37.1828), (5.3882, 37.5328))])
The text was updated successfully, but these errors were encountered: