Search code examples
vtkparaview

How to split a STL into surfaces in VTK


Can anybody know how to split an STL into surfaces in VTK? Or how to do it in Paraview?


Solution

  • Depends on how you want to split it. If you want to split it into grouped surfaces, use vtkPolyDataNormals with SplittingOn, and use SetFeatureAngle to decide what angle to split at. Then, you can use vtkPolyDataConnectivityFilter to get each split piece in a loop.