//模型一 单个相机底座大小 module cam_1(xl,yl,zl,xd,yd,zd,jd){ translate([sin(0),cos(90),0])rotate([xd,yd,zd]) cube([xl,yl,zl],center=true); //挡板最外侧 179/2 半个基线 4/2 自身厚度 translate([179/2+4/2,cos(90),14/2-2])rotate([xd,yd,zd]) cube([4,50,14],center=true); translate([-(179/2+4/2),cos(90),14/2-2])rotate([xd,yd,zd]) cube([4,50,14],center=true); // 挡板最内侧 translate([(179/2-29-2),cos(90),14/2-2])rotate([xd,yd,zd]) cube([4,50,14],center=true); translate([-(179/2-29-2),cos(90),14/2-2])rotate([xd,yd,zd]) cube([4,50,14],center=true); } //cam_1(179,50,4,0,0,0,0); //模型二 开孔 三个 module cam_kong(){ //圆孔 7mm //右侧孔 translate([75,10,0])rotate([0,0,0])cylinder(8,r=7/2,center=true, $fn=160 ); //左侧孔 translate([-75,10,0])rotate([0,0,0])cylinder(8,r=7/2,center=true, $fn=160 ); //中间孔 translate([0,0,0])rotate([0,0,0])cylinder(10,r=7/2,center=true, $fn=160 ); } //模型三 成品1 module cam_chengpin1(){ difference(){ cam_1(179,50,4,0,0,0,0); cam_kong(); } } cam_chengpin1(); // 相机1 translate([75,10,29])cube([29,30,29],center=true); //相机2 translate([-75,10,29])cube([29,30,29],center=true);
原文地址:https://www.cnblogs.com/kekeoutlook/p/9205026.html
时间: 2024-11-03 12:21:42