VTK
Matrix Multiplication And vtkTransform Concatenate
We can use vtkTransform’s function concatenate to do matrix multiplication. There are three matrix which have the mathematical relationship. It’s equivalent to the following code. vtkSPtrNew( C, vtkTransform ); C->Concatenate(B); C->Concatenate(A); C->Update(); The experimental code: #include <iostream> #include <vtkSmartPointer.h> #include <vtkTransform.h> #define vtkSPtr vtkSmartPointer #define vtkSPtrNew(Var, Type) vtkSPtr<Type> Read more…