Subject: CGAL users discussion list
List archive
- From: Frank Dz <>
- To:
- Subject: [cgal-discuss] Problems with remove() for regular triangulation.
- Date: Sat, 22 Feb 2020 07:43:34 -0600 (CST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Fail ; spf=Pass
- Ironport-phdr: 9a23:ftPwxB2zuDLGvOoIsmDT+DRfVm0co7zxezQtwd8ZsewfKfad9pjvdHbS+e9qxAeQG9mCt7QU1aGL7ejJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagbr5+Nha7oATeusQWgIZpN7o8xAbOrnZUdOtawn9lK0iOlBjm/Mew+5Bj8yVUu/0/8sNLTLv3caclQ7FGFToqK2866tHluhnFVguP+2ATUn4KnRpSAgjK9w/1U5HsuSbnrOV92S2aPcrrTbAoXDmp8qlmRAP0hCoBKjU09nzchM5tg6JBuB+vqRxxzZDXbo+IO/VxYqzTcMgGRWpYQspdSzBNDp++YoYJEuEPPfxYr474p1YWrRW+HxOjBOXsyjRViHH33LAx3uM6EQ7bwQwvAtMPsXTPodnoNaofX/q5w7XPzTXGdv5b3yr25obPchAku/6MXLRwfNLXyUY1DAzKlVGQppL/MzyJ0eQNtm6W5PdjW+K3k2MrtgV8rzy1ysoiiYTFnIEYx1He+Sh4wYs4I8CzRlRhbt6+CpRQsjmXN4toTcMmRGFloCA6x7IctZ69ZicF048oxxrBZPCdb4eI5RfjWP6QITd+mn1lZKqyiwu2/EWk0OHxWMq53ExJoydEiNXBt3EA2wTW6sedS/t9+kmh2SyI1wDW8uxEOl07lbfGJJ8gwr89jYcfvEXNEyPshEr2i6qWel0++ue08+TnfqnmppiEOoBohQHxKKAultWiDuQ5KQgBQ3Wb+f+n1LD45k34QLBKjuUsnaXDsZDaI94bpq+jDANP3IYj8UX3MzDz29sRmTwLLUlOZQmcp4nvIVDHZv7iXtmlhFH5vi1iwfOOEq+pVo7BM3TRgZ+4I+074ElZnllghetD7o5ZX+lSaMn4XVX84YSBUk0JdjesyuOiM+1Tk5sEUDPdW/HCdqjVtA3Qv7N9E6y3fIYQ/Q3FBb0g7v/qg2U+nA5PJPfym5AQbSLkR6k0EwCieXPpx+w5PyIKsw45FbG4jgHEVzdZbXK/Gak742NiBQ==
typedef CGAL::Regular_triangulation_vertex_base_3<K>
Vb0; // this should
be added.
typedef CGAL::Triangulation_vertex_base_with_info_3<int, K, Vb0> Vb;
typedef CGAL::Regular_triangulation_cell_base_3<K>
Cb;
typedef CGAL::Triangulation_data_structure_3<Vb, Cb> Tds;
typedef CGAL::Regular_triangulation_3<K, Tds>
labeled_RT;
typedef labeled_RT::Vertex_handle
labeled_rt_Vertex_handle;
...
// then I insert weighted point into the RT.
int index;
map<Weighted_point, labeled_rt_Vertex_handle> map_point_handler;
for (auto p : Point_set) {
labeled_rt_Vertex_handle vhandle2 = RT.insert(pole);
vhandle2->info() = index;
index ++;
map_point_handler[p] = vhandle2; // I want to map the point
to handle
}
labeled_rt_Vertex_handle vhandle22 = map_point_handler[one_p];
quick_test_RT.remove(vhandle22);
=====================================
The enviroment is VS15 on windows machine, release, 64bit.
Then I got this error:
<http://cgal-discuss.949826.n4.nabble.com/file/t376165/error1.jpg>
Exception thrown at 0x00007FF677B167DC in Shape_abstract.exe: 0xC0000005:
Access violation reading location 0x0000000002BF7956.
The vs jumps to:
<http://cgal-discuss.949826.n4.nabble.com/file/t376165/error2.jpg>
I wonder if my usage of 'map' is wrong?
Thanks!
-----
be open, be creative, be critical
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Problems with remove() for regular triangulation., Frank Dz, 02/22/2020
- Re: [cgal-discuss] Problems with remove() for regular triangulation., Frank Dz, 02/22/2020
- Re: [cgal-discuss] Problems with remove() for regular triangulation., Frank Dz, 02/22/2020
- Re: [cgal-discuss] Problems with remove() for regular triangulation., Sebastien Loriot (GeometryFactory), 02/24/2020
Archive powered by MHonArc 2.6.18.