Subject: CGAL users discussion list
List archive
- From: tfmk <>
- To:
- Subject: [cgal-discuss] Crash in 2D boolean difference
- Date: Mon, 1 Apr 2019 04:01:18 -0500 (CDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Neutral ; spf=Pass
- Ironport-phdr: 9a23:9DOmgBfCjCSreUdw7/n6z6khlGMj4u6mDksu8pMizoh2WeGdxcqzZh7h7PlgxGXEQZ/co6odzbaP6+axBSdYsd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vMBm6twHcu8YZjYd+Kas61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzoBOjUk8m/Yl9ZwgbpVrhyhuRJxwJPab46JO/RxZa7dYdEXSXZdUspNSyBNHIWxZJYPAeobOuZYqpHwp0cArRu7BgmnGeTiyiNJhnDt2q06yf0tEQTF3AE7BNIBrnXVrNPvO6cXS+y60KjJwCzFYvhL1zn9743IfQogofGKRb9wd9DexlI0GAPBkFqcs5DqPzSQ1ukLrmOV7PJgWPqyh2Mjrwx9uDaiy8Q2hoTKh48Z0FHJ+CR/zY0oP9O3UlR7bsShEJZItyGVKY92QsQ6TmFutys20LsGtoSgcycRzJQo2QTTZOCAc4iN+h7jVeCRLilkhH99Zb6ygxK//VKux+D/TMW501dHojBEn9TNrnwN0gbc6smDSvtz5Eeh3jOP2hjP6uFFOk80krDbJ4ckwr4zjZcTqlrMHy7wmErsia+abFkr++mw5+T9frrmvoOcN5NzigzmLqsuldawAeAhPgcTXmib4viz1KD4/U3iW7hKlf03kqzBsJ/AP8gbp6i5AxVU0ok58Rq/AS2mg5wkmiwMI1tBPR6GlIP0IErmIfbiDP75jU7/vi1swqXaMLjiSsHRL3LEivLkfp5m5lxawQ91xsIJtMEcMa0IPP+mAhy5j9ffFBJsa1XlkdaiM81008YlYUzKB6aYNK3ItlrRv7A0LvuKbYpTsySvcaF5tc6rtmcwnBomRYfsxYEeMSnqBfl0JUycJ3H+0I9YTDU6+zEmRemvs2WsFD5eY3HrAvA6unc9AYisCYqFTYeo0uWM
Hello,
I've encountered a crash in a very simple case of 2D boolean operations.
My CGAL version is 5.0 (CGAL_VERSION_NR = 1050000000), but I noticed the
same problem in version 4.7.
To build the project, my CMakeLists.txt contains just the standard
"find_package(CGAL)" as generated by
the cgal_create_CMakeLists script. Adding -frounding-math and/or setting
-O0/-O1/-O2 doesn't help.
I'm using the header-only version of CGAL.
My OS: Ubuntu 16.04 LTS
My compiler: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
What should I do to prevent this crash? Could this be a bug in CGAL or is my
setup wrong?
Here is the minimal example of a crashing program:
// START OF EXAMPLE
#include <CGAL/Boolean_set_operations_2.h>
#include <CGAL/Polygon_2.h>
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef CGAL::Point_2<Kernel> Point_2;
typedef CGAL::Polygon_2<Kernel> Polygon_2;
typedef CGAL::Polygon_with_holes_2<Kernel> HPolygon_2;
int main()
{
Point_2 points[] = {
{-0.0541739, -1.74445},
{-0.820393, -1.08577},
{-2.83145, -2.79697},
{0.894224, -0.747698},
{-1.88305, -1.80022},
{0.180497, -2.65798},
};
Polygon_2 polys[2];
polys[0].push_back(points[0]);
polys[0].push_back(points[1]);
polys[0].push_back(points[2]);
polys[1].push_back(points[3]);
polys[1].push_back(points[4]);
polys[1].push_back(points[5]);
HPolygon_2 finalPoly(polys[0]);
CGAL::difference(finalPoly, polys[1], &finalPoly); // CRASHES HERE
return 0;
}
// END OF EXAMPLE
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Crash in 2D boolean difference, tfmk, 04/01/2019
- Re: [cgal-discuss] Crash in 2D boolean difference, Efi Fogel, 04/02/2019
- Re: [cgal-discuss] Crash in 2D boolean difference, tfmk, 04/03/2019
- Re: [cgal-discuss] Crash in 2D boolean difference, Efi Fogel, 04/02/2019
Archive powered by MHonArc 2.6.18.