All changes done except this one:
It would be also more relevant to use the VTK9 filter, as VTK8 will not be around for long.
I’ll update the gist when Slicer changes VTK version.
Thanks for the notes.
Here is the gist: Create a frame for the model in the principal components directions, set up a plane with interaction handles to move it. · GitHub
Do you know if the option UNIFORM_SPATIAL_VOLUME for the maskPointsFilter will make it return points inside the volume of the mesh? We could try that for this script later, maybe it would give more robust results…