Math
3D Model Editor – Linear Transform Tester
There are many magical properties in matrix computation, such as: AB != BA A != 0, B != 0, but maybe AB = 0. AB = AC, A != 0, but we can’t get that B = C. People couldn’t Read more…
There are many magical properties in matrix computation, such as: AB != BA A != 0, B != 0, but maybe AB = 0. AB = AC, A != 0, but we can’t get that B = C. People couldn’t Read more…
你永远是镜头焦点…… You are always the focus of the lens 初学者第一次购买相机都会选择套机。 导购员会说:一支变焦镜头一镜走天下, 适合在不同场合中使用,基本满足日常所需。 Beginners will choose a set of cameras for the first time. The shopping guide will say: a zoom lens and a mirror go to the world, Suitable for Read more…
As we know, we can create a linear transform to change model to the special orientation and position. Refer to The Releationship Between Local Transform And Pose Transform. Let’s define orientation and position by three axis and point. , , Read more…
We had created a new web app, to do tasks, at https://www.weiy.city/functions/to-do-list/ . You can add tasks and enjoy the working time every day. If you want to access the app easily, just do the steps in the following video Read more…
Here is a example that vtkTransform object failed to deep copy the other one. #include <iostream> #include <vtkSmartPointer.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkTransform.h> #define vtkSPtr vtkSmartPointer #define vtkSPtrNew(Var, Type) vtkSPtr<Type> Var = vtkSPtr<Type>::New(); int main() { setbuf( stdout, nullptr Read more…
Here is a web app which can help you to compress your image.It’s simple to use it, just upload your image, click on the compress button and download the new picture. You can change the compressing rate for the original Read more…
You can use the key ‘i’ to enable or disable the vtkSliderWidget object defaultly. Here is a post about how to use vtkSliderWidget to control other model, Control The Size Of Model By VtkSliderWidget. But we don’t want the shortcut Read more…
Original Status The initial scene looks like the following image. I will rotate cone around point (1, 0, 0) and direction (0, 0, 1). Code #include <vtkActor.h> #include <vtkCleanPolyData.h> #include <vtkDistancePolyDataFilter.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkPointData.h> #include <vtkPolyDataMapper.h> #include Read more…
Tetris We had uploaded a new game Tetris on the web page: https://www.weiy.cc/2024/05/09/tetris/ You can play on the desktop computer with four buttons, up, down, left, and right. You can also play with virtual buttons on the screen if you Read more…