Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ add close(x,y) method to geometry

  • Loading branch information...
commit 1b805abc23bb40b98114472ace8aa92f5dcf8efc 1 parent ec2d0cc
Artem Pavlenko artemp authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 include/mapnik/geometry.hpp
5 include/mapnik/geometry.hpp
View
@@ -121,6 +121,11 @@ class geometry : private::boost::noncopyable
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);
Please sign in to comment.
Something went wrong with that request. Please try again.