Flip Item – Mirror Symmetry

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. , , and origin = . The matrix for the linear transform Read more…

New Web App – To Do Tasks

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 to the app icon on the desktop.

vtkAbstractTransform::DeepCopy May Fail

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 ); vtkSPtrNew( trans, vtkTransform ); auto matrix = trans->GetMatrix(); matrix->SetElement( Read more…

Image Compressor

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 image by dragging the slider bar. Page: https://www.weiy.city/functions/image-compressor/ Demo video Read more…

The Process Of Rotating Object Around Special Point

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 <vtkPolyDataReader.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include Read more…

A Simple WebAssembly Example About VTK

The article shows how to create a simple vtk render window project and show it in the web browser. We need emscripten tool and the visualization toolkit installed. emscripten : https://emscripten.org/docs/getting_started/downloads.html VTK: https://vtk.org/ Build the VTK source to get JS library before our coding. This example uses C plus plus Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X