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…

Check Point Inside Circle On Screen

This article is a sequel to the previous one https://www.weiy.city/2023/04/draw-a-circle-around-mouse-postion-on-screen/. Let’s check if the vertex of cone is inside the red circle when we move mouse. CustomIteractorStyle.cpp UPaintBrush.cpp UPaintBrush.h Output:

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

X