代码:
magnet_radius = 17.45/2; //for a 17.45mm diameter magnet
magnet_thickness = 3.90/2; //for a 3.90mm thick magnet
main_module();
module main_module(){
top_surface();
}
module top_surface(){
difference(){
cylinder(h=0.40, r1=magnet_radius*5, r2=magnet_radius*5);
cutaway();
}
module cutaway(){
cylinder(h=0.40, r1=magnet_radius*1.05, r2=magnet_radius*1.05);
}
答案 0 :(得分:1)
你错过了“差异(){”
的结束大括号