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

Function compound

cadquery/occ_impl/shapes.py:6208–6221  ·  view source on GitHub ↗

Build compound from shapes.

(*s: Shape)

Source from the content-addressed store, hash-verified

6206
6207@multimethod
6208def compound(*s: Shape) -> Compound:
6209 """
6210 Build compound from shapes.
6211 """
6212
6213 rv = TopoDS_Compound()
6214
6215 builder = TopoDS_Builder()
6216 builder.MakeCompound(rv)
6217
6218 for el in s:
6219 builder.Add(rv, el.wrapped)
6220
6221 return Compound(rv)
6222
6223
6224@multimethod

Callers 15

test_isSolidFunction · 0.90
test_specialFunction · 0.90
test_lineMethod · 0.90
test_circleMethod · 0.90
test_arcMethod · 0.90
test_ellipseMethod · 0.90
test_splineMethod · 0.90
_selected_facesMethod · 0.85
__getitem__Method · 0.85
__getattr__Method · 0.85
replaceMethod · 0.85
filterMethod · 0.85

Calls 1

CompoundClass · 0.85

Tested by 15

test_isSolidFunction · 0.72
test_specialFunction · 0.72
test_lineMethod · 0.72
test_circleMethod · 0.72
test_arcMethod · 0.72
test_ellipseMethod · 0.72
test_splineMethod · 0.72
test_extrude_faceMethod · 0.68
test_loft_faceMethod · 0.68
test_loft_to_vertexMethod · 0.68
test_utilsFunction · 0.68