SVD And Eigenvector

The eigenvector of a linear transformation doesn’t change in the transformation, and the scale of this vector under the transformation is called the eigenvalue. Practice We use 3D Model Editor to perform the following linear transformation: For more information on how to use the web app 3D Model Editor to Read more…

Use Singular Value Decomposition In VTK

Affine transformation can be decomposed to translation, rotation, and scale. As we know, the transformation can be represented by matrix.     Related post: https://www.weiy.city/2021/11/the-releationship-between-local-transform-and-pose-transform/ It can be computed by translate matrix and rotate & scale matrix.     Example: I try to do decomposition for a matrix.     Read more…

3D – Rotate Axis System To The Special Orientation

The post is based on https://www.weiy.city/2021/11/vtk-rotate-vector-to-special-direction/. We will rotate the three axes of the world coordinate system to particular directions. #include <iostream> #include <vtkSmartPointer.h> #include <vtkTransform.h> #include <vtkActor.h> #include <vtkConeSource.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkPolyDataMapper.h> #include <vtkRenderWindowInteractor.h> #include <vtkAxesActor.h> #include “../point.hpp” using namespace std; double AngleBeteewnTwoVector( Point vec0, Point Read more…

VTK – Rotate Vector To Special Direction

I take notes about how to rotate vector to a special direction. #include “./tool.h” #define vtkSPtr vtkSmartPointer #define vtkSPtrNew(Var, Type) vtkSPtr<Type> Var = vtkSPtr<Type>::New(); int main(int, char *[]) { PointStruct vec0( 1, 1, 0 ); PointStruct vec1( -1, 1, 0 ); PointStruct vecZ( 0, 0, 1 ); double radian = Read more…

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

X