void fitSVG(const POLYGON& _polygon, gex::io::SVG& _svg) { using namespace gex; auto& _bounds = _polygon.bounds(); auto&& _center = _bounds.center(); auto&& _max = (_bounds.size()(X) + _bounds.size()(Y)) / 2.0; Vec2 _m(_max,_max); _svg.buffer().fit(Bounds2(_center - _m,_center + _m)); }