refactor: improve Object property management with duplicate prevention, memory cleanup, and updated VTK interface tests

This commit is contained in:
AndreaRigoni
2026-04-10 12:18:15 +00:00
parent dfd33e9a9c
commit 22262d3dc6
7 changed files with 41 additions and 20 deletions

View File

@@ -36,11 +36,11 @@ int main() {
BEGIN_TESTING(vtk ContainerBox Test);
{
ContainerBox box;
box.Scale(Vector3f(1_m, 2_m, 1_m));
box.SetPosition(Vector3f(0, 0, 0));
ContainerBox* box = new ContainerBox();
box->Scale(Vector3f(1_m, 2_m, 1_m));
box->SetPosition(Vector3f(0, 0, 0));
Vtk::ContainerBox v_box(&box);
Vtk::ContainerBox v_box(box);
v_box.Update();
v_box.SetRepresentation(Vtk::Prop3D::Surface);