From 197beba19b8e6cf3cceb0551bec57bd42fd51893 Mon Sep 17 00:00:00 2001 From: AndreaRigoni Date: Fri, 17 Apr 2026 09:35:43 +0000 Subject: [PATCH] updated tests --- src/Vtk/HEP/Geant/testing/vtkSolidsTest.cpp | 6 ++---- src/Vtk/Math/testing/vtkContainerBoxTest2.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Vtk/HEP/Geant/testing/vtkSolidsTest.cpp b/src/Vtk/HEP/Geant/testing/vtkSolidsTest.cpp index 665b42d..696dbe8 100644 --- a/src/Vtk/HEP/Geant/testing/vtkSolidsTest.cpp +++ b/src/Vtk/HEP/Geant/testing/vtkSolidsTest.cpp @@ -71,10 +71,8 @@ int main(int argc, char** argv) { vtkTess.SetColor(0.2, 0.8, 0.2); // Greenish tess // Position tessellated solid away from box using the PhysicalVolume - Matrix4f trans = Matrix4f::Identity(); - trans.block<3,1>(0,3) = Vector3f(5_m, 0, 0); - pvTess->SetMatrix(trans); - vtkTess.Update(); + pvTess->SetPosition(Vector3f(5_m, 0, 0)); + pvTess->Updated(); std::cout << "..:: Testing vtkSolidsTest ::.." << std::endl; std::cout << "Box and Tessellated solids (placed via PhysicalVolumes) initialized." << std::endl; diff --git a/src/Vtk/Math/testing/vtkContainerBoxTest2.cpp b/src/Vtk/Math/testing/vtkContainerBoxTest2.cpp index 11b858a..779bb93 100644 --- a/src/Vtk/Math/testing/vtkContainerBoxTest2.cpp +++ b/src/Vtk/Math/testing/vtkContainerBoxTest2.cpp @@ -15,7 +15,7 @@ using namespace uLib; int main() { std::cout << "Creating ContainerBox..." << std::endl; - ContainerBox* box = new ContainerBox(Vector3f(1.0, 1.0, 1.0)); // 1x1x1 unit box + ContainerBox* box = new ContainerBox(Vector3f(1.0_m , 0.5_m, 1.0_m)); // 1x1x1 unit box box->SetInstanceName("MyTestBox"); std::cout << "Creating VTK representation..." << std::endl;