| 56 | |
| 57 | template <class EdgeSelector> |
| 58 | OverlappingContourCombiner<EdgeSelector>::OverlappingContourCombiner(const Shape &shape) { |
| 59 | windings.reserve(shape.contours.size()); |
| 60 | for (std::vector<Contour>::const_iterator contour = shape.contours.begin(); contour != shape.contours.end(); ++contour) |
| 61 | windings.push_back(contour->winding()); |
| 62 | edgeSelectors.resize(shape.contours.size()); |
| 63 | } |
| 64 | |
| 65 | template <class EdgeSelector> |
| 66 | void OverlappingContourCombiner<EdgeSelector>::reset(const Point2 &p) { |