Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] CGAL assertion error

Subject: CGAL users discussion list

List archive

[cgal-discuss] CGAL assertion error


Chronological Thread 
  • From: gupta61 <>
  • To:
  • Subject: [cgal-discuss] CGAL assertion error
  • Date: Mon, 14 Apr 2014 06:54:46 -0700 (PDT)

Hi,

I am getting a CGAL assertion error while calling make_surface_mesh()
function

*terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: den != 0
File:
/home/piyush/SetSolver_hg_checkin_crGrPhysicsLaw_crGeoEng/CGAL-4.1/include/CGAL/Cartesian/function_objects.h
Line: 2384*

I understand that this error is because somewhere I get a zero denominator.
I am attaching the data which I am sending to the mesh surface function.

Function called is
CGAL::make_surface_mesh(c2t3, AABB_input_surface, AABB_input_surface,
facets_criteria, CGAL::Non_manifold_tag());

where the triangulation c2t3 (data attached in file remeshPoints),
AABB_input_surface is the input surface (attached as the file, remeshSurf),
facets_criterion are angle = 20, upper bound on the radii of surface
Delaunay balls = 0.5, upper bound for the distance between the circumcenter
of a mesh facet and the center of a surface Delaunay ball of this facet =
0.5
and the last one is the Non_manifold_tag()

In my opinion, this is happening most likely because of the issue mentioned
by Sylvain Pion in this thread
http://cgal-discuss.949826.n4.nabble.com/about-CGAL-assertion-violation-involving-ftC3-h-Expr-den-0-td949958.html

I was wondering if there is any way to avoid it. Also is there a rule of
thumb to choose the facets criterion. For example: is it preferable to have
an upper bound on the center-center distances of the surface mesh facets to
be greater than an upper bound on the radius of surface Delaunay balls or
other way round or any other things I should be careful about. Thanks.

If you prefer any other format for the data let me know.

remeshPoints.remeshPoints
<http://cgal-discuss.949826.n4.nabble.com/file/n4659132/remeshPoints.remeshPoints>

remeshSurf.remeshSurf
<http://cgal-discuss.949826.n4.nabble.com/file/n4659132/remeshSurf.remeshSurf>




-----
Piyush Gupta
UIUC
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-assertion-error-tp4659132.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page