Subject: CGAL users discussion list
List archive
- From: Guillaume Gay <>
- To:
- Subject: Re: [cgal-discuss] Items with id in LinearCellComplex
- Date: Mon, 22 Jun 2015 11:40:04 +0200
Thanks for the swift answer!
I'll dive into all this.
Best
G.
Le 22/06/2015 11:36, Guillaume Damiand a écrit :
Hi Guillaume,
Le 22/06/2015 10:09, Guillaume Gay a écrit :
Hi all,
I'm new to CGAL, so apologies in advance if I ask obvious questions.
They are not obvious ;)
I'm starting to use LinearCellComplex to model biological epitheliums (those are one cell thick sheets of tissues).
I need to attach ids to faces, vertices and edges, as done in Polyhedron_Items_with_id :
http://doc.cgal.org/latest/BGL/classCGAL_1_1Polyhedron__items__with__id__3.html
If I understand correctly, this can be done in the definition of CellAttributes.
Yes.
What I'm unsure of is how one can access the DartHandle of a cell with a given id latter on,
Two possibilities:
* use three std::vector to store the cell attribute handle associated with each id. Then given a cell attribute handle you can obtain one dart of the cell using the dart() method.
* use the operator[] on cell attribute, for example amap.attributes<1>[5] gives the cell attribute handle<1> numbered 5. Then use the dart() method.
and the correct strategy to make sure ids are unique and no collision occur.
Instead of associating directly an id to 0, 1 and 2-cells, create your own class containing an id, associate this class to 0-cell and initialize the id of 0-cell in its constructor incrementing a static variable (the same for 1 and 2 cells).
So my question is: has anybody already coded ids attributes for LCC? If not, what do you advise?
Subsidiary question: I understand ids help interface Polyhedron_3 with the boost graph library, is this achievable for LCC?
Not yet...
Best
Guillaume
The code base is here: https://github.com/CellModels/tyssue/tree/linearcellcomplew.
Thank you for your input,
Best,
Guillaume
--
--
Guillaume Gay, PhD
http://damcb.com
43 rue Horace Bertin
13005 Marseille
+33 953 55 98 89
+33 651 95 94 00
n°SIRET 751 175 233 00020
- [cgal-discuss] Periodic Delaunay, Hadidi, Lars, 06/18/2015
- Re: [cgal-discuss] Periodic Delaunay, Monique Teillaud, 06/19/2015
- [cgal-discuss] Items with id in LinearCellComplex, Guillaume Gay, 06/22/2015
- Re: [cgal-discuss] Items with id in LinearCellComplex, Guillaume Damiand, 06/22/2015
- Re: [cgal-discuss] Items with id in LinearCellComplex, Guillaume Gay, 06/22/2015
- Re: [cgal-discuss] Items with id in LinearCellComplex, Guillaume Damiand, 06/22/2015
- [cgal-discuss] Items with id in LinearCellComplex, Guillaume Gay, 06/22/2015
- Re: [cgal-discuss] Periodic Delaunay, Monique Teillaud, 06/19/2015
Archive powered by MHonArc 2.6.18.