The surface exceeds the contour range

I want to convert vtkCutter’s cutting results to surface,
First,I use vtkClosedPolyLineToSurfaceFilter,give the result as follows


image
The surface exceeds the contour range!Is there a better way to solve this problem?

May I ask if anyone is concerned about this issue?

Is vtkClosedPolyLineToSurfaceFilter even in VTK? I don’t see it in the source code anywhere.

For what it looks like you are trying to do, you might want to try vtkContourTriangulator instead. I have had good results with it.

I have tried using vtkContourTriangulator, but it seems that after inputting the result of vtkcutter, the output result is not correct。