Subject: CGAL users discussion list
List archive
- From: Peter Klosowski <>
- To:
- Subject: Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex
- Date: Wed, 29 Aug 2018 14:13:15 +1000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:thScFBHFEqfxjH/f7rVFRp1GYnF86YWxBRYc798ds5kLTJ78rsiwAkXT6L1XgUPTWs2DsrQY07WQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODE38G7VisJ+gqFVrg+/qRNj2IPbep2ZOeBkc6/BYd8XR2xMVdtRWSxbBYO8apMCAfAfMuZEsYb9vUYFox66BQmrH+PvzTFJhmT13a07zu8sFgLG3AgnH9IAvnTVrM74NKgXUe+vzanIyS/PYO9R2Tf48YXFdA0qr/+LXbJ1a8XRyE8vGhvDjlqKsoPqJDeV2foXv2eH6OpgUPqjimAmqwFyoziv3tkjhZTIho0P0FzE8j95wIktKdKkTk57e8WkHIFetyGAL4d5XswiTHtsuCogzb0Go5G7cS4Xw5ok3x7Sc+KLf5SM7x75V+ucIS10iGx4dL+wnRq/8VWsx+vhXceuyllKtDBKktzUu3ANyRPT7s+HR+N4/ki72DaP0xnf6uBYIUwojKbbJZ4szqMqmpoctkTDGSD2mEHog6OMakok/e2o5/zmYrXguJCcK5d5hh/iPqkqgMCyAuQ1PhIQU2SG9umwzr3u8VDhTLVPlPI2k63ZsJ7AJcQco660GwxV0oIk6xaxATen0M8VnXYCLF1feRKHi5LlNE3JIPD9Ffu/mUijkC93x/DaOb3sGonCLnfZn7flZLpy9k9cyBEvwtBC/JJUEaoMIOnzW0/0rNzXFAU1Mw2yw+b9CdVyzJkSWWyVAvzRDKSHulCB4qcjIvKHeZQOkDf7MfksofD03lEjnlpIRaS10IFfS3S/BfN5OEaYKS7vhtAPH3YisQ83Teisg1qHB20AL02uVr4xs2loQLmtCp3OE9j00e6xmRyjF5gTXVhoT1WFEHPmbYKBAq5eZyebI8snmTsBB+H4F90RkCq2vQq/8IJJa/LO83RB553m3dlxoebUkENqrGEmP4Gmy2iIClpMsCYISjsxhv0tpEV8zhKCzfA9jaEBU9NU4PxNX0ExMpuOl+E=
Hi,
Just following up on this, since I am feeling quite stuck. Is there anybody who could answer the following question?
1) Should it be possible to construct a 1D combinatorial map with the following characteristics?
#Darts=2, #0-cells=2, #1-cells=1, #ccs=1
Bonus questions:
1a)
If yes, what is the correct code to construct such a combinatorial map?
1b) If no, what is the best representation of a 1-simplex (1d line segment)?
Any advice would be greatly appreciated. Thank you in advance!
Cheers,
Peter
Hi Guillaume,Many thanks for your suggestions! However, I am still a bit confused. I tried your code:CGAL::Combinatorial_map<1> cm;
auto dh1 = cm.create_dart();
auto dh2 = cm.create_dart();
cm.dart_link_beta<1>(dh1, dh2);
cm.display_characteristics(std::cout);
std::cout << std::endl;But it still gives me:#Darts=2, #0-cells=2, #1-cells=2, #ccs=1Am I wrong to expect that an edge would only have a single 1-cell? My expectation comes from the faces of a 1-simplex (https://en.wikipedia.org/wiki/Simplex). Perhaps in combinatorial maps it works differently...I think the main challenge for me in terms of forming an intuition is to understand the different betas. I can see the value of combinatorial maps to represent cellular structures, and a lot of the concepts and operations make sense. I am just having trouble getting my head around why an edge is made of two darts linked by beta1, as opposed to beta0, for example?I hope some of that makes sense. Thank you again for the help!Cheers,PeterHi Peter;
Le 26/08/2018 à 13:41, kloffy a écrit :
> Hi,
>
> I am trying to get my head around combinatorial maps, and I thought I would
> start with the simplest non-trivial example, a 1-simplex (#0-cells=2,
> #1-cells=1).
>
>
> So, first I tried the obvious construction helper:
>
> CGAL::Combinatorial_map<1> cm;
>
> cm.make_edge();
>
> cm.display_characteristics(std::cout);
> std::cout << std::endl;
>
> However, this gives me:
>
> #Darts=2, #0-cells=2, #1-cells=2, #ccs=2
>
> But that's not quite right (#1-cells=2).
A 1D combinatorial map can be seen as a set of 1D curves (possibly opened).
As said in the doc of make_edge (here
https://doc.cgal.org/latest/Combinatorial_map/classGenericMap.html#a6f455fd64b650495392bddecedbd5afe),
this method requires that the dimension of the combinatorial map n is >= 2.
Indeed, an edge is made of two darts linked by beta2 and this requires n>=2.
In a 1D cmap, an edge is made of two darts linked by beta1. If you want
to create such an edge by hand, you must use
cm.dart_link_beta<1>(dh1, dh2);
To have an intuition of what is a combinatorial map, have a look at the
2 first figures in the user manual (here
https://doc.cgal.org/latest/Combinatorial_map/index.html).
Hope this help.
Best
Guillaume
>
>
> So I tried creating the 1-simplex manually:
>
> CGAL::Combinatorial_map<1> cm;
>
> auto dh1 = cm.create_dart();
> auto dh2 = cm.create_dart();
>
> cm.dart_link_beta<1>(dh1, dh2);
>
> cm.display_characteristics(std::cout);
> std::cout << std::endl;
>
> However, this gives me:
>
> #Darts=2, #0-cells=2, #1-cells=2, #ccs=1
>
> But that's still not quite right (#1-cells=2).
>
>
> I tried a bunch of other things, but I never managed to get the intended
> result (#1-cells=1). My intuition for combinatorial maps is still very poor,
> which was the motivation for this exercise. At this point, I feel like I
> must be missing something. Please forgive me if it is something very
> obvious. Still, I would appreciate any hints...
>
> Cheers,
> Peter
>
>
>
> --
> Sent from: http://cgal-discuss.949826.n4.nabble.com/
>
--
===================================================================
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/
===================================================================
- [cgal-discuss] 1D Combinatorial Map - 1-Simplex, kloffy, 08/26/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Guillaume Damiand, 08/27/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Peter Klosowski, 08/27/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Peter Klosowski, 08/29/2018
- Re:[cgal-discuss] 1D Combinatorial Map - 1-Simplex, xlhu, 08/29/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Guillaume Damiand, 08/29/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Peter Klosowski, 08/31/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Peter Klosowski, 08/29/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Peter Klosowski, 08/27/2018
- Re: [cgal-discuss] 1D Combinatorial Map - 1-Simplex, Guillaume Damiand, 08/27/2018
Archive powered by MHonArc 2.6.18.