我正在尝试将两个 .stl 文件组合在一起。单独每个似乎都可以渲染,但是当我将它们放在一起时,我看到了这个编译错误:
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e->incident_sface() != SFace_const_handle() File: /usr/include/CGAL/Nef_S2/SM_const_decorator.h Line: 326
当我用谷歌搜索这个错误时,我看到: 如何在 OpenSCAD 中使用 Sphere 渲染 dxf 文件
其中引用了这个:http: //forum.openscad.org/Assertion-Violation-in-Render-td10598.html
基于此,听起来我需要将模型从 X 轴上移开,但即使我这样做了,它似乎仍然失败了。我想我误解了解决方案。我应该在哪里进行 X 轴移位?
这是我导入两个 stls 的代码:
import("globe_bigger_windows.stl");
scale=.5;
rotate([0, 0, -1]) {
translate([0, 0, -5]) {
scale([1*scale, 1*scale, 1*scale]){
translate([0, -25, -40]){
import("Dragon.stl");
}
}
}
}
这是我的存储库,其中包含 stls。