* initial placeholder csg functions Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * generate docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * generate docs Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
		
			
				
	
	
	
		
			84 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			84 KiB
		
	
	
	
	
	
	
	
title, excerpt, layout
| title | excerpt | layout | 
|---|---|---|
| union | Union two or more solids into a single solid. | manual | 
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])