MCPcopy
hub / github.com/CadQuery/cadquery / clean

Function clean

cadquery/occ_impl/shapes.py:6802–6811  ·  view source on GitHub ↗

Clean superfluous edges and faces.

(s: Shape)

Source from the content-addressed store, hash-verified

6800
6801
6802def 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
6814def fill(s: Shape, constraints: Sequence[Shape | VectorLike] = ()) -> Shape:

Callers 3

textFunction · 0.85
test_cleanFunction · 0.85
test_offset2DFunction · 0.85

Calls 1

_compound_or_shapeFunction · 0.85

Tested by 2

test_cleanFunction · 0.68
test_offset2DFunction · 0.68