Original problem using OpenSCAD to import an STL fils
union()
{
translate([0, 0, 6])
scale([0.9842519685, 0.9842519685, 1])
import("floor.stl");
cube([50, 50, 6]);
}
Error message Rendering Polygon Mesh using CGAL... ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e_below != SHalfedge_handle() File: /usr/include/CGAL/Nef_3/SNC_FM_decorator.h Line: 426
Fix the problem using AngelCADs polyfix utility:
$ polyfix floor.stl
Parameters:
input_file = floor.stl
polyhedron 0 ================= volume=10890.5, dtol=0.01, atol=1e-06, maxiter=10
iteration 0: vertices=92100 faces=30700
warning: 1 zero area faces.
warning: nonmanifold edges: uc(1)=92100
merged 76748 vertices
removed 1 collapsed or zero area face
split 1 face
total changes=76750
no warnings
iteration 1: vertices=15352 faces=30700
total changes=0
no warnings
Summary:
polyhedron 0: vertices=15352 faces=30700 : no warnings
Writing: floor_1.stl
... polyfix finished, time used: 0d 00h 00m 01s
Then import the repaired file into OpenSCAD and press F6
union()
{
translate([0, 0, 6])
scale([0.9842519685, 0.9842519685, 1])
import("floor_1.stl");
cube([50, 50, 6]);
}
The problem is now gone
I installed Angelcad and vcredist_X64 for the mscv dll
Angelcad starts but if i enter the above code:
$ polyfix floor.stl
i get an error:
as_csg started.
asERR : (line 1, col 1) : Unexpected token '' : asFILE=C:/Users/Henk/Documents/floor.as
asERR : Please correct the errors in the script and try again.
asINFO: (line 0 , col 0 ) : Script execution failed.
what am i doing wrong?
windows 10, x64
the floor.stl file in:
documents
documents\xcsg
c:\programfiles\angelcad
C:
and tried with the path in the name (c:\floor.stl)
henk