#5862·openscad

ERROR: CGAL error in CGAL_Nef_polyhedron3()

Author: dhyananbhoCreated Apr 27, 2025Updated Sep 18, 2026
LabelsDep: CGALType: Bug

Describe the bug On MAC OS Sequoia 15.4.1 OpenSCAD-2025.03.20.dmg was still OK. As of version OpenSCAD-2025.03.21.dmg, the following error occurs in connection with the latest BOLS2 library from 2025-04-27: ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e_below != SHalfedge_handle() File: /Users/distiller/libraries/install/include/CGAL/Nef_3/SNC_FM_decorator.h Line: 418 ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: e_below != SHalfedge_handle() File: /Users/distiller/libraries/install/include/CGAL/Nef_3/SNC_FM_decorator.h Line: 418 ERROR: CGAL error in CGALUtils::applyUnion3D: CGAL ERROR: assertion violation! Expr: itl != it->second.end() File: /Users/distiller/libraries/install/include/CGAL/Nef_3/SNC_external_structure.h Line: 1078

To Reproduce Steps to reproduce the behavior:

  1. Open OpenSCAD-2025.03.21.dmg or newer
  2. Open scad-document with this content:
include <BOSL2/std.scad>

$fa=1;
$fs=0.2;
Wand_D              = 2.4;
Rundung             = Wand_D;

module Flaschenring(DI=86, H=12, Topf_D=8) {
    union() {
        // grosser Ring
        cyl(d=DI+Wand_D, h=H, anchor=BOT);
        // Topfbefestigung
        back((DI+Wand_D+Topf_D)/2) cuboid([20,Topf_D+2*Wand_D,H], rounding=Rundung, teardrop=true, anchor=BOT);
    }
}
Flaschenring();
  1. Click Preview
  2. Wait very long ...
  3. See error

Expected behavior as in OpenSCAD Version 2025-03-20

Environment and Version info (please complete the following information):

  • MAC OS Sequoia 15.4.1
  • MacBook Pro M1 max
  • OpenSCAD Version 2025-03-21 or newer

Library https://github.com/BelfrySCAD/BOSL2