[vtkusers] Can't use vtkStructuredGridToPolyDataFilter.Why?

hp.shen hp.shen at ansys.com.cn
Wed Apr 26 21:23:30 EDT 2006


Hi, Amy
 
aHa, vtkStructuredGridGeometryFilter works fine.
Thank you so much.
 
Peace
 
-----邮件原件-----
发件人: Amy Squillacote [mailto:amy.squillacote at kitware.com] 
发送时间: 2006年4月26日 20:13
收件人: hp.shen; vtkusers at vtk.org
主题: Re: [vtkusers] Can't use vtkStructuredGridToPolyDataFilter.Why?
 
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 doesn’t work. The error says:
“invalid command name “vtkStructuredGridToPolyDataFilter”…”
So may I missed some package , but I don’t 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/20060427/336d1994/attachment.htm>


More information about the vtkusers mailing list