Function autoware_utils_geometry::eliminate_holes

Function Documentation

std::size_t autoware_utils_geometry::eliminate_holes(const std::vector<alt::PointList2d> &inners, std::size_t outer_index, std::size_t &vertices, std::vector<LinkedPoint> &points)

eliminates all holes from a polygon

processes multiple holes by connecting each to the outer polygon in sequence

Returns:

the updated outer_index after all holes are eliminated