With master, current hash ac93217d2bb8158f362860d20aa6b125730a5ef8, open the file anchor.off with the polyhedron demo, and try to get a Mesh_3 mesh with default parameters (either volumic of surfacic), and the mesher crashes in the initialization step (sampling protecting balls on sharp features).
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: n==0 || dleft_frac >= float_prior(float_prior(1.))
File: /home/lrineau/Git/other-cgal2/Mesh_3/include/CGAL/Mesh_3/Protect_edges_sizing_field.h
Line: 1135
zsh: abort (core dumped) Polyhedron_3 ~/Git/cgal/Polyhedron/demo/Polyhedron/data/anchor.off
I have tried to run the example examples/Mesh_3/mesh_polyhedral_domain_with_features.cpp with the same mesh parameters, with the following patch:
(reported by @afabri)
Issue Details
With
master
, current hash ac93217d2bb8158f362860d20aa6b125730a5ef8, open the fileanchor.off
with the polyhedron demo, and try to get a Mesh_3 mesh with default parameters (either volumic of surfacic), and the mesher crashes in the initialization step (sampling protecting balls on sharp features).I have tried to run the example
examples/Mesh_3/mesh_polyhedral_domain_with_features.cpp
with the same mesh parameters, with the following patch:and it ran without errors and produced a correct mesh. So the error is in the specific code used by the demo.
Environment