Change Canvas For VTK WASM Project

The post demonstrates the process of configuring the 3D window after switching from the original canvas to another. After clicking on the update button at the bottom-left position on the webpage, we will call Worker::ChangeRenderWindow to handle the scene. index.html: The interface in worker.cpp: The whole project had been uploaded Read more…

Basic functions for B-Spline

Uniform Cubic Spline Piecewise function: The cubic spline graph: Test 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 <vtkScalarBarActor.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkSTLReader.h> #include <vtkTransform.h> #include <vtkMatrix4x4.h> #include <vector> #include Read more…

Bézier Curves

Bézier Curves Bézier curves are a type of parametric curve that is widely used in computer graphics, computer-aided design, and various other fields for creating smooth, elegant curves. They are named after the French engineer Pierre Bézier, who developed the mathematics behind these curves while working at Renault in the Read more…

Matrix Of ViewTransform In vtkCamera

ViewTransform stores three vectors in the first three rows and position information in the forth column. We can rotate camera around view up direction [ Azimuth operation ] and horizontal line (sideway) [ Elevation operation ] easily. The relative implementation details in VTK:

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

X