MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / selectSinglePatchVertexAt

Function selectSinglePatchVertexAt

test/Patch.cpp:21–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19{
20
21void 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

Callers 1

TEST_FFunction · 0.85

Calls 4

selectPointMethod · 0.45

Tested by

no test coverage detected