Skip to content

Commit

Permalink
fix missing holes in geos node output
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylannl committed Sep 25, 2020
1 parent 994e47a commit 9429717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geos_nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ namespace geoflow::nodes::gfp_geos {
const GEOSGeometry* g_ring = GEOSGetExteriorRing_r(gc, g_polygon);
from_geos_linear_ring(g_ring, lr);
for (size_t i=0; i<GEOSGetNumInteriorRings_r(gc, g_polygon); ++i) {
auto g_iring = GEOSGetInteriorRingN_r(gc, g_polygon, i);
const GEOSGeometry* g_iring = GEOSGetInteriorRingN_r(gc, g_polygon, i);
vec3f hole;
from_geos_linear_ring(g_ring, hole);
from_geos_linear_ring(g_iring, hole);
lr.interior_rings().push_back(hole);
}
return lr;
Expand Down

0 comments on commit 9429717

Please sign in to comment.