From 1b805abc23bb40b98114472ace8aa92f5dcf8efc Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 26 Jul 2012 15:21:25 +0100 Subject: [PATCH] + add close(x,y) method to geometry --- include/mapnik/geometry.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/mapnik/geometry.hpp b/include/mapnik/geometry.hpp index 31bfeb337..3a7bc2db1 100644 --- a/include/mapnik/geometry.hpp +++ b/include/mapnik/geometry.hpp @@ -121,6 +121,11 @@ public: push_vertex(x,y,SEG_MOVETO); } + void close(coord_type x, coord_type y) + { + push_vertex(x,y,SEG_CLOSE); + } + unsigned vertex(double* x, double* y) const { return cont_.get_vertex(itr_++,x,y);