Kangarookangaroolove.hashnode.dev·Jun 18, 2023Vtk based on mouse position zoom in and zoom outThinking If we want to achieve this effect, we need to understand the mathematical model. When we zoom in, the object won't change its size. Actually, It's our camera getting closer to the object. In other words, what we can see becomes smaller. Defa...36 readsVTKvtk
Kangarookangaroolove.hashnode.dev·Jun 17, 2023Understand vtk pre-multiplication and post-multiplicationLet's look at matrix multiplication first vtkNew<vtkTransform> transformA; transformA->Translate(10, 0, 0); std::cout<<"matrixA="<<std::endl<<*transformA->GetMatrix()<<std::endl; vtkNew<vtkTransform> transformB; transformB->RotateZ(90); std::cout<<"...VTKvtk