create account

OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag by azcax

View this thread on: hive.blogpeakd.comecency.com
· @azcax · (edited)
$0.09
OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag
#### 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 name tag. Let's start...

#### Result:

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

#### Step 1
创建方块
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155738/zczzpuchqadsn2s2qllj.png)

#### Step 2
将方块移动到2, 2, 1.9位置
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155827/pto0vwwx9uicqbwfphxs.png)

#### Step 3
创建一个台阶式的方块
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155939/zkfqjh7hu0f0ywpdhmiu.png)

#### Step 4
用Step3中的方块布尔减去Step1中的方块
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155986/kngtl2zomvuba8fsw3oe.png)

#### Step 5
创建文字azcax
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156072/kplwp4i75qzjzpqn2rca.png)

#### Step 6
拉伸文字
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156134/bxhsg0odugqryvrlc6s2.png)

#### Step 7
将文字移动到4,4,0位置
![图片.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156397/vw1z4vijdenk622po8yy.png)

得到最终结果:

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

#### OpenSCAD code:

```
translate([ 2 + 2, 2 + 2, 0 ]){
    linear_extrude( height = 6 ){
        text(
            text = "azcax", 
            font = "Phosphate:style=Inline", 
            size = 8, 
            spacing = 1
        );
    }  
}
function f(x) = 
    2*2 + 
    0.5*(8 - 2*2)*
    ( cos(1*x*360/(8-1)) + 1 );
difference(){
    for( i = [0:8-1] ){
        translate([ i*(40/8), 0, 0 ])
            cube([ 40/8, 15, f(i) ]);
    }
    translate([ 2, 2, 2-.1 ])
        cube([
            40 - 2*2,
            15 - 2*2,
            8
        ]);
 }
```

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@azcax/openscad-or-openscad-tutorial-create-name-tag">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , ,
properties (23)
authorazcax
permlinkopenscad-or-openscad-tutorial-create-name-tag
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","design","print3d","tutorial","model"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155188/cww8xpceodmtl7jdd9j6.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155738/zczzpuchqadsn2s2qllj.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155827/pto0vwwx9uicqbwfphxs.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155939/zkfqjh7hu0f0ywpdhmiu.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155986/kngtl2zomvuba8fsw3oe.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156072/kplwp4i75qzjzpqn2rca.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156134/bxhsg0odugqryvrlc6s2.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156397/vw1z4vijdenk622po8yy.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155188/cww8xpceodmtl7jdd9j6.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155738/zczzpuchqadsn2s2qllj.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155827/pto0vwwx9uicqbwfphxs.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155939/zkfqjh7hu0f0ywpdhmiu.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516155986/kngtl2zomvuba8fsw3oe.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156072/kplwp4i75qzjzpqn2rca.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156134/bxhsg0odugqryvrlc6s2.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1516156397/vw1z4vijdenk622po8yy.png"],"moderator":{"account":"deathwing","time":"2018-01-17T16:55:06.059Z","flagged":true,"reviewed":false,"pending":false}}
created2018-01-17 02:38:15
last_update2018-01-17 16:55:06
depth0
children6
last_payout2018-01-24 02:38:15
cashout_time1969-12-31 23:59:59
total_payout_value0.082 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,118
author_reputation97,519,363,597
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,073,285
net_rshares12,744,764,452
author_curate_reward""
vote details (10)
@deathwing ·
Your contribution cannot be approved because it does not follow the [Utopian Rules](https://utopian.io/rules).

>How-tos about graphic and design softwares are not acceptable as valid contributions.


You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authordeathwing
permlinkre-azcax-openscad-or-openscad-tutorial-create-name-tag-20180117t165528473z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-01-17 16:55:27
last_update2018-01-17 16:55:27
depth1
children1
last_payout2018-01-24 16:55: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_length318
author_reputation269,077,595,754,009
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,213,511
net_rshares0
@azcax ·
@deathwing, thanks!
properties (22)
authorazcax
permlinkre-deathwing-re-azcax-openscad-or-openscad-tutorial-create-name-tag-20180118t000223468z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.2.0"}
created2018-01-18 00:02:24
last_update2018-01-18 00:02:24
depth2
children0
last_payout2018-01-25 00:02:24
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_length19
author_reputation97,519,363,597
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,279,379
net_rshares0
@lachitsarmah ·
Hi @azcax..... Nice post but out of my mind. 
Followed you successfully.
properties (22)
authorlachitsarmah
permlinkre-azcax-2018117t1258189z
categoryutopian-io
json_metadata{"tags":["utopian-io","design","print3d","tutorial","model"],"app":"esteem/1.5.0","format":"markdown+html","community":"esteem"}
created2018-01-17 07:28:03
last_update2018-01-17 07:28:03
depth1
children1
last_payout2018-01-24 07:28:03
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_length72
author_reputation1,561,299,374,297
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,115,044
net_rshares0
@azcax ·
@lachitsarmah, thanks for reading, follow you back :-)
properties (22)
authorazcax
permlinkre-lachitsarmah-re-azcax-2018117t1258189z-20180117t091925358z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["lachitsarmah"],"app":"steemit/0.1"}
created2018-01-17 09:19:24
last_update2018-01-17 09:19:24
depth2
children0
last_payout2018-01-24 09:19:24
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_length54
author_reputation97,519,363,597
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,131,698
net_rshares0
@pbock ·
interesting, I'll have to test this out.

I imagine this could be very good for generating fractal 3D models too, given they're defined mostly by their mathematical formula.
properties (22)
authorpbock
permlinkre-azcax-openscad-or-openscad-tutorial-create-name-tag-20180119t133751117z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-01-19 13:37:51
last_update2018-01-19 13:37:51
depth1
children0
last_payout2018-01-26 13:37:51
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_length173
author_reputation10,957,121,888,274
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,627,489
net_rshares0
@steemitboard ·
Congratulations @azcax! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@azcax) Award for the number of upvotes
[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png)](http://steemitboard.com/@azcax) Award for the number of comments

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-azcax-20180119t063305000z
categoryutopian-io
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2018-01-19 06:33:03
last_update2018-01-19 06:33:03
depth1
children0
last_payout2018-01-26 06:33:03
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_length835
author_reputation38,975,615,169,260
root_title"OpenSCAD教程之"创建标签" | OpenSCAD tutorial -- Create Name tag"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id30,560,263
net_rshares0