Skip to content

Commit

Permalink
+ add close(x,y) method to geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Jul 26, 2012
1 parent ec2d0cc commit 1b805ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/mapnik/geometry.hpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1b805ab

Please sign in to comment.