Skip to content

Commit

Permalink
apply a default hole cull tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Dec 3, 2015
1 parent 9e5f511 commit eb0e26f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/hexbin/filters/HexBin.cpp
Expand Up @@ -165,7 +165,8 @@ void HexBin::done(PointTableRef table)
***/
double tolerance = 1.1 * m_grid->height() / 2;

std::string smooth = Geometry::smoothPolygon(polygon.str(), tolerance, precision);
double cull = m_options.getValueOrDefault<double>("hole_cull_area_tolerance", 6 * tolerance * tolerance);
std::string smooth = Geometry::smoothPolygon(polygon.str(), tolerance, precision, cull);

m_metadata.add("boundary",
smooth,
Expand Down

0 comments on commit eb0e26f

Please sign in to comment.