hns - 日記自動生成システム - Version 2.19.9

先月 2024年01月 来月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2024年01月26日(金) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [openscad] SignWaveHill


SignWaveHill-unit.stl Download










// SignWave shaped hill

    Xamp  = 50; // one wave length
    Yamp  = 50; // one wave length
    Zamp  = 20; // amplitude (height)

    delta = 0.5; // ste
    cycle = 1;  // count of waveform

    module SignWaveHill(Xamp, Yamp, Zamp, cycle,  delta) {
    X2 = Xamp/2;
    Y2 = Yamp/2;
        for (        x = [-X2:delta:X2] ){
		for (y = [-Y2:delta:Y2] ){
		 amp = Zamp * cos(cycle/2 * (y / Y2) * 360.0);
                   hull(){
		   z = amp * cos(cycle/2 * (x / X2) * 360.0);
		      translate([x, y, Zamp]){
                      cube([delta, delta, z + Zamp ]);
                      }
                   g = amp * cos(cycle/2  * ((x - delta) / X2) * 360.0);
		      translate([x - delta, y, Zamp]){
                      cube([delta, delta, g + Zamp]);
                }
            }
        }
    }
    }
    
// uncomment gives  3 x 3 cycles    
//     for (x = [-1:1:1] ){
//           for (y = [-1:1:1] ){
//               translate([ x * width * 2, y * length * 2, 0])
		     SignWaveHill(Xamp, Yamp, Zamp, cycle, delta);
//           }
//       }
    



最近の日記
2024年11月14日
DWL66+ 2018 405 nm
2024年02月19日
another (large, 0.55 x 1.0 m/m) version for contrast curve
2024年02月15日
curved star cone
2024年02月13日
paraboloid with base plane
2024年02月09日
bit map format for contrast curve
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project