kcl →
union
WARNING: This function is deprecated.
Union two or more solids into a single solid.
union(solids: [Solid]): [Solid]
Arguments
Name | Type | Description | Required |
---|---|---|---|
solids | [Solid] | The solids to union. | Yes |
Returns
Examples
fn cube(center) {
return startSketchOn(XY)
|> startProfileAt([center[0] - 10, center[1] - 10], %)
|> line(endAbsolute = [center[0] + 10, center[1] - 10])
|> line(endAbsolute = [center[0] + 10, center[1] + 10])
|> line(endAbsolute = [center[0] - 10, center[1] + 10])
|> close()
|> extrude(length = 10)
}
part001 = cube([0, 0])
part002 = cube([20, 10])
unionedPart = union([part001, part002])