29 bool inside(
Point c)
const;
33 bool near_edges(
const Shape& s,
Coord reach, F&& f)
const;
34 int cell_x(
Coord x)
const;
35 int cell_y(
Coord y)
const;
37 std::vector<Point> pts_;
41 std::vector<std::vector<int>> cells_;
42 std::vector<std::vector<int>> rows_;
double shape_gap(const Shape &s, Coord bound) const
bool shape_closer(const Shape &s, Coord clearance) const
Any shape against the polygon.
bool disk_closer(Point c, Coord r, Coord clearance) const
True if the gap between the disk (centre c, radius r) and the polygon is strictly less than clearance...
PolygonIndex(const std::vector< Point > &pts)
std::int64_t Coord
Engine coordinate: signed 64-bit nanometres.
Exact integer geometry for clearance checks (design doc 03 ยง1).