mirror of
				https://github.com/greygoo/openscad-libraries.git
				synced 2025-10-24 11:00:49 -07:00 
			
		
		
		
	Add cube_round_xy.scad
This commit is contained in:
		
							
								
								
									
										17
									
								
								cube_round_xy.scad
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								cube_round_xy.scad
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| // Module for painting cube with rounded corners in xy directions | ||||
|  | ||||
| module cube_round_xy(dim,mki){ | ||||
|     if(mki<=0){ | ||||
|         cube(dim); | ||||
|     } | ||||
|     else { | ||||
|         translate([mki/2,mki/2,0]){ | ||||
|             linear_extrude(dim[2]){ | ||||
|                 minkowski(){ | ||||
|                     square([dim[0]-mki,dim[1]-mki]); | ||||
|                     circle(d=mki); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user