Subject: CGAL users discussion list
List archive
- From: VSav <>
- To:
- Subject: Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram.
- Date: Wed, 20 Jan 2021 05:25:57 -0600 (CST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:WwzFYRfUB6o7xTsWRa1v2eLLlGMj4u6mDksu8pMizoh2WeGdxcS5ZB7h7PlgxGXEQZ/co6odzbaP4ua5Aydasd7B6ClELMUTEUddyI0/pE8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUoHdgN6q2O+s5pbdfxtHhCanYbN1MR66sRjdutMZjId/Lqs90AbFrmVHd+hIxm5jOFafkwrh6suq85Nv7iZdt+g9+8JcVKnxYrg1Q6FfADk6KW4++dfltQPETQuB53scVnsZnx9VCAXb7x/0Q4n8vDLiuuVyxCeVM8v2TaspWTu59KdkVAXoiCYcODEn9mzcl9F9g7haoBKloBx/3pLUbYSIP/dwYq/RYdUXTndHU81MVSJOH5m8YpMBAeQBI+hWrIvyp1UToxSxGQaiC/jiyiNKi3PqwaE2z/gtHR/A0Qc9H9wOqnPUrNDtOagdTO661rfIxijEYvNNwzj99ozIfQo/ofGNR7JwbcvRxFIgFwPAlFqQqIjlMymJ2eQKtmiW9uxtXv+ghGA7sQ9+uCSvxtsyhYnTgIIY0k3I+Dl5zosxK9C0VFJ3bNqrHZZUtCyXOJZ6TMwsTWxspio21qAKtJ24cSYKzJkq2gLTZuCZf4WH4h/uSemfLSt+iXl4dry/gBOy/lKhyu36TsS01kxFoTFendnIqH8BzQDc6s+CSvZ740yv2i6P2hjO5uxAJU04j6TWJp07zrMzl5cfq0XOEy7wlU7rlqGZbF8k9fKt6+n/YrXpuJucN4hshwH4PakigMq/Dv4jPQcVW2iU5/6w26Hk/U38WLlKj/s2nbfFsJ3COMgWoqq0DxVb34sg8RqyDDar3M4ZkHQGNF5FfQiIj4ntO1HAOvD4CvK/jky3kDhx2fDGOqfuAovMLnjZjLfhfK1w60FZyAUpzNBf44hYBa0GIPL2QkPxrsDXDgclMwyoxObqEMly1owEVmKLG6OWLaLSsUSU6eIyOOmMf5QYuC39Kvgg//7hl2U1mV4bfamz3JsYcmq0Hvp8IxbRXX25idgIFSIGvxE1UffxoFyESz9aIXioDIwm4TRuNrmvE8+XXYmzhLWf3T2nH7VZY2lHDhaHFnK+JNbMYOsFdC/HepwpqTcDT7X0E9Z8hyHrjxfzzv9cFsSR+iAcssu+ht4poevanxs2+Hp/CMHPijjRHVExpXsBQnoN5I46uVZ0kw7R3q1xgvgeHttWtasQA1UKcKXExuk/MOjcHwfIf9OHUlGjG4z0DjQ4T9Z3yNgLMR1w
Hi,
I also tried another way to crop the apollonius graph.
Following is my code :
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel_Exact;
typedef CGAL::Apollonius_graph_traits_2<Kernel_Exact> APT;
typedef CGAL::Apollonius_site_2<Kernel_Exact> Site_2_Apo;
typedef Site_2_Apo::Point_2
Site_2_Point_2;
typedef Site_2_Apo::Weight
Site_2_Weight;
typedef CGAL::Apollonius_graph_traits_2<Kernel_Exact>
AGT2_K;
typedef CGAL::Apollonius_graph_2<AGT2_K>
AG2;
typedef CGAL::Apollonius_graph_adaptation_traits_2<AG2>
AG2_Trait;
typedef CGAL::Apollonius_graph_caching_degeneracy_removal_policy_2<AG2>
AG2_Policy;
typedef CGAL::Voronoi_diagram_2<AG2,AG2_Trait,AG2_Policy>
VD_AG2;
typedef VD_AG2::Bounded_faces_iterator Bounded_faces_iterator;
typedef VD_AG2::Unbounded_faces_iterator Unbounded_faces_iterator;
typedef VD_AG2::Ccb_halfedge_circulator Ccb_halfedge_circulator;
typedef VD_AG2::Halfedge_handle Halfedge_handle;
typedef VD_AG2::Face_handle Face_handle;
typedef VD_AG2::Vertex_handle Vertex_handle;
typedef VD_AG2::Delaunay_graph::Vertex_handle Delaunay_vertex_handle;
typedef VD_AG2::Delaunay_graph::Edge Delaunay_edge;
typedef VD_AG2::Unbounded_halfedges_iterator Unbounded_halfedges_iterator;
using namespace std;
int main(){
std::ifstream ifs("sites.cin");
assert( ifs );
VD_AG2 VDA;
Site_2_Apo site;
while ( ifs >> site )
{
VDA.insert(site);
}
Face_handle face1;
float x,y,x1,y1;
for(Unbounded_faces_iterator f = VDA.unbounded_faces_begin(); f !=
VDA.unbounded_faces_end(); f++)
{
Ccb_halfedge_circulator ec_start = (f)->ccb();
Ccb_halfedge_circulator ec = ec_start;
//cout<<"Helllllo "<<ec->vertex(<<"\n";
face1 = f;
Delaunay_vertex_handle vh = f->dual();
cout<<"\n\nVERTEX : "<<vh->site()<<"\n";
do {
Halfedge_handle ec1 = ec;
if(ec1->has_source()){
std::cout<<"Source : " << ec->source()->point()<<"\n";
}
else{
cout<<"NOT\n";
}
if(ec1->has_target()){
std::cout<<"target : " << ec->target()->point()<<"\n";
}
else{
*CGAL::Object o = VDA.dual().dual(ec->dual());*
cout<<"NOT\n";
}
}while ( ++ec != ec_start );
}
return 0;
}
The line *CGAL::Object o = VDA.dual().dual(ec->dual());* gives me
following error
CGAL::Object o = VDA.dual().dual(ec->dual());
^
In file included from /usr/include/CGAL/Apollonius_graph_2.h:1345:0,
from /home/Research/CGAL-5.0.2/B_Box/B_Box.cpp:14:
/usr/include/CGAL/Apollonius_graph_2/Apollonius_graph_2_impl.h:186:1: note:
declared private here
Apollonius_graph_2<Gt,Agds,LTag>::
what does this error mean. How can we resolve this error.
My entire project is dependent on cropped apollonius graph. I have also
tried draw_dual() method suggested by sebastein, but i am not able to print
the cropped apollonius diagram. I have mentioned my code in previous mail.
If you have an idea please help me.
Thanks,
Virti
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/14/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/14/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/14/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/16/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/18/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/18/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/19/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/19/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/20/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/20/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/20/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/21/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/21/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/22/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/19/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/18/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/18/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/16/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., VSav, 01/14/2021
- Re: [cgal-discuss] crop infinite edges of additive weighted voronoi diagram., Sebastien Loriot, 01/14/2021
Archive powered by MHonArc 2.6.19+.