Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] CGAL assertion error
- Date: Mon, 05 May 2014 07:28:53 +0200
- Organization: GeometryFactory
I'm not a mesh expert but I think you cannot insert some points in a triangulation and then ask for the surface mesher to work with this
triangulation to generate a mesh. In particular, you might insert some
points that are not compatible with the criteria you're asking.
Sebastien.
On 05/04/2014 06:27 AM, gupta61 wrote:
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.
- Re: [cgal-discuss] CGAL assertion error, gupta61, 05/04/2014
- <Possible follow-up(s)>
- Re: [cgal-discuss] CGAL assertion error, gupta61, 05/04/2014
- Re: [cgal-discuss] CGAL assertion error, Sebastien Loriot (GeometryFactory), 05/05/2014
- Re: [cgal-discuss] CGAL assertion error, gupta61, 05/05/2014
- Re: [cgal-discuss] CGAL assertion error, Sebastien Loriot (GeometryFactory), 05/05/2014
Archive powered by MHonArc 2.6.18.