Creates two outlines out of one by splitting the original one in half. Inserts the resulting outlines into the given list.
| 241 | // Creates two outlines out of one by splitting the original one in half. |
| 242 | // Inserts the resulting outlines into the given list. |
| 243 | void SPLIT::SplitOutlineList(TESSLINE* outlines) const { |
| 244 | SplitOutline(); |
| 245 | while (outlines->next != NULL) outlines = outlines->next; |
| 246 | |
| 247 | outlines->next = new TESSLINE; |
| 248 | outlines->next->loop = point1; |
| 249 | outlines->next->ComputeBoundingBox(); |
| 250 | |
| 251 | outlines = outlines->next; |
| 252 | |
| 253 | outlines->next = new TESSLINE; |
| 254 | outlines->next->loop = point2; |
| 255 | outlines->next->ComputeBoundingBox(); |
| 256 | |
| 257 | outlines->next->next = NULL; |
| 258 | } |
| 259 | |
| 260 | // Makes a split between these two edge points, but does not affect the |
| 261 | // outlines to which they belong. |
no test coverage detected