Subject: CGAL users discussion list
List archive
- From: Guillaume Damiand <>
- To:
- Subject: Re: [cgal-discuss] Items with id in LinearCellComplex
- Date: Mon, 22 Jun 2015 11:36:20 +0200
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 DAMIAND
CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.14.34 Fax: +33 (0)4.72.43.15.36
Mail:
Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
- [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.