Subject: CGAL users discussion list
List archive
- From: Gianmarco Spera <>
- To:
- Subject: Re: [cgal-discuss] Delaunay triangulation in rectangular domain
- Date: Mon, 25 Jan 2021 14:47:15 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:kTXJlxM4e1xugcL0lFYl6mtUPXoX/o7sNwtQ0KIMzox0K/34ocbcNUDSrc9gkEXOFd2Cra4d2qyM6Ou8BSRAuc/H7CldNsQUFlcssoY/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbuv6FZTPgMupyuu854PcYxlShDq6fLh+MAi6oR/eu8ULhYZuMLg9xxXGrnZHdOld2GdkKU6Okxrm6cq84Zxu/z5Mt/498sJLTLn3cbk/QbFEFjotLno75NfstRnNTAuP4mUTX2ALmRdWAAbL8Q/3UI7pviT1quRy1i+aPdbrTb8vQjSt871rSB7zhygZMTMy7XzahdZxjKJfpxKhugB/zovJa4ybKPZyYqXQds4cSGFcXMheSjZBD5uzYIsBDeUPPehWoYrgqVUQsRSzHhOjCP/1xzJSmnP6wa833uI8Gg/GxgwgGNcOvWzVotX0LqgSV+W1w7PSzTrfaPNdxCrz6JDWfRA7u/6HQLV9cdHJyUYxDQPKlFqQqY3/MDOT0+QCqXKb4PZnVe+0hG4nrht+ojmrxss2lobJgYcVx0nC+C5kz4k7Oce2R1RnYd64DpRQrSeaOpN1T80tQWxltjs2xLIItJOlcyUEx4oqyhreZvGIfYWE/hHuWeaQLDp4mX9oebOyihS2/Eav1uDxVsi53EpIoyRKlNTHq34D1xvW6sedS/t9+F+s2TmO1wDP6uFEPFs7mbDHJJ4mx748joccvl7MHi/thEX2ka+WdkE+9ue19evrerPmqYWHOIBvjgHxLL4ildC4AeQ9KgQOXm6b+f691LL550H5Tq9Kg/srmafaqJDXPdoXqrK9DgNP0Ysu6wyzAym73NgEh3UKI0xJdRSahIbzIV7OOur3DfKnjlSsjjhrw/fGM6XkAprXL3jDlK7tfbFh60JB0QYzw99S64xOBrEOJ/LzXUDxtNjGARMjLwO0xOPnBM181oMYR22PHreUPL3OvVKM/O4iIOmBaJULtDrgN/Qp/fHjgWEhlV8YZ6ap3J8XaH6iHvRhJkWUeWHsgs8fHmcQpAU+Q+3qh0eEUT5WfXmyRb4z5jYgBYKpCIfMXIGtgLib0CinGZ1WY3hKCkqQHnfwa4WER/AMZTqOLc9uiDMEUaGtRJIg1RG1qAD61qFnLvHP9y0DtZPj0cB16PfJmREz8zx0FcWd3HuXQ2F6hGNbDwIwx7119Exh1k+Yg+8/mO1dDdUV5vVTUw58O4Sb1P1/E9m1WwTPeZCCR1+iB9mnGjosVcli/tkVfkxdB9Cm2xDfwzKxUfhSjK2OHJVy86TG3nG3Kdw60GfDzKBmjl8oRYxEOmSiw6J+7APOHJWarkOCiqyWeLQAiS7R6H+Yny3Jp1BdSAc2UKPfXHlZaFGRtsX8/kqFTrmgDvMsPQJFjMKDMaBXcca6sVITT/jqPJHSYnm6hnyrLReO3LKFKoTwKEsH2yCIJ0kNlQUa532BfTMmCz2o6zbFFDF0HF3uakXp+PN1r1u0S0Y1y0eBaEg3hOn9wQIcmfHJE6Bb5bkDoip082wpTmb45MrfDp+7nyQkfKhYZolgslJO1GacsBAke5L8deZtgVkRdwkxtETrhU0uVtdw1PMypXZv9zJcbLqC2QoYJTyd1JH0fLbQLzuqpUH9W+vtwljble2u1OIK4fU8pU/kuVjwREUn+nRjldJS1inF6w==
Hello,
yes, it works! Sorry for the silly mistake.
I will try to work on it and get it back to you.
Thanks for the help :-)
Best,
Gianmarco
Il giorno lun 25 gen 2021 alle ore 14:30 Mael Rouxel-Labbé <> ha scritto:
Hello,
Can you try to just add:
#include <CGAL/Triangulation_face_base_with_info_2.h>
with the other includes at the top of file?
Best,
Mael
On 25/01/2021 14:09, Gianmarco Spera ( via cgal-discuss Mailing List) wrote:
Hello,
thanks a lot! I did it and it solves the three-dimensional example, thanks.
However, If I try the same with the two-dimensional example, it gives me a new error message ( The previous one is solved! )
It says that there is an error with Triangulation_face_base_with_info_2, I attached the file with the error message. It suggests switching to Triangulation_face_base_2 but I get always an error.
Thanks for your help.
Best,
Gianmarco
Il giorno lun 25 gen 2021 alle ore 08:58 Mael Rouxel-Labbé <> ha scritto:
Hello,
That would be my fault, I changed the default branch of my repository back to the 'master' branch and not the periodic branch once the reviewing process was over. You have to add the following line:
git checkout -b Generic_Periodic_Triangulations origin/Generic_Periodic_Triangulations
in between the two following commands:
git clone /path/to/cgal cd /path/to/cgal/Periodic_3_triangulation_3/examples/Periodic_3_triangulation_3
Since you were on the master branch, the periodic code was missing hence your errors.
Let me know if you have any further issues.
Best,
Mael
On 24/01/2021 17:52, Gianmarco Spera ( via cgal-discuss Mailing List) wrote:
Hello,
sorry if it took me so much time to reply.
I have tried to compile the cgal examples in the repository but I have some errors and I can't understand why.
The error is described in the attached file, and it seems to be related to the absence of the library Periodic_2_Delaunay_triangulation_2_generic.h, which is not in my computer even if cgal is installed. I find a similar error for the three-dimensional example.I can't find the library Periodic_2_Delaunay_triangulation_2_generic.h in CGAL 5.2 or in the cgal repository you linked me.
CGAL has only Periodic_2_Delaunay_triangulation_2.h. However, if I compile it with this one, I get a lot of other errors.
Sorry if the mistake might be silly but I am a newbie in cpp and cgal.Thanks a lot for your help and your time.
Il giorno lun 14 dic 2020 alle ore 17:27 Mael Rouxel-Labbé <> ha scritto:
Hello,
There is a feature under development that adds support for periodic
triangulations of such domain. You can find a stable (but unfinished)
version here :
https://github.com/MaelRL/cgal/tree/Generic_Periodic_Triangulations
<https://github.com/MaelRL/cgal/tree/Generic_Periodic_Triangulations>.
In this new version of the package, the base domain that is periodically
duplicated is a Voronoi face, described by a lattice basis of vectors; 3
vectors in your 2D case. See the associated paper :
https://drops.dagstuhl.de/opus/volltexte/2020/12941/pdf/LIPIcs-ESA-2020-75.pdf
<https://drops.dagstuhl.de/opus/volltexte/2020/12941/pdf/LIPIcs-ESA-2020-75.pdf>
for more details, explanations on how it works, etc.
The code is developed in the existing package
"Periodic_2_triangulation_2" (and "Periodic_3_triangulation_3" for the
3D version). You should base your code on this example :
https://github.com/MaelRL/cgal/blob/Generic_Periodic_Triangulations/Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/generic_p2t2.cpp
<https://github.com/MaelRL/cgal/blob/Generic_Periodic_Triangulations/Periodic_2_triangulation_2/examples/Periodic_2_triangulation_2/generic_p2t2.cpp>.
Let me know if you encounter any issue or have any question.
Best,
Mael
On 14/12/2020 09:41, Giammi ( via cgal-discuss
Mailing List) wrote:
> Dear all,
>
> I am a newbie of cpp and cgal.
> I would like to write a code in which particles move in a 2D rectangular
> domain ( with periodic boundary conditions) and then interact with their
> neighbors in a Delaunay triangulation.
> Currently, I am working with a code that has the precondition that the
> domain must be a square and I can't find anything in the documentation that
> could help me in changing the size of the domain.
>
> Therefore, I would like to ask you if there is any package that lets me work
> on a rectangular domain?
>
> Thanks a lot for your help.
>
> Best,
>
> Gianmarco
>
>
>
> --
> 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
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Gianmarco Spera, 01/24/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Mael Rouxel-Labbé, 01/25/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Gianmarco Spera, 01/25/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Mael Rouxel-Labbé, 01/25/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Gianmarco Spera, 01/25/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Mael Rouxel-Labbé, 01/25/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Gianmarco Spera, 01/25/2021
- Re: [cgal-discuss] Delaunay triangulation in rectangular domain, Mael Rouxel-Labbé, 01/25/2021
Archive powered by MHonArc 2.6.19+.