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 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.
I am not exactly sure to understand what you try to achieve exactly, but you could probably use vtkWarpVector to push the extracted region away from the STL actor before applying the linear extrusion.