[vtkusers] Can't use vtkStructuredGridToPolyDataFilter.Why?
Amy Squillacote
amy.squillacote at kitware.com
Wed Apr 26 08:12:30 EDT 2006
Hi Peace,
vtkStructuredGridToPolyDataFilter is an abstract
class; you cannot instantiate it. The class
you're looking for is probably
vtkStructuredGridGeometryFilter (a subclass of
either vtkStructuredGridToPolyDataFilter or
vtkPolyDataAlgorithm, depending on which version of VTK you're using).
- Amy
At 01:54 AM 4/26/2006, hp.shen wrote:
>Hi, all
>
>I want to use vtkStructuredGridToPolyDataFilter
>to convert structuredgrid data to PolyData in tcl.
>Where it doesnt work. The error says:
>invalid command name vtkStructuredGridToPolyDataFilter
>So may I missed some package , but I dont know which one.
>Could you help me.
>
>Thanks
>Peace
>
>===========codes:
>
>vtkStructuredGrid sgrid
> sgrid SetDimensions $M $N 1
> sgrid SetPoints points
> [sgrid GetPointData] SetScalars faceColors
>
>vtkStructuredGridToPolyDataFilter s2p
> s2p SetInput sgrid
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060426/4129a67a/attachment.htm>
More information about the vtkusers
mailing list