Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] can someone help me for the using of " Arrangement_2::Vertex_handle"?
Chronological Thread
- From: Aomandeyi <>
- To:
- Subject: Re: [cgal-discuss] can someone help me for the using of " Arrangement_2::Vertex_handle"?
- Date: Fri, 19 Mar 2021 07:20:03 -0500 (CDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-hdrordr: A9a23:84nidK1xJh1q1pQNHZETHwqjBFgkLtp033Aq2lEZdDV+dMuEm8ey2MkB3RjvhzoLHF0mk9aMOK6PKEmskKJdy48XILukQU3aqHKlRbsSj7fK7jX8F0TFnNJ1+rxnd8FFZeHYLV8/tsri5Rn9LtBI+re62YSJocub8Ht3VwFtbMhbnmREIyKWCFd/SgUDJbdRLvWhz/FKrTahZngbB/7TbhI4dtPOqNHRmJXtbQRuPX8awTOThjCl4qOSKXil9yoZOgki/Ysf
- Ironport-phdr: A9a23:m0ZDzxbG5vamAfc73iOQNAH/LTHQ0IqcDmYuwqpisKpHd+GZx7+nAna3zctkgFKBZ4jH8fUM07OQ7/mxHzVbsd3a7DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrqQjdrNQajIVhJ6o+xBbErWZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJxw4DafoKbO/hwfq3ActwVWWVPU91NVyFDHo+wc5cDA/YfMetesoLzp0EOrRy7BQS0GO7vzTpIiWXw3aInzesgEQDG1xEnEt0Ut3TUqc/6NKEPXu+rzKjIzC7Ob/xT2Tjn6YjIdgotru2LXbJ1aMfcz1QkGAzZgFuKs4PlIy+V2foXs2id9+dsSOaih3A5pg1soDWixNsgh43JiI8a1l3J6yd0zYg0KNC8S0N1YdGqHpVMuy+aNoZ7Xs0vTmJstSg0xLALpIK3cS4Xw5opwB7fbuaIc4mO4h/7UuaeOyx3i2lheL2hnRq97U+gyuj6W8Kp01hKtjJInsTIu30JzRDe5MuKRuF+80qgwzqC1gHe5+dZKk4uj6XbMYQuwrsom5oTr0vDGij2lV3wjKKZbEkk/PKn5P/8bbXiuJCQLZN7igb7Mqg2m8y/B/o3MhQWUmSG/emx0Kfv8EP6TblQjfA7k7PVvZHbKMgDo662GQ5V0oIt6xalCDem1cwVkmMALFJAYh2HiZXmNE/OIfD5Fvq/jFGsny1qx/DCJLHuHpLNLn3bnLf7Ybl981JcyBY0zd1H+51UBasOIPbqVkDstdzYFQM2MxGvw+b8E9h9zYMfWWeXAqCDKq/SsFmI5vguI+aWfoMVtiz9eLAZ4KvlgnY93FMcZqK0xoA/aXaiH/0gLV/KT2Drh4IoFmIDuAYzXe2i3FSFVDdVa3ujXooz4zg6DMStCoKVFdPlu6CIwCruRs4eXWtBEF3ZSR/AR8C/Q/4JLRmqDIpkmz0AW6KmTucJ2hSntQu8wL1ifLG80h1djorq0Z1O38OWlRw28lRcCZjb1WiHRWV52GgPQm1vtIhP5Hdlw1LG6pBWxuRCHLR76PZAUwN8PpnZnbQSNg==
thank you very much, i did as you say, the codes are as follows ,but vs2017
still report an error "no instance of function template
print_incident_halfedges matches the argument list"
-----------------------------------------
template <typename Arrangment>
void print_incident_halfedges(typename Arrangement::Vertex_const_handle v)
{
bool a = v->is_isolated();
if (!a) { std::cout << "successfully using vertex_const_handle" <<
endl; }
return;
}
int main()
{
Point p1(1, 1), p2(1, 2), p3(2, 1);
Segment cv[] = { Segment(p1, p2) , Segment(p2, p3) , Segment(p3, p1)
};
Arrangement arr;
insert(arr, &cv[0], &cv[sizeof(cv) / sizeof(Segment)]);
for (Arrangement::Vertex_const_handle v : arr.vertex_handles())
{
print_incident_halfedges(v);
}
return 0;
}
------------------------------------------
but i finally find the solution is that discard the C++'s template , as
follows ,it works!
--------------------------------------------
void print_incident_halfedges( Arrangement::Vertex_const_handle v)
{
bool a = v->is_isolated();
if (!a) { std::cout << "successfully using vertex_const_handle" <<
std::endl; }
return;
}
........................
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] can someone help me for the using of " Arrangement_2::Vertex_handle"?, Aomandeyi, 03/17/2021
- Re: [cgal-discuss] can someone help me for the using of " Arrangement_2::Vertex_handle"?, Sebastien Loriot, 03/17/2021
- Re: [cgal-discuss] can someone help me for the using of " Arrangement_2::Vertex_handle"?, Aomandeyi, 03/19/2021
- Re: [cgal-discuss] can someone help me for the using of " Arrangement_2::Vertex_handle"?, Sebastien Loriot, 03/17/2021
Archive powered by MHonArc 2.6.19+.