Add option to set buffer size. Pass it through to clipping functions.

This commit is contained in:
Eric Fischer
2014-10-27 13:20:17 -07:00
parent 4cb56a6b11
commit 3cd6fcfbe0
6 changed files with 38 additions and 29 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ typedef std::vector<draw> drawvec;
drawvec decode_geometry(char **meta, int z, unsigned tx, unsigned ty, int detail);
void to_tile_scale(drawvec &geom, int z, int detail);
drawvec remove_noop(drawvec geom, int type);
drawvec clip_poly(drawvec &geom, int z, int detail);
drawvec clip_poly(drawvec &geom, int z, int detail, int buffer);
drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double *accum_area);
drawvec clip_lines(drawvec &geom, int z, int detail);
drawvec clip_lines(drawvec &geom, int z, int detail, long long buffer);
drawvec simplify_lines(drawvec &geom, int z, int detail);
drawvec reorder_lines(drawvec &geom);