Skip to content

Assert failing when using make_mesh_3 on an image. #9658

Open

Description

@fprotais

Issue Details

Running make_mesh_3 on an input image (CGAL::Labeled_mesh_domain_3) crashes in Release, and the following assert breaks in Debug:

error: CGAL ERROR: assertion violation!
Expr: !r_tr_.is_infinite(*cell_it)
File: /home/fprotais/projets/cgal/Mesh_3/include/CGAL/Mesh_3/Refine_cells_3.h
Line: 894

This problem was originally shared by Samuel Deslauriers-Gauthier.

Source Code

Here is the related code with a minimal CMakeLists:
https://gist.github.com/fprotais/123f34eaeccb984c28a9444cdd127ad0

It should be run with the following file (it needs un-zipping):
wm_mask.raw.zip

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits): Fedora Linux 42 - 64 bits
  • Compiler: GCC 15.2
  • Release or debug mode: Debug (Assert) & Release (Crash)
  • Specific flags used (if any):
  • CGAL version: Main (august 2026)
  • Boost version: 1_83
  • Other libraries versions if used (Eigen, TBB, etc.):

Activity

  1. jrdevadattan commented on Sep 17, 2026

    @jrdevadattan
  2. janetournois commented on Sep 28, 2026

    @janetournois
    Member

    Hello @fprotais and Samuel Deslauriers-Gauthier,

    thank you for your report.
    We found a solution by reintroducing some old code, that fixes the issue you met on this data set. You can use the branch of PR #9677 for your case (or merge it in your main/working branch).

    For labeled images, the cost should be rather small, but the PR needs more work for other types of domains like polyhedral domains. That's why it still has the status of "draft PR".

    We are looking forward to your feedback
    Jane

  3. added this to the 6.4-beta milestone on Sep 28, 2026
  4. sdeslauriers commented on Oct 23, 2026

    @sdeslauriers

    I tested locally, works for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions