Remove a vertex by index
| 155 | |
| 156 | // Remove a vertex by index |
| 157 | static void TestRemoveVertexAtIndex() |
| 158 | { |
| 159 | mitk::ContourModel::Pointer contour = mitk::ContourModel::New(); |
| 160 | |
| 161 | mitk::Point3D p; |
| 162 | p[0] = p[1] = p[2] = 0; |
| 163 | |
| 164 | contour->AddVertex(p); |
| 165 | |
| 166 | contour->RemoveVertexAt(0); |
| 167 | |
| 168 | MITK_TEST_CONDITION(contour->GetNumberOfVertices() == 0, "removed vertex"); |
| 169 | } |
| 170 | |
| 171 | // Remove a vertex by position |
| 172 | static void TestRemoveVertexAtWorldPosition() |
no test coverage detected