| 319 | } |
| 320 | |
| 321 | VirtualPath::size_type VirtualPath::countRegularNodes() const |
| 322 | { |
| 323 | size_type num_regular_points = 0; |
| 324 | for (auto i = first_index; i <= last_index; ++i) |
| 325 | { |
| 326 | ++num_regular_points; |
| 327 | if (coords.flags[i].isCurveStart()) |
| 328 | i += 2; |
| 329 | } |
| 330 | |
| 331 | if (num_regular_points && isClosed()) |
| 332 | --num_regular_points; |
| 333 | |
| 334 | return num_regular_points; |
| 335 | } |
| 336 | |
| 337 | bool VirtualPath::isClosed() const |
| 338 | { |
no test coverage detected