Excluding Drawn Contour Area When Using vtkLinearExtrusionFilter

I am using vtkContourWidget to use contour drawing over an STL actor.

Next, I use vtkClipPolyData to extract the region outside the drawn contour. Then, I apply vtkLinearExtrusionFilter to generate a 3 mm thick region.

The issue: The generated region currently includes the area where I drew the contour. However, I need the extrusion to begin just above the STL surface, excluding the drawn contour area itself. In other words, the region growth should not start from the STL actor’s surface but rather from the outer boundary of the clipped region. The final generated region should be 3mm of thickness

I have attached images illustrating the issue and my expected outcome.
Is there a way to achieve this using vtkLinearExtrusionFilter, or would another approach be more suitable? Any suggestions would be greatly appreciated!

I’m using VTK8.2 with cpp

@lassoan @dgobbi @LucasGandel @mwestphal @ben.boeckel

没太看懂,你是只想实现在裁剪出来的actor的表面根据法向量去扩展吗?
如果是的话,可以设置 vtkLinearExtrusionFilter的模式,让其沿着法向量扩展。
如果是只在边缘进行扩展,就不知道怎么做了。

Translation of @yangyang117 message:

I don’t quite understand. Do you just want to extend the surface of the cut-out actor according to the normal vector?
If so, you can set the mode of vtkLinearExtrusionFilter to extend along the normal vector.
If you only want to extend along the edge, I don’t know how to do it.

@yangyang117 This is an english speaking forum. Please refrain from using other languages.