I want to write a 3D matrix to a vtk file.I worked on different vtkwrite functions which were available online but i only see the image slices(image attached)of the 3D model but i really want to see the surface of the 3D model. I know Joe Yeh also has an awesome function eg: 'polydata' 'lines'but i need a function for 'polydata' VTK'points'. In my case,segmented sections are saved as masks so need to get the points(eg:boundary points) of the segmented sections. If i have that, then i can visualize the model in Paraview. Any suggestions?