Extracted Surface Region (VTK) – Need Guidance on Smoothing & Cutting (VTK)

Hi Everyone,

I’m new to VTK, and I’m currently working on a project that involves surface region extraction, smoothing, and precise cutting.

Current Progress:

  • I have extracted the surface region from an STL file using VTK by drawing contours.
  • The extracted region is saved as vtkPolyData.

Next Steps & Challenges:

  • I want to generate a new smooth region just above the extracted surface (with a specific thickness).
  • The new region needs smoothing and mesh optimization (removing noise or irregularities).
  • Finally, I need to accurately cut portions of this newly generated region.

Reference Video:

To clarify my requirement, I’ve attached a YouTube embed link showing a similar process:

:point_right: Watch from timestamp 19:14 to 21:27

Looking for Suggestions On:

  1. Smoothing & Refinement: What are the best techniques (in VTK or CGAL) to smooth the newly created layer?
  2. Region Generation: How can I generate a new layer above the existing vtkPolyData with a uniform thickness (e.g., 3mm)?
  3. Cutting & Trimming: What tools/methods in VTK/CGAL would be best for cutting the portion accurately?

I would greatly appreciate any insights, suggestions, or code snippets that can help me move forward.

Thanks in advance for your support!

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

Hi,

Here is a list of filters we use in similar use cases:

  1. Smoothing & Refinement: vtkWindowedSincPolyDataFilter
  2. Region Generation: CGAL alpha wrapping
  3. Cutting & Trimming: vtkClipPolydata