[viewer3D-extension-derivation]
More...
[viewer3D-extension-derivation]
Definition at line 52 of file viewer3D-11-extension.cpp.
◆ OnUI()
void RandomPointExtension::OnUI |
( |
| ) |
|
|
inline |
Definition at line 53 of file viewer3D-11-extension.cpp.
53 {
54 static int count = 16;
55
56 ImGui::SliderInt("Number of points to draw", &count, 0, 32);
57 if (ImGui::Button("Create points")) {
58 for (int i = 0; i < count; ++i) {
59
60
61 *viewer <<
Point(rand() % 21 - 10, rand() % 21 - 10, rand() % 21 - 10);
62 }
63
64 viewer->renderNewData();
65 }
66 }
The documentation for this struct was generated from the following file: