#783·openscad

STL compile fails (Cyborg Finger)

Author: lairdCreated May 8, 2014Updated Sep 10, 2026
LabelsTag: STLDep: CGALFixed by manifold

Very simple script to load an STL and render it fails.

module CyborgFinger() { import("../Cyborg_Beast/STL Files/STL Files_ Marc Petrykowski_4-16-2014/Cyborg Finger 1.0_reduced_fixed.stl"); }

CyborgFinger();

The STL is at https://github.com/e-nable/e-NABLE-Assembler/blob/compile-STLs/Cyborg_Beast/STL%20Files/STL%20Files_%20Marc%20Petrykowski_4-16-2014/Cyborg%20Finger%201.0_reduced_fixed.stl .

I get the error message:

Compiling design (CSG Tree generation)... Rendering Polygon Mesh using CGAL... CGAL error in CGAL_Build_PolySet: CGAL ERROR: assertion violation! Expr: check_protocoll == 0 File: ../libraries/homebrew/include/CGAL/Polyhedron_incremental_builder_3.h Line: 199 PolySets in cache: 1 PolySet cache size in bytes: 585032 CGAL Polyhedrons in cache: 3 CGAL cache size in bytes: 0 Total rendering time: 0 hours, 0 minutes, 0 seconds WARNING: No top level geometry to render

I get this error on the original files (from Blender), when validated through NetFabb, and when I generate a reduced resolution version using MeshLab (which this STL is). So it's manifold, and it's under 10,000 vertexes and 20,000 faces, and still failing.

For context, I've written OpenSCAD assembly code that transforms and scales STLs (and some OpenSCAD components) to assemble custom-fitting prosthetics, in https://github.com/e-nable/e-NABLE-Assembler . It works fine when assembling OpenSCAD components, but the incorporated STL components all preview but fail to compile. The real scripts are, of course, more complex, but I'm presenting the smallest case here.

It's not a problem specific this this one file - I haven't gotten any STL to import and compile from any source so far on this project. Though I know that OpenSCAD will import and compile other STLs (simple test cases work fine). My goal is to allow designers to use whatever tool they like, and I assemble the results. Is there anything that I can do to help OpenSCAD be more tolerant of actual STL files as produced by designers?

The designs coded in OpenSCAD (and we have several in the project) work fine. But of course that doesn't help the designers using GUI modeling tools to do their work.

I'm running OpenSCAD 2014.03 on Mac OS X 10.9.2, and see the same thing on Linux, and on Windows.

I've run out of ideas. But I'd welcome any suggestions or help on this one. It's a noble project (IMO) and I'm hoping someone with a fresh pair of eyes can come up with something.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.