[vtkusers] filling in a sphere's intersection with a plane

The Merper msmerps at gmail.com
Thu Jan 10 14:13:17 EST 2019


Hi all,
  I have a set of spheres in a volume that I visualize in 2D slices. When
the plane of a 2D slice intersects a sphere, I want the interior of the
sphere to be filled. It appears that there three different ways to do this:

1) Use vtkContourTriangulator as recommended here:
https://vtk.org/pipermail/vtkusers/2015-May/090826.html
with this example as a basis:
https://vtk.org/Wiki/VTK/Examples/Cxx/Modelling/ContourTriangulator

2) Use PolyDataToImageData:
https://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData

3) Use PolyDataContourToImageData:
https://www.paraview.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData

I've tried Option 1 without success.  Did I do something wrong or should I
try one of the other options.
  any wisdom would be helpful,
     -Merps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20190110/d3606f86/attachment.html>


More information about the vtkusers mailing list