Algorithm
Overview Of GJK Algorithm
Here is a convex object and an origin point outside it. is an arbitrary point in the boundary. Find the farthest point on the boundary along the vector . Name the farthest point . We get a new vector to Read more…
Here is a convex object and an origin point outside it. is an arbitrary point in the boundary. Find the farthest point on the boundary along the vector . Name the farthest point . We get a new vector to Read more…
Do kegel exercises for 10 minutes a day, improve pelvic muscles, treat urinary incontinence, improve sexual satisfaction and help reduce premature ejaculation.
The post introduces how to create an environment for learning VTK by Python. The basic conditions on my computer: VTK-8.1.1 macOS Mojave 10.14 Python 2.7.10 Write a bash script and run it. cmake ./ -G “Unix Makefiles” \ -DVTK_USE_QVTK:BOOL=ON \ Read more…
10 minutes for this gesture every day. Stimulate the acupuncture points on the inner thighs to build a better fokidney. 30 times for Sumo squats every day, keep 3 seconds for every squat down. The exercise promotes testosterone production for Read more…
The post shows a way to create 2D grid on screen by VTK. Show it by vtkActor2D because we regard it as a 2D object. Its default coordinate system is viewport which is rendering. So we will have to know Read more…
I created a 2D convex hull and wanted to check whether a point is inside it. If the point is inside the polygon, the neighbor cross product vectors have the same directions. If the point is outside, one vector is Read more…
The post shows how to find 2D convex hull and 3D convex hull from points cloud by VTK. Here are some points on screen, finally I add a specail point that z value is not 0 for test 3D convex Read more…
I export scene from ParaView to get a mesh like the following image. Let’s take edge lists from different parts and form two independent meshes. #include <iostream> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkActor.h> #include <vtkConeSource.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include Read more…
The article discuss an issue about set position for vtkTextActor object. The class vtkTextActor provides interface SetPosition, its parameter controls object’s left-bottom coordinate. /** * Get the PositionCoordinate instance of vtkCoordinate. * This is used for for complicated or relative Read more…