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

in #utopian-io7 years ago (edited)

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

Step 1

创建方块
图片.png

Step 2

将方块移动到2, 2, 1.9位置
图片.png

Step 3

创建一个台阶式的方块
图片.png

Step 4

用Step3中的方块布尔减去Step1中的方块
图片.png

Step 5

创建文字azcax
图片.png

Step 6

拉伸文字
图片.png

Step 7

将文字移动到4,4,0位置
图片.png

得到最终结果:

图片.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
        ]);
 }



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hi @azcax..... Nice post but out of my mind.
Followed you successfully.

@lachitsarmah, thanks for reading, follow you back :-)

Your contribution cannot be approved because it does not follow the Utopian Rules.

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

You can contact us on Discord.
[utopian-moderator]

Congratulations @azcax! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes
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

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!

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.

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 68487.80
ETH 2454.84
USDT 1.00
SBD 2.61