Clean superfluous edges and faces.
(s: Shape)
| 6800 | |
| 6801 | |
| 6802 | def clean(s: Shape) -> Shape: |
| 6803 | """ |
| 6804 | Clean superfluous edges and faces. |
| 6805 | """ |
| 6806 | |
| 6807 | builder = ShapeUpgrade_UnifySameDomain(s.wrapped, True, True, True) |
| 6808 | builder.AllowInternalEdges(False) |
| 6809 | builder.Build() |
| 6810 | |
| 6811 | return _compound_or_shape(builder.Shape()) |
| 6812 | |
| 6813 | |
| 6814 | def fill(s: Shape, constraints: Sequence[Shape | VectorLike] = ()) -> Shape: |