下载地址:https://github.com/ZhangGaoxing/openscad-models/tree/master/PhotoFrame
代码:
module bottom(){
difference(){
cube([,,]);
translate([8.5,8.5,])cube([,,]);
}
} module frame(){
points=[
[,,],[,,],[,,],[,,],
[,,],[,,],[,,],[,,],
[,,],[,,],[,,],[,,],
[,,],[,,],[,,],[,,]
]; faces=[
[,,,],[,,,],[,,,],[,,,],
[,,,],[,,,],[,,,],[,,,],
[,,,],[,,,],[,,,],[,,,],
[,,,],[,,,],[,,,],[,,,]
]; translate([,,])polyhedron(points,faces);
} frame();
//bottom();
效果图: