KiCadと3次元モデル(3)

3次元モデルを作るのは、例えば、FreeCADよりも、OpenSCADの方がずっと簡単です。

これが、あなたがモデルを作りたいと思っているTAK-5周波数ミキサです。

物理的なパラメータの幾つかをコピーして、非常に短いプログラムを書くだけです。

そら、出来た!

// dimensions in inches
b=0.800;a
d=0.210;
f=0.400;
g=0.200;
h=0.20;
k=0.031;
nx=2;
ny=4;
xoffset=(f-g*(nx-1))/2;
yoffset=(b-g*(ny-1))/2;

cube([f,b,d]);

for (x=[0:nx-1]) {
    for (y=[0:ny-1]) {
    translate([xoffset+g*x,yoffset+g*y,-h])
        cylinder(h, k, k, false);
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.