|
Geometry : |
Subject: [ggl] Point orders of polygon
From: V D (zedxz2)
Date: 2011-11-01 02:50:42
Hi,
I'm a bit confused about the point order of polygons.
My polygons are using the default argument, which is Clockwise=true
Does that mean inner rings are also clockwise or are the inner rings always in the reverse direction?
I tried the following:
polygon square_with_hole;
bg::read_wkt("POLYGON((0 0, 0 10, 10 10, 10 0, 0 0), (3 3, 3 8, 8 8, 8 3, 3 3))", square_with_hole);
// Here outer and inners[0] are both clockwise.
bg::correct(square_with_hole);
// Here outer is clockwise and inners[0] is counter-clockwise.
Thanks,
-V
Geometry list run by mateusz at loskot.net