Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Join polygons after using intersection and difference.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Join polygons after using intersection and difference.


Chronological Thread 
  • From: Tapadi <>
  • To:
  • Subject: Re: [cgal-discuss] Join polygons after using intersection and difference.
  • Date: Thu, 5 Dec 2013 08:14:30 -0800 (PST)

Hi,

Have you checked all conversions between inexact values (like double) and
exact values (like CGAL::gmpq)?

In particular, you should check that when you're importing inexact geometric
data from files, you must convert them into exact representation and then
only use this exact representation. Convert them back in inexact
representation *only* for display / export purposes.

I've already done this kind of mistake:

My_inexact_structure a = import_from_file("...")
CGAL::Exact_structure b = convert_to_exact(a)
CGAL::Exact_structure c = CGAL::apply_some_algorithm(b)
My_inexact_structure d = convert_to_inexact(c)
display(d)
CGAL::Exact_structure e = convert_to_exact(d) // Gives cgal assertion
violation or some indesirable stuff

I hope this advice to be helpful for solving your problem.
Regards,

Hugo Loi
PhD student at Inria - Maverick team



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Join-polygons-after-using-intersection-and-difference-tp4658509p4658522.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page