Build compound from shapes.
(*s: Shape)
| 6206 | |
| 6207 | @multimethod |
| 6208 | def 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 |