在脚本中
difference() {
polyhedron(
points=[[0,0,0],
[2,0,0],
[2,1,0],
[0,1,0],
[0,0,2],
[0,1,2]],
faces=[[0,1,2,3],
[5,4,1,2],
[5,4,0,3],
[0,1,4],
[2,3,5]]);
cube([1,1,1]);
};
单独工作正常(在polyhedron
没有警告的情况下呈现),但添加cube
上述内容会导致记录警告WARNING: Object may not be a valid 2-manifold and may need repair!
并且输出仅呈现某些表面的某些部分。
我在 Ubuntu 16.04 上使用 OpenSCAD 2015.03-1。