| 119 | |
| 120 | template <typename VectorType> |
| 121 | void simplifyT(const fl::span<const Point> &polyLine, VectorType *out) { |
| 122 | // run the simplification algorithm |
| 123 | simplifyInternal(polyLine); |
| 124 | |
| 125 | // copy the result to the output slice |
| 126 | out->assign(mSimplified.begin(), mSimplified.end()); |
| 127 | } |
| 128 | // Runs in O(n) allocations: one bool‐array + one index stack + one output |
| 129 | // vector |
| 130 | void simplifyInternal(const fl::span<const Point> &polyLine) { |