标签:col 教程 cube mod enc bubuko 一个 技术分享 相机
module cam_zhuti(){ cx=43.5;cy=58;cz=29; color([1,0.5,0.3])translate([0,cy/2,cz/2+dz]) cube([cx,cy,cz],center=true); dx=43.5;dy=59;dz=6; color([1,0.5,0.1])translate([0,dy/2,dz/2]) cube([dx,59,dz],center=true); CR=8; CH=dz+10; color([0,0,1])translate([0,dy/2,CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); color([0,0,1])translate([0,dy/2+1,CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); color([0,0,1])translate([0,dy/2+2,CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); color([0,0,1])translate([0,dy/2-1,CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); color([0,0,1])translate([0,dy/2-2,CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); } // cam_zhuti(); module cam_dizuo(){ cx=44+20;cy=58;cz=20; ch=8; color([1,0.5,0.3])translate([0,59/2-18-4+cy/2,-cz/2-10]) cube([cx,cy,cz],center=true); CH=20+11; CR=18; color([0,1,1])translate([0,59/2,-CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); color([0,1,1])translate([0,59/2+1,-CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); color([0,1,1])translate([0,59/2-1,-CH/2-10])cylinder(CH,CR/2,CR/2,center=true, $fn=160 ); } // cam_dizuo(); module cam_all(){ union(){ cam_zhuti(); cam_dizuo(); } } module cam_ZHUTI(){ cx=44+10;cy=57;cz=60; ch=8; color([0.5,0.2,0.3])translate([0,cy/2,20-cz/2]) cube([cx,cy,cz],center=true); } difference(){ cam_ZHUTI(); cam_all(); }
标签:col 教程 cube mod enc bubuko 一个 技术分享 相机
原文地址:https://www.cnblogs.com/kekeoutlook/p/9748605.html