4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

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

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

10 upvotes $0.00

Replies (6)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: