OpenSCAD渲染为空

时间:2017-12-07 14:52:06

标签: stl render 3d-modelling openscad

我正在设计螺旋线,并在AutoCAD中完成刀片,稍后将其导出到.stl并在OpenSCAD中完成设计。

这里的问题是当我尝试渲染它(F6)时,结果是不完整的(只有Joints.stl显示)。虽然我曾尝试多次修复这两个.stl文件,但问题仍然存在。

提前致谢

编辑:如果有帮助我使用AutoCAD和Blender制作了.stl。

(这是我的代码)

module pal() {

    translate([1.5,100,0.2])
        rotate([0,-10,0])   
import("Helix_Final.stl", convexity=100);

}
pal();
rotate([0,0,120])
    pal();
rotate([0,0,-120])
    pal();

translate([0,0,8.4])
import("Joints.stl");

Helix_Final.stl Joints.stl

它还提供以下日志:

Saved backup file: C:/Users/eleme/Documents/OpenSCAD/backups/Joints¿-backup-
qHp13132.scad
Compiling design (CSG Tree generation)...
Rendering Polygon Mesh using CGAL...
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! 
Expr: e->incident_sface() != SFace_const_handle() File: /opt/mxe/usr/x86_64-w64-
mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h Line: 326 
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! 
Expr: e->incident_sface() != SFace_const_handle() File: /opt/mxe/usr/x86_64-w64-
mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h Line: 326 
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! 
Expr: e->incident_sface() != SFace_const_handle() File: /opt/mxe/usr/x86_64-w64-                
mingw32.static/include/CGAL/Nef_S2/SM_const_decorator.h Line: 326 
Geometries in cache: 8
Geometry cache size in bytes: 11954368
CGAL Polyhedrons in cache: 1
CGAL cache size in bytes: 1378168
Total rendering time: 0 hours, 0 minutes, 11 seconds
   Top level object is a 3D object:
   Simple:        yes
   Vertices:      661
   Halfedges:    3182
   Edges:        1591
   Halffacets:   1864
   Facets:        932
   Volumes:         2
Rendering finished.

1 个答案:

答案 0 :(得分:0)

确保文件位于同一目录中。