Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL assertion error


Chronological Thread 
  • From: gupta61 <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL assertion error
  • Date: Sat, 3 May 2014 21:27:44 -0700 (PDT)

Hi Sebastian,

So I created the sscce as requested. Let me explain how the example works. I
am trying to remesh a surface. The initial surface is defined in
"Polyhedron_piyush_3.off". The main program to remesh is in file
test_CGAL_remesh.C. There are a few other files in the folder, mainly config
files.

Now if you run the program as it is you will see that the error you get is

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


But if you change the variable "double l = 0.1" to "double l =1.0" and
comment out the "point set 1" and uncomment the "point set 2", you will not
get this error. You will infact be able to successfully remesh the surface.
This is the error which I don't understand. Please let me know if you are
able to replicate it and if you know why you are getting this error.

Any response would be highly appreciated. Thanks.

test_CGAL_remesh.C
<http://cgal-discuss.949826.n4.nabble.com/file/n4659241/test_CGAL_remesh.C>

test_CGAL_config.h
<http://cgal-discuss.949826.n4.nabble.com/file/n4659241/test_CGAL_config.h>

Polyhedron_piyush_3.off
<http://cgal-discuss.949826.n4.nabble.com/file/n4659241/Polyhedron_piyush_3.off>


Complex_2_in_triangulation_3_file_writer.h
<http://cgal-discuss.949826.n4.nabble.com/file/n4659241/Complex_2_in_triangulation_3_file_writer.h>


Surface_mesher.h
<http://cgal-discuss.949826.n4.nabble.com/file/n4659241/Surface_mesher.h>

testCGALRemesh.testCGALRemesh
<http://cgal-discuss.949826.n4.nabble.com/file/n4659241/testCGALRemesh.testCGALRemesh>




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



Archive powered by MHonArc 2.6.18.

Top of Page