Summary: OpenSCAD (version 2015.03-2) is the open source software for creating solid 3D CAD models. It is available for Linux/UNIX, Windows and Mac OS X, and it is a programming Solid 3D CAD Modeller. In this tutorial I will show you how to create a batman. Let's start...
Result:
步骤1:创建一个梯形:
步骤2:将其沿y轴方向移动20
步骤3:再创建一个梯形:
步骤4:将其沿Y轴方向移动30
步骤5:对2个梯形求布尔差,形成Bitman的头部:
步骤6:做一个椭圆,作为Bitman身体的主体:
步骤7:再做4个小椭圆,作为Bitman的尾部:
步骤8:再做2个椭圆,作为Bitman的肩部:
步骤9:用主体椭圆布尔减去尾部和肩部椭圆:
步骤10:将平面的Bitman拉升为3D:
得到最终的3D Bitman:
OpenSCAD代码如下:
linear_extrude(height = 2, center = true, convexity = 10, twist = 0)
union(){
difference(){
translate([0,20,0])
polygon(points=[[-9.8, -14], [9.8,-14],[3.8, 14],[-3.8, 14] ],paths=[[0,1,2,3]], convexity=10);
translate([0,30,0])
polygon(points=[[-2, -8], [2,-8],[12, 8],[-12, 8] ],paths=[[0,1,2,3]], convexity=10);
}
difference(){
projection(cut=true) rotate([0,50,0])
cylinder(r=30, h=200, center=true);
translate([-8,-23,0]) rotate([0,0,-60])
projection(cut=true) rotate([0,62,0])
cylinder(r=7, h=200, center=true);
translate([8,-23,0]) rotate([0,0,60])
projection(cut=true) rotate([0,62,0])
cylinder(r=7, h=200, center=true);
translate([-18,-24,0]) rotate([0,0,-50])
projection(cut=true) rotate([0,67,0])
cylinder(r=7, h=200, center=true);
translate([18,-24,0]) rotate([0,0,50])
projection(cut=true) rotate([0,67,0])
cylinder(r=7, h=200, center=true);
translate([-7,25,0]) rotate([0,0,30])
projection(cut=true) rotate([0,45,0])
cylinder(r=13, h=200, center=true);
translate([7,25,0]) rotate([0,0,-30])
projection(cut=true) rotate([0,45,0])
cylinder(r=13, h=200, center=true);
}
}
Posted on Utopian.io - Rewarding Open Source Contributors