Hi all,<br><br>I am trying to convert an unstructured grid to polydata using <span style="font-weight: bold;">vtkUnstructuredGridToPolyDataFilte</span>r so that hole filling algorithm can be used. I was trying to use it as follows
<br>----------------------------------------------------------------<br>#!/usr/bin/env python<br>import vtk<br>from vtk.util.misc import vtkGetDataRoot<br><br>reader = vtk.vtkUnstructuredGridReader()<br>reader.SetFileName
("/home/amitesh/testcase.vtk")<br><br>USG2Poly=vtk.vtkUnstructuredGridToPolyDataFilter()<br>USG2Poly.SetInput(reader.GetOutput())<br><br>meshhin = vtk.vtkPolyData()<br>meshhin.SetInput(USG2Poly.GetOutput())<br>meshhin.Update
()<br>#Detect holes<br>boundaryEdges = vtk.vtkFeatureEdges()<br>boundaryEdges.SetInput(meshin)<br>boundaryEdges.SetBoundaryEdges(1)<br>boundaryEdges.SetFeatureEdges(0)<br>boundaryEdges.SetNonManifoldEdges(0)<br>boundaryEdges.SetManifoldEdges
(0)<br>boundaryEdges.Update()<br>-----------------------------------------------------------------<br><br><span style="font-weight: bold;">I recieved an error using vtkpython interpretor which said</span><br><br>Traceback (most recent call last):
<br> File "/home/amitesh/holepatch.py", line 8, in ?<br> USG2Poly=vtk.vtkUnstructuredGridToPolyDataFilter()<br>TypeError: this is an abstract class and cannot be instantiated<br><br>Can anyone tell me what is the error? I will really appreciate any suggestion or solution in this regard.
<br><br>Thanks<br>Amitesh<br>