I’d like to find intersection between two different sources. And later on apply it to a poly data that is extracted from a model node and a cube source.
I was looking for a way to do it and I found a extension: https://github.com/zippy84/vtkbool.
I also found an example that uses the extension here: https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataBooleanOperationFilter/
I am trying to test the intersection between two sphere sources, but I am getting a warning and the slicer crashes.
'Warning: In /home/anish/3D_Slicer_Code/Code_with_changes/Build/VTK/Common/DataModel/vtkPolyData.cxx, line 1021
vtkPolyData (0x55ac4ab977d0): Building VTK_TRIANGLE 115 with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.
error: [/home/anish/3D_Slicer_Code/Code_with_changes/Build/Slicer-build/bin/./SlicerApp-real] exit abnormally - Report the problem.