Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] OutputIterator problem for incident cells
- Date: Fri, 14 Apr 2017 19:14:38 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:ABICBhNjaEkgN8L5atkl6mtUPXoX/o7sNwtQ0KIMzox0I/78rarrMEGX3/hxlliBBdydsKMYzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFHiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkHKTA37W/ZhM93jK1ZrhKuqBNxzJLPbYGJKfRzZL/Rcc8GSWZfWMtaSixPApm7b4sKF+cNM+BWoJPgp1sUsxS+AxWsD/7zxD9JgH/5w7c10/k8Gg3CwgEuHs4DvnLPoNv0KqgSVuW1w7fUzTXZb/JY2S3y55TUchAmu/GNXbd8fcTMwkQoEwPKlEiQqZb7MDOTyuQBqXKb7+tmVe2xkWEnthp8rSSgxsg2jonFnIUVykrL9Shgxos+ONO2SEl+YdG+EZtQsTmXN41sTcw5WG5ovDg1xqcatp68eSgG0IgoxxHFZPyDaYSI5QjjVOmJLTd3mn1lf7e/iAiu8Ui6yuz8WNO730pWripCiNnNtmoB2ADU6siCTPZ240Sv2S6X2g3c6+xIO104mbbbJpI7zbM9mIAfvVrfEiL2gEn7g66bel859uWr5enreLrrq5uGO4NphAzzPaIjkdGlD+siKAgBRW2b9Py81LL9+U35R61Hg/wsnqnct5DWON4XpqujDA9U1oYv8hG/Dyq60NgCmnkHMlJFdAiBj4f3J1HCOPH4DfGhjFSwiDpmyPHLMqf8DpnRLnXPirjscLhn50JC1AY+zchT55dOBbEAJPLzVFXxtNvdDhIhNwy72fvnCM9j2YMYRWKDGLWZMKLUsVCW/O0vPvKBa5MauDnnL/gp/fnujWU2mVMFZ6mmwYMXaGykHvRhO0iWfXXsjc0FEWsTowU+Tffqh0GfUT5IfHa/RLk85zE+CIK+F4jPXIGtgLqb3Ce6BJJafG5GCkrfWUvvIo6LUvNJZCOJKdJ6iRQFU6KgQskvz0KArgj/nvBDJ/fO9ysE/aji0tV8+qWTvj4b0XtbAsOY3n2XXk99lX8PXS53lugrpUVg0FqFze5igvpVHMF77PxAVkE9L5GKnL8yMMz7Rg+UJoTBc12hWNjzWTw=
- Organization: GeometryFactory
Le Thursday, April 23, 2015 3:26:26 AM CEST brYang a ?crit :
> Hi Everyone,
>
> I was trying to get all the incident cells of a point in delaunay
> triangulation
> with below function:
>
> template <class OutputIterator>
> OutputIterator t.incident cells( Vertex handle v, OutputIterator cells)
>
> My code is as follows:
>
> std::list<Cell_handle_t> cell_vector;
> //assume vh is the Vertex_handle
> dt.incident_cells(vh, std::back_inserter(cell_vector));
The following error log shows that the first parameter, `v`, is not a
triangulation `Vertex_handle`. `CGAL::HalfedgeDS_in_place_list_vertex<..>` is
the vertex handle type of a CGAL Polyhedron_3!
> But it says that there is something wrong with my code, the result is as
> follows:
>
> Mesh.cpp(1454): error C2664: 'OutputIterator
> CGAL::Triangulation_3<GT,Tds_>::incident_cells<std::back_insert_iterator<
> ;_Container>>(CGAL::internal::CC_iterator<DSC,Const>,OutputIterator) const'
> : cannot convert parameter 1 from
> 'CGAL::internal::In_place_list_iterator<T,Alloc>' to
> 'CGAL::internal::CC_iterator<DSC,Const>'
> 1> with
> 1> [
> 1>
> OutputIterator=std::back_insert_iterator<std::list<Cell_handle_t>>,
> 1> GT=K,
> 1> Tds_=Tds,
> 1> _Container=std::list<Cell_handle_t>,
> 1>
> DSC=CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_3<
> VertexInfo,K,CGAL::Triangulation_vertex_base_3<K,CGAL::Triangulation_ds_
> vertex_base_3<CGAL::Triangulation_data_structure_3<Vb,Cb>>>>>, 1>
> Const=false
> 1> ]
> 1> and
> 1> [
> 1>
> T=CGAL::HalfedgeDS_in_place_list_vertex<CGAL::I_Polyhedron_vertex<MPVert
> ex<CGAL::HalfedgeDS_list_types<CGAL::Cartesian<simple_numbertype>,
> CGAL::I_Polyhedron_derived_items_3<MPItems>,std::allocator<int>>,CGAL::Tag_
> true,CGAL::Point_3<CGAL::Cartesian<simple_numbertype>>,CGAL::Vector_3<CG
> AL::Cartesian<simple_numbertype>>,CGAL::Cartesian<simple_numbertype>>>>,
> 1>
> Alloc=std::allocator<CGAL::HalfedgeDS_in_place_list_vertex<CGAL::I_Polyh
> edron_vertex<MPVertex<CGAL::HalfedgeDS_list_types<CGAL::Cartesian&
> lt;simple_numbertype>,CGAL::I_Polyhedron_derived_items_3<MPItems>,std::allo
> cator<int>>,CGAL::Tag_true,CGAL::Point_3<CGAL::Cartesian<simple_numberty
> pe>>,CGAL::Vector_3<CGAL::Cartesian<simple_numbertype>>,CGAL::Cartesian<
> simple_numbertype>>>>> 1> ]
> 1> and
> 1> [
> 1>
> DSC=CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_3<
> VertexInfo,K,CGAL::Triangulation_vertex_base_3<K,CGAL::Triangulation_ds_
> vertex_base_3<CGAL::Triangulation_data_structure_3<Vb,Cb>>>>>, 1>
> Const=false
> 1> ]
> 1> No user-defined-conversion operator available that can perform
> this conversion, or the operator cannot be called
>
>
> I have no idea what the exact problem is, would you please help me with it?
> Thank you very much.
>
> Monica
>
>
>
> --
> View this message in context:
> http://cgal-discuss.949826.n4.nabble.com/OutputIterator-problem-for-incide
> nt-cells-tp4660713.html Sent from the cgal-discuss mailing list archive at
> Nabble.com.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- Re: [cgal-discuss] OutputIterator problem for incident cells, mikef, 04/14/2017
- <Possible follow-up(s)>
- Re: [cgal-discuss] OutputIterator problem for incident cells, Laurent Rineau (CGAL/GeometryFactory), 04/14/2017
Archive powered by MHonArc 2.6.18.