| 19 | { |
| 20 | |
| 21 | void selectSinglePatchVertexAt(const Vector3& position) |
| 22 | { |
| 23 | render::View orthoView(false); |
| 24 | |
| 25 | // Construct an orthoview to test-select the patch vertex |
| 26 | algorithm::constructCenteredOrthoview(orthoView, position); |
| 27 | auto centeredTest = algorithm::constructOrthoviewSelectionTest(orthoView); |
| 28 | |
| 29 | auto previousComponentCount = GlobalSelectionSystem().countSelectedComponents(); |
| 30 | |
| 31 | GlobalSelectionSystem().selectPoint(centeredTest, selection::SelectionSystem::eToggle, false); |
| 32 | |
| 33 | EXPECT_EQ(GlobalSelectionSystem().countSelectedComponents(), previousComponentCount + 1) |
| 34 | << "1 additional vertex component should be selected now"; |
| 35 | } |
| 36 | |
| 37 | } |
| 38 |
no test coverage detected