Subject: CGAL users discussion list
List archive
- From: Thomas Holzmann <>
- To:
- Subject: Re: [cgal-discuss] Cell_handle in std::map: Precondition violation
- Date: Wed, 4 Jan 2017 13:56:50 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:eEP5BRzJDofeokXXCy+O+j09IxM/srCxBDY+r6Qd2+sQIJqq85mqBkHD//Il1AaPBtSHrasZwLaN+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFHiTanfL9/LBq6oArfu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8qBkRQPmhSoFOTM16X3bh8Nth65foB+tuxlzzojJa4+XKfV+ZLvQc84ES2pPXshfVCJPDY2zYIQNE+UPMv1Vr5X/qlYUsReyGQehCeHpxzRVhnH2x6o60+E5HA/Y3AwgGNcOv27PrN7oNqkSVuS1zajNzTrZafNW3yr25Y/IchAmpfGNXLdwftDXyUkpDA7Fj0mfqYP/MzOJy+QNvHKb4PBhVO61kWEntxh8rz6yzckijYnJg5gaylHC9Shh3IY1ONK4SFRhbt+lCpdfrT2aOo1rSc0hW2FloDs2xqMCtJKhYiQHyo4rywDFZ/CZb4SE/ArvWPuPLTp8nn5pZrCyiwys/US81+HwTMe53VVMoyFYiNfDrGoN2AbW6sWfSvty4EOh2TGX2gDW8O5EIEQ0lbDFJJ4l2LExloAfsVjeHi/5gkX5lq6Xel8+9ei08+jnY7PmqYGAN4Jslw3yLKAjltahDek6KAQCQXKX9fqg2LH95UH5Ra9FjvwykqnXqpDaIsEbq7a5Aw9S1oYi6hO/AC2g0NQehnQHLU5KeB2dg4j1JlHOL+r4Au2+gli2ijhr2+jKPqf9DZXVMnjDjLDhcK5h5E5T0gUzyclT6I9VCrEaPP3zR1TxtMfDAx8iMw20xv7nB89n2oMfX2KPGK6ZP7nIvV+G/OJ8a9WLMYQasTK4J/k+7OP1llc4n0UcdO+nx8g5cne9S8hmJECQejLMhdMTFG4MuEJqTOvumliLVzh7Zn29Gb4h6SsyGsSvEdGQFciWnLWd0XLjTdVtbWdcBwXRSXo=
On 01/04/2017 01:02 PM, Laurent Rineau (CGAL/GeometryFactory) wrote:
I think it's related to that small code because before that the triangulation validity is checked. And when my debugger stepped over this area, the error appeared. However, as my debugger now does very weird things, I'm not sure about that anymore.
Why do you think that precondition violation is related to the small code
excerpt you show us?
Ok, then it's strange that this error just happened with -O0 for me...
That exception was triggered because there was a logic error in your code.
Those checks are only applied if the macros CGAL_NDEBUG and NDEBUG are not
defined. That is not related to the optimizations flags -O0, or -O3.
Probably, the way you created the triangulation, or the way your split thoseI didn't split anything before that error, and checked validity with is_valid(true).
cells invalidated invariant of the triangulation and make it invalid. You can
check the value of `tr.is_valid(true)`, to be sure.
However, I currently think that this error is not directly related to CGAL. So I'll continue debugging :-)
Thanks for the quick answer!
Thoams
--
====================================================
Dipl.-Ing. Thomas Holzmann
TU Graz - Institut fuer Maschinelles Sehen und Darstellen
Graz University of Technology - Institute for Computer Graphics & Vision
Inffeldgasse 16/II, 8010 Graz, Austria
http://www.icg.tugraz.at/
phone: +43 316 873 5091
====================================================
- [cgal-discuss] Cell_handle in std::map: Precondition violation, Thomas Holzmann, 01/04/2017
- Re: [cgal-discuss] Cell_handle in std::map: Precondition violation, Laurent Rineau (CGAL/GeometryFactory), 01/04/2017
- Re: [cgal-discuss] Cell_handle in std::map: Precondition violation, Thomas Holzmann, 01/04/2017
- Re: [cgal-discuss] Cell_handle in std::map: Precondition violation, Laurent Rineau (CGAL/GeometryFactory), 01/04/2017
Archive powered by MHonArc 2.6.18.