Subject: CGAL users discussion list
List archive
- From: GAD FLY <>
- To: "" <>
- Subject: Re: [cgal-discuss] Offsets in periodic triangulations
- Date: Tue, 24 Jul 2018 14:52:33 +0000 (UTC)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:e8B4pBRdStQ4X6My76pAtWQyrNpsv+yvbD5Q0YIujvd0So/mwa6yZRGN2/xhgRfzUJnB7Loc0qyK6/6mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbJ/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/m/XhMxqkqxVoxCupxJizYHbfI6bM+FzcbnBcd4AXmVMRNpdWi5HD4ihb4UPFe0BPeNAoof8u1YAowa1CwmqCuzt1zRFgXD20rcn3Og7HwHG2AwhEt0NvXnPrNT6LqcSUeeyzKXS0TrDaPZW1C775YPVfB4hpvSMUqhxccrX0UQgCwzFgU+UqYD/ODOVzOsNvm6G5ORjTeKik28qpgBrrjSyx8ohhJPFip8Wx13E7yl0zog4KNulQ0Bhe9GkCoFftySCOot2XMwiR2ZotT4hyr0Bv567fTQFxZo6yxPRcvCLbpSE7gj/W+aWJzd4n3dleKilixa360egy+n8WtOy0FlUsyZJiNnNuWoN1xzU7ciLUOdy/kCk2TqX1gDT7P9LIVwsmKfaKpMt2KM8m5sdvEjZAyP7m0X7gLWYe0gq4uSo7v7oYrTipp+SLY90jQT+P7whmsOlHOs0KAYOX2yb+Omz17Du5k34T69Kjv0xlanVqozVJcMepqKhGQ9azp4j6wqjDzehyNkXgXYHI0hBeB6ekofpOkrOL+zlDfekmFShiyxrxvDDPr35GJrBNHnDkLH7fbZ88UFQ0gQzzcoMr65TX/sKL/v3H0Pwr9fFFQQRMgquwu+hBs83ntcVVmuLR6OYK6jPqkSg5+Q1IuDKapVD6wzwM/w02/m7olYV0XE5TOH90pIbLn68D6g2C1SQYX3rxNwGFDFZkBA5SbnFoXHKfxpiLyK9Vq566DUqVNKOHI7DQYfri7uEinToVqZKb3xLXwjfWUzjcJ+JDq9VOXCiZ/R5mzlBboCPDooo1BWgrgj/kuM1P+PU/SpevpXmhoEsu7/j0Coq/DkxNPyzlnmXRjgtzHIBRzgxmqt4pB4lkwrR4e1Dm/VdUOdrybZJXwM9bs+O1Ot8CtupA1mEJ4/PQ1GgWdC8RzQ4T9Z3xdJXJVd0G9KlyBvE2njyDg==
Thank you Mael for your detailed explanation.
However, when for example a periodic point (xp,yp) in 2D has offset of (2,0), to find its position should we try (xp + 2*L , yp) where L is the box size?
Best,
James
On Friday, July 20, 2018 3:42 AM, Mael <> wrote:
Hello,
An illustration of the offsets is given this
figure in the Periodic_3_triangulation_3 documentation. The
offset vector (or just simply offset) expresses a translation: a
periodic domain is an axis-aligned cuboid that by definition
repeats itself in the x, y and z directions and thus forms a
tiling of the space. If we arbitrarily choose a tile and name it
the main tile, we can number all the other tiles via 3 numbers,
the amount of steps we have to do in the x, y, and z direction to
reach that tile from the main tile. That's the offset.
What is important to understand is that points of a periodic
triangulation all live in the same cube (the one with offset
(0,0,0), also known as fundamental or canonical
domain). Offsets are then used to indicate relative positions
within an element of the periodic triangulation.
For example, in 3D and using the unit cube as fundamental domain,
the cell composed of the points:
(0.7, 0.9, 1.1)
(0.8, 0.8, 0.9)
(0.9, 1.2, 0.9)
(1.0, 0.9, 1.1)
(0.8, 0.8, 0.9)
(0.9, 1.2, 0.9)
(1.0, 0.9, 1.1)
is going to be represented as
(0.7, 0.9, 0.1) with offset (0,0,1)
(0.8, 0.8, 0.9) with offset (0,0,0)
(0.9, 0.2, 0.9) with offset (0,1,0)
(0.0, 0.9, 0.1) with offset (1,0,1)
Thus, when you drawing your triangulation, you should iterate over
its elements and take into account the offsets to compute the
positions you have to draw in full space (this is basically reading
the example above from the bottom up). Whichever dimension you are
in, there are functions to obtain a position in Euclidean space from
a vertex within an element (e.g. periodic_point()). There
are also functions to save and output periodic triangulations, which
you can inspire yourself with if they're not satisfactory for you.(0.8, 0.8, 0.9) with offset (0,0,0)
(0.9, 0.2, 0.9) with offset (0,1,0)
(0.0, 0.9, 0.1) with offset (1,0,1)
Best,
Mael
On 20/07/2018 01:42, GAD FLY wrote:
Hi everyone!
As a beginner I got stuck when reading the documentation on the periodic triangulations!My question is about the "Offset" vector, the documentation says "It represents the number of periods a representative in the original domain must be translated in x- and y-direction". Could someone explain this vector in an example maybe?I wanted to visualize my periodic triangulation structure, but I do not know how to deal with the edges between an original point and a periodic copy.
Thanks,James
- [cgal-discuss] Offsets in periodic triangulations, GAD FLY, 07/20/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, Mael, 07/20/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, GAD FLY, 07/24/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, GAD FLY, 07/24/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, Mael, 07/25/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, GAD FLY, 07/24/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, GAD FLY, 07/24/2018
- Re: [cgal-discuss] Offsets in periodic triangulations, Mael, 07/20/2018
Archive powered by MHonArc 2.6.18.