Subject: CGAL users discussion list
List archive
- From: GAD FLY <>
- To: "" <>
- Subject: Re: [cgal-discuss] Vertex handle from its associated info()
- Date: Wed, 18 Jul 2018 15:10:25 +0000 (UTC)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:YzTD3BCoy3fWAxGcaMGaUyQJP3N1i/DPJgcQr6AfoPdwSPTyo8bcNUDSrc9gkEXOFd2Cra4c1ayO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhTexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJOT438HvJhMJzjq1brg+vqBNjzIDTe4yaLuZycbjGct4AWWZMXMBcXDFBDIOmaIsPCvIMM+dEoofzulAArR2wCguxD+7oxT9HnGL50bc00+QlEQDL0w8tEskOsXvOrNX1M6ASXfqpw6nPyDXOdvVb0irz5ojPdxAuu/CMXbRofMrX00YgDBjKjlGOpoD/IzyV0eENv3Ca7+pmT+KvinQopxt/oji1wMonl4rHhpoNx13F9Ch12ps5KNy2RUJhfNKpFIZcuzuHO4Z0Tc4vRXxjtjwgxb0co5G7eTAHyJQ5yB7bbPyKa5OI4hXlVOaQPTh1im5pdb2mixu98kWs0PHzVs6y0FZRqypFiMPAtnUX2BzS7siLUP198Vm81TqV1wHc8OFEIUczlabBN5EhxbswmoISsUTFACD2hF37ga6Xe0k+5+Sl6urqbq/7qpKYKoN4kBzyP6Yhl8CnBOQ3KAkOX2yV+eSm073j+FX0QLpQgfIriKXZvpTaJMQUq6O6GAJU0pws6xa4DzehytgXgX4HLFdddBKdk4fpI03OIOz/Dfqnn1usny1kx/TfMrL8A5XNNWTMkKr6fbZm8ENc0woyzdVH551OEL0BIfTzWlXwtNPCFBM5PRa0kK7aDs5g3NYeRX6XGf3ed7jDtEeBoOMpOeiFIoEP/y3sLuAsoP/og3h+klAUeeyl3IAcdWujTchhdg+SbnPox9sACmwXpREWTerwiVTEXyQZLyK5UKs4oz06E4m7FpzrR4a3gbXH0j3tTadbfmRXNlfZPl7EP6ugar9YZyueZMFlg2BUfamoS4gmkxqpsVmp5aBgK7/70wFQm7bSnIx67uGVmxUjqWxcHs2d1GbLRGZxyDBbDwQq1bxy9BQugmyI1rJ11qQBRI5joshRWwJ/DqbyiulzCtT8QAXEJ47bWV+mRdLgCjY0HIton40+Jn1lEtDntSjtmjKwCuZMxa2CBJsztKnb2iqpfpsv+zP9zKAkymIebI5POGmh3f8t7A/VBoWSyxncy/bsfqMaxyvXsmKKzG7IukwBFh95UaLCG3sYYxmOoA==
Thanks Yoav,
That is indeed the way I'm implementing it right now, however I thought maybe there is a simple built-in method to do this.
Thanks again,
James
On Wednesday, July 18, 2018 1:25 AM, yoapvol <> wrote:
Hi James,
I'm also quite new to CGAL, but from what I understand there is no built in
way to do what you ask.
You can either go over the vertices with an iterator/circulator looking for
the one that has the right info (inefficient I guess), or have some
book-keeping container (vector, list etc.) that stores the vertex handles.
e.g. I am using a vector of vertex handles constructed such that the index
of the vector element corresponds to the info of the vertex to which the
handle belongs. That way when I want the vertex handle of a given index, I
just go the the vector element of the same index.
Hope this helps.
Yoav.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
I'm also quite new to CGAL, but from what I understand there is no built in
way to do what you ask.
You can either go over the vertices with an iterator/circulator looking for
the one that has the right info (inefficient I guess), or have some
book-keeping container (vector, list etc.) that stores the vertex handles.
e.g. I am using a vector of vertex handles constructed such that the index
of the vector element corresponds to the info of the vertex to which the
handle belongs. That way when I want the vertex handle of a given index, I
just go the the vector element of the same index.
Hope this helps.
Yoav.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Vertex handle from its associated info(), GAD FLY, 07/18/2018
- Re: [cgal-discuss] Vertex handle from its associated info(), yoapvol, 07/18/2018
- Re: [cgal-discuss] Vertex handle from its associated info(), GAD FLY, 07/18/2018
- Re: [cgal-discuss] Vertex handle from its associated info(), yoapvol, 07/18/2018
Archive powered by MHonArc 2.6.18.