create account

OpenSCAD教程之"创建蝙蝠" | OpenSCAD tutorial -- Create Batman by azcax

View this thread on: hive.blogpeakd.comecency.com
· @azcax · (edited)
$0.04
OpenSCAD教程之"创建蝙蝠" | OpenSCAD tutorial -- Create Batman
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:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515584953/efq3rsp7hf4qy1ztoyfh.png)

---
<br>
步骤1:创建一个梯形:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585086/r7tsqnlepc5guehwaek5.png)

步骤2:将其沿y轴方向移动20

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585148/vzkuzkzwu6iyvunv09km.png)

步骤3:再创建一个梯形:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585202/uyfdji1mubp45pbsoxpj.png)

步骤4:将其沿Y轴方向移动30

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585260/z4octvmvujoxxkuvmwbq.png)

步骤5:对2个梯形求布尔差,形成Bitman的头部:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585385/esvuo5xn0hbufbyne6sd.png)

步骤6:做一个椭圆,作为Bitman身体的主体:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585636/q8v72iidwoengiyhdhdp.png)

步骤7:再做4个小椭圆,作为Bitman的尾部:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586064/pvoc9tdvprizkjffgdk1.png)

步骤8:再做2个椭圆,作为Bitman的肩部:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586224/mkckv7umybp3hnf5kyl3.png)

步骤9:用主体椭圆布尔减去尾部和肩部椭圆:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586509/lxozdjbbbcqyhobxnkpi.png)

步骤10:将平面的Bitman拉升为3D:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586706/yc6ufr0vndf2bui2r1oe.png)

得到最终的3D Bitman:

![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515584953/efq3rsp7hf4qy1ztoyfh.png)

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);
}
}
```

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@azcax/openscad-or-openscad-tutorial-create-batman">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , ,
properties (23)
authorazcax
permlinkopenscad-or-openscad-tutorial-create-batman
categoryutopian-io
json_metadata{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":1049088,"name":"openscad","full_name":"openscad/openscad","html_url":"https://github.com/openscad/openscad","fork":false,"owner":{"login":"openscad"}},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","cad","model","programming","development"],"users":["azcax"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1515584953/efq3rsp7hf4qy1ztoyfh.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585086/r7tsqnlepc5guehwaek5.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585148/vzkuzkzwu6iyvunv09km.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585202/uyfdji1mubp45pbsoxpj.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585260/z4octvmvujoxxkuvmwbq.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585385/esvuo5xn0hbufbyne6sd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585636/q8v72iidwoengiyhdhdp.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586064/pvoc9tdvprizkjffgdk1.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586224/mkckv7umybp3hnf5kyl3.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586509/lxozdjbbbcqyhobxnkpi.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586706/yc6ufr0vndf2bui2r1oe.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1515584953/efq3rsp7hf4qy1ztoyfh.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585086/r7tsqnlepc5guehwaek5.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585148/vzkuzkzwu6iyvunv09km.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585202/uyfdji1mubp45pbsoxpj.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585260/z4octvmvujoxxkuvmwbq.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585385/esvuo5xn0hbufbyne6sd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515585636/q8v72iidwoengiyhdhdp.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586064/pvoc9tdvprizkjffgdk1.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586224/mkckv7umybp3hnf5kyl3.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586509/lxozdjbbbcqyhobxnkpi.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1515586706/yc6ufr0vndf2bui2r1oe.png"],"moderator":{"account":"shreyasgune","flagged":true,"reviewed":false,"pending":false}}
created2018-01-10 12:47:39
last_update2018-01-13 03:19:30
depth0
children3
last_payout2018-01-17 12:47:39
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,992
author_reputation97,519,363,597
root_title"OpenSCAD教程之"创建蝙蝠" | OpenSCAD tutorial -- Create Batman"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id28,490,532
net_rshares4,969,744,918
author_curate_reward""
vote details (8)
@shreyasgune ·
Your contribution cannot be approved because it is not as informative as other contributions. See the [Utopian Rules](https://utopian.io/rules). Contributions need to be informative and descriptive in order to help readers and developers understand them.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorshreyasgune
permlinkre-azcax-openscad-or-openscad-tutorial-create-batman-20180111t105119219z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-11 10:51:33
last_update2018-01-11 10:51:33
depth1
children2
last_payout2018-01-18 10:51:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length373
author_reputation4,924,803,411,962
root_title"OpenSCAD教程之"创建蝙蝠" | OpenSCAD tutorial -- Create Batman"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id28,724,432
net_rshares0
@azcax ·
@shreyasgune, thanks for reviewing! I will update it later.
properties (22)
authorazcax
permlinkre-shreyasgune-re-azcax-openscad-or-openscad-tutorial-create-batman-20180111t134635805z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["shreyasgune"],"app":"steemit/0.1"}
created2018-01-11 13:46:39
last_update2018-01-11 13:46:39
depth2
children0
last_payout2018-01-18 13:46:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length59
author_reputation97,519,363,597
root_title"OpenSCAD教程之"创建蝙蝠" | OpenSCAD tutorial -- Create Batman"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id28,758,725
net_rshares0
@azcax ·
@shreyasgune, I updated, please review it again.
properties (22)
authorazcax
permlinkre-shreyasgune-re-azcax-openscad-or-openscad-tutorial-create-batman-20180113t032023439z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-13 03:20:27
last_update2018-01-13 03:20:27
depth2
children0
last_payout2018-01-20 03:20:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length48
author_reputation97,519,363,597
root_title"OpenSCAD教程之"创建蝙蝠" | OpenSCAD tutorial -- Create Batman"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id29,140,556
net_rshares0