---------------------------------------------------------------------------*/ * This routine searches through the specified outline and finds * the points at which the outline changes direction. These * points are then marked as "extremities". This routine is * used as an alternative to FindExtremities(). It forces the * endpoints of the microfeatures to be at the direction * changes rathe
| 197 | * @note History: 6/29/90, DSJ, Created. |
| 198 | */ |
| 199 | void MarkDirectionChanges(MFOUTLINE Outline) { |
| 200 | MFOUTLINE Current; |
| 201 | MFOUTLINE Last; |
| 202 | MFOUTLINE First; |
| 203 | |
| 204 | if (DegenerateOutline (Outline)) |
| 205 | return; |
| 206 | |
| 207 | First = NextDirectionChange (Outline); |
| 208 | Last = First; |
| 209 | do { |
| 210 | Current = NextDirectionChange (Last); |
| 211 | MarkPoint (PointAt (Current)); |
| 212 | Last = Current; |
| 213 | } |
| 214 | while (Last != First); |
| 215 | |
| 216 | } /* MarkDirectionChanges */ |
| 217 | |
| 218 | |
| 219 | /*---------------------------------------------------------------------------*/ |
no test coverage detected