Subject: CGAL users discussion list
List archive
- From: Mateus Bellomo <>
- To:
- Subject: [cgal-discuss] modify_vertex function
- Date: Sun, 20 Nov 2016 19:29:34 -0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:XTaqXxEZUSVBKk2V2u4CbJ1GYnF86YWxBRYc798ds5kLTJ78pM6wAkXT6L1XgUPTWs2DsrQf2rGQ6fqrADBeqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLd8IRmsswndqMYajZZtJ6sw1xDEvmZGd+NKyG1yOFmdhQz85sC+/J5i9yRfpfcs/NNeXKv5Yqo1U6VWACwpPG4p6sLrswLDTRaU6XsHTmoWiBtIDBPb4xz8Q5z8rzH1tut52CmdIM32UbU5Uims4qt3VBPljjoMOjgk+2/Vl8NwlrpWrhKvqRJ83oDafp2aOeFkca/BZ94XX3ZNUtpTWiFHH4iyb5EPD+0EPetAqIfyvUcOogWjBQm3Geji1yFHhnvy3a091uQhFhzN0QslH90UrHTbssj1NLwJXu+ryKnIyTLDb/ZR2Trm54jIdwouofCIXb5qbcXRzkwvGhrDg16NqoLlJyuY2voRv2Wf9eZtVuKih3Q5pw1soTWj3Mchh4fPi4kI0F7L7z95z5wwJdCgSE50f9qkEJxIuiGfLYR2Q8ciT3hvuCY71rEKoJC7cSgExZg9yB7fbPuHc4eM4h39TuqePTB4hHd9dLK+gRa971Sgx/XiWsWo1FtGtClIn9nWunwTyhDe6dKLR/tz80u53DaAzQHT6uVKIUAukqrbLoYswrsqmZoPr0vDAzT2l17og6+SckUk/e2o6+P8b7Xpo5+TLY50igXkPqsyncy/BPw0MhISUGiD5eS8yLrj8FXlT7VFlPI2lrDVv43bJcQAuqG5HhRV0p045hakDzam1cwYkmMdIFJEfhKHlYnpNEvULPD2F/fsy2irxTxkzvSDMrz6CYjWNVDClq3gdPBz8R1y0g02mPVW+59JEfkrLfb3XUr2/IjdBwM0Lhe+zuLjD9B6/owbUGOLRKSeNfWB4hez+uszLrzUN8cuszHnJq196g==
Hello,
I'm trying to use the modify_vertex function from Arrangement_2 but I'm getting segmentation fault. When I run through gdb, I'm getting this:[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
terminate called after throwing an instance of 'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: m_geom_traits->equal_2_object()(vh->point(), p)
File: /usr/local/include/CGAL/Arrangement_2/Arrangement_on_surface_2_impl.h
Line: 1468
Explanation: The new point is different from the current one.
Program received signal SIGABRT, Aborted.
0x00007ffff6b74c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6b74c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6b78028 in __GI_abort () at abort.c:89
#2 0x00007ffff747f535 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff747d6d6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff747d703 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff747d922 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff79568c9 in CGAL::precondition_fail(char const*, char const*, int, char const*) () from /usr/local/lib/libCGAL.so.11
#7 0x00000000009b7ccd in CGAL::Arrangement_on_surface_2<CGAL::Arr_segment_traits_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Arr_bounded_planar_topology_traits_2<CGAL::Arr_segment_traits_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float> > >, CGAL::Arr_extended_dcel<CGAL::Arr_segment_traits_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float> > >, vertex, bool, face, CGAL::Arr_vertex_base<CGAL::Point_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float> > > >, CGAL::Arr_halfedge_base<CGAL::Arr_segment_2<CGAL::Cartesian<CGAL::Quotient<CGAL::MP_Float> > > >, CGAL::Arr_face_base> > >::modify_vertex (this=0x7fffffffd6f0, vh=..., p=...)
at /usr/local/include/CGAL/Arrangement_2/Arrangement_on_surface_2_impl.h:1467
#8 0x000000000099f7fb in change_vertex_position (arr=0x7fffffffd6f0, v=..., pf=..., neighbours=std::vector of length 4, capacity 4 = {...},
gridVertices=std::vector of length 25, capacity 32 = {...}, gridFaces=std::vector of length 17, capacity 32 = {...}, debugfile=...)
at /home/mateus/Copy/IC/QuadrilateralPartition/algoritmos/solveGrid/solveGrid.cpp:2157
#9 0x0000000000996e0e in solve (arr=0x7fffffffd6f0, ans=0x7fffffffd7e0, gridVertices=std::vector of length 25, capacity 32 = {...},
gridFaces=std::vector of length 17, capacity 32 = {...}, minFaceWeight=0x7fffffffd2f8, maxFaceWeight=0x7fffffffd2f4, res=0x7fffffffd660,
prefix="ecw", debugfile=...) at /home/mateus/Copy/IC/QuadrilateralPartition/algoritmos/solveGrid/solveGrid.cpp:912
#10 0x000000000099e519 in main (argc=2, argv=0x7fffffffde08)
at /home/mateus/Copy/IC/QuadrilateralPartition/algoritmos/solveGrid/solveGrid.cpp:2067
v
is not a vertex at infinity and p
is geometrically equivalent to the point currently associated with v
)arr->modify_vertex(v, pf);
- [cgal-discuss] modify_vertex function, Mateus Bellomo, 11/20/2016
Archive powered by MHonArc 2.6.18.