VTK
VTK Boolean operation – The Notes About Logic Subtraction For Mesh
We often subtract mesh by other object to get the result we want. The scene looks like the following image. #include <iostream> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkActor.h> #include <vtkConeSource.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkPolyDataMapper.h> #include <vtkRenderWindowInteractor.h> #include <vtkClipPolyData.h> #include <vtkImplicitBoolean.h> #include <vtkPlanes.h> #include <vtkDataArray.h> #include <vtkDoubleArray.h> #include <vtkProperty.h> Read more…