vtk camera position widget on viewer

This commit is contained in:
AndreaRigoni
2026-03-08 16:51:39 +00:00
parent 1374821344
commit 00275ac56d
6 changed files with 49 additions and 16 deletions

View File

@@ -23,8 +23,6 @@
//////////////////////////////////////////////////////////////////////////////*/
#include "Vtk/uLibVtkViewer.h"
#include "Math/ContainerBox.h"
@@ -35,19 +33,18 @@
using namespace uLib;
int main() {
BEGIN_TESTING(vtk ContainerBox Test);
BEGIN_TESTING(vtk ContainerBox Test);
ContainerBox box;
box.SetSize(Vector3f(2, 3, 4));
box.SetPosition(Vector3f(1, 2, 3));
Vtk::vtkContainerBox v_box(&box);
if (std::getenv("CTEST_PROJECT_NAME") == nullptr) {
Vtk::Viewer v_viewer;
ContainerBox box;
box.SetSize(Vector3f(2,3,4));
box.SetPosition(Vector3f(1,2,3));
Vtk::vtkContainerBox v_box(box);
v_viewer.AddPuppet(v_box);
v_viewer.Start();
}
END_TESTING;
END_TESTING;
}