Subject: CGAL users discussion list
List archive
- From: Thomas Holzmann <>
- To:
- Subject: [cgal-discuss] Cell_handle in std::map: Precondition violation
- Date: Wed, 4 Jan 2017 10:59:46 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:eZ05ehxGrkgy2OjXCy+O+j09IxM/srCxBDY+r6Qd2+sUIJqq85mqBkHD//Il1AaPBtSHrasZwLKH+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFHiTanfL9/LBq6oRnVu8ILnYZsN6E9xwfTrHBVYepW32RoJVySnxb4+Mi9+YNo/jpTtfw86cNOSL32cKskQ7NWCjQmKH0169bwtRbfVwuP52ATXXsQnxFVHgXK9hD6XpP2sivnqupw3TSRMMPqQbwoXzmp8qBkRQPmhSoFOTM16X3bh8Nth65foB+tuxlzzojJa4+XKfV+ZLvQc80aS2RcXchfWSJODYygYIUAFOcBIeRVopPhq1cSoxazBw+hD/7vxD9SgX/22LU33fohEQHB2QwvBckOu2nWotXyMKcTUOW1w7POzTXFcvhb3jf96I/MchEgpPGDR7RwcczKxEkuCwzFgU+cqZD4PzOazOQCqWma4/B6WuKzkmMqrRx6rDaoxscpkIbJh4QVx0jY9SVkz4Y1P8e3SU9hbdG+DJtdsTyROYhuQs46Xm1kpiI3xqcYtZO5ZiQG1o4rywDDZ/CZa4SE/wzvWeKLLTtmhn9pYqyziwqv/US6xODxVc+520tQoCVfiNnDrHUN2gTT6seZTvt9+V+s2TOV2ADS7uFEO147la7BJJ8h2LIwiocTsUvZHiDsmUT6lrWZdlk89uip7eTofKnmq4eBO4NqjgzyKLoil86lDegmKAQCQXSX9fqk2L3m50L5QbFKjvMskqnetZDXPcQbpqm9Aw5U14Ys8RC/DzG93dQZgXYHI0hJeA6aj4jmIVHBOvH5Ae2ljFSwiDtr3ezJPqX9ApXRKXjOiKvufbln5E5Y0QY80NFf54lIBbEcO/LzQVT8tMfYDx88Kwy72fzrCNR71oMEWGKAGLWVMK3IsQzA2uV6KOaFYMoZuS32NuM+z//ol34w31EHLoez2p5CVHC/G/19a2WeZWjpi9EHWTMKuQ4sSeXsjnWDWjEVe2u9RasuoDgnXtH1RbzfT5yg1eTSlBywGYdbMz0eBw==
Hi,
I'm having a (non-constrianed) triangulation and am dividing cells in several new ones. Therefore, I'm having a mapping from old to new cells:
map<Cell_handle, vector<Cell_handle> > oldToNewCells;
Now I want to check if a cell was already procesed:
vector<Cell_handle> cellAlreadyProcessed;
try{
cellAlreadyProcessed = oldToNewCells.at(cell);
}
catch(out_of_range){}
This generally works. However, when I compile with -O0, I get this error in case the cell is not in the mapping:
CGAL ERROR: precondition violation!
Expr: ( i >= 0 && i < 4 ) && ( j >= 0 && j < 4 ) && ( i != j )
File: /home/holzi/tools/CGAL-4.9/include/CGAL/Triangulation_utils_3.h
Line: 67
Could someone explain to me, why this error happens and no out_of_range exception is thrown?
Thanks!
Thomas
--
====================================================
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.