Subject: CGAL users discussion list
List archive
- From: Thomas Holzmann <>
- To:
- Subject: Re: [cgal-discuss] Segmentation fault at neighbor access
- Date: Tue, 6 Jun 2017 14:47:04 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:hocugB9OxAOor/9uRHKM819IXTAuvvDOBiVQ1KB31+McTK2v8tzYMVDF4r011RmSDNqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//5/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRgL2hicJNzA382/ZhcJ/g61ZvB2svAZwz5LObYyPKPZzcKHQcNUHTmRBRMZRUClBD5uiYYsPCOoBOPxXr5LgrFUMqhu+AQitBOb1xT9OgH/9wKo30+QmEQHC3Q0gGsgBsHLSrNjuNacdTe+1wLPUzTXeYPNWwy3y6YnSfh87vfGBRLR9etffx0koEgPKlFSQqYr9MjOJy+QNvHKb4PBhVO61kWEntxl9ojmpxsc2i4nGnJgZyl7e9Sh/3Y07JsW4RVZmbdK6FJZcrT+WOolsTs88WW1kpjo2xqMetZKmYiQHzI4rywDdZvCdbYSE/g/vWPyfLDp7gn9uZaixiAyo8Ue6z+3xTsm030hOripCitTMs2oC1x3X6sidVPR9+l2u2DaV2wDP9+FELlo0mrDaKpI72LEwioIfsUXFHiDohEX7lLKaelsg9+Sy9ejqYK/qqoGGO4Nqlg3yLLwimsmlDuQ5NggOUXKb+eO51LD7/U35R7FKj/wzkqbDtpDaI98Wpq+lDA9ayIoj9wu/Dzi80NsCnHgLNkhKeA6fg4jzJ17OOOz4Deu4g1m0jDhryOrJPrn4DprQL3jDi6vufatm605H0wcz1tBe55dMCr4bOv7zW0nxtMbZDhAjKQC0zfznW51A0JgDUzePHrOBK/GV9kSZ4/omZeiKfo4c/jjnbOM04ubnyn4/l1hadqag2d4baWuzA+99cHmeNHHji9NEHWYRtRclV8TrjkeDWHhdfSWcRaU5sw07D4evFs/jQYS/hbWH2m/vHppSdGVPDFakEHznMZmZVO0FemSbPpkywXQ/SbG9Rtp5hlmVvwjgxu8/Iw==
I want to reopen this thread again, as I still have the same
issue. Yes, my triangulation is valid and has dimension 3. Does someone has another hint? Thomas On 04/07/2017 05:58 PM, Sylvain Pion
wrote:
Did you check that triangulation_.dimension() == 3
?
2017-04-07 9:27 GMT+02:00 Andreas Fabri
<>:
Did you check that the triangulation as a whole is valid? andreas On 07/04/2017 09:03, Thomas Holzmann wrote: Hi, I get a weird segmentation fault and I really don't know why. Here is my code: if (triangulation_.is_valid(currCell)) { for (int k = 0; k < 4; k++) cellsToProcess.push(currCell->neighbor(k)); // when accessing neighbor -> segfault } where triangulation_ is a CGAL::Triangulation_3<CGAL::Exact_predicates_exact_constructions_kernel, Tds_info>. and currCell is a Cell_handle. I'm checking the validity of currCell, so the neighbors should exist, right? Does someone have an idea why that could happen or how to check the validity of the neighbors before accessing it in another way? Thomas -- Andreas Fabri, PhD Chief Officer, GeometryFactory Editor, The CGAL Project phone: +33.492.954.912 skype: andreas.fabri -- You are currently subscribed to cgal-discuss. To unsubscribe or access the archives, go to https://sympa.inria.fr/sympa/info/cgal-discuss -- ==================================================== 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 ==================================================== |
- Re: [cgal-discuss] Segmentation fault at neighbor access, Thomas Holzmann, 06/06/2017
- Re: [cgal-discuss] Segmentation fault at neighbor access, Julia Fischer, 06/06/2017
- Re: [cgal-discuss] Segmentation fault at neighbor access, Sebastien Loriot (GeometryFactory), 06/07/2017
Archive powered by MHonArc 2.6.18.