On Sun, Dec 9, 2012 at 9:20 PM, gongweixue <span dir="ltr">&lt;<a href="mailto:gongweixue@sina.com" target="_blank">gongweixue@sina.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div style="FONT-FAMILY:新宋体;FONT-SIZE:9pt">
<div><font style="BACKGROUND-COLOR:#cce8cf">I want to use 
vtkUnstructuredGridToPolyDataFilter,but it&#39;s a abstract class.</font></div>
<div><font style="BACKGROUND-COLOR:#cce8cf">and can you guys tell me which 
filter i should use?</font></div>
<div><font style="BACKGROUND-COLOR:#cce8cf"></font> </div>
<div><font style="BACKGROUND-COLOR:#cce8cf">i used a DataSetReader as an input 
of TableBasedClipDataSet. The Output is also DataSet, and then i want 
to convert DataSet to PolyData, is there any information in 
DataSet lost?</font></div>
<div> </div>
<div>I will really appreciate any suggestion!</div></div></blockquote><div><br></div><div>You can&#39;t convert a PolyData to a DataSet, a PolyData IS a DataSet. To convert an UnstructuredGrid to a PolyData, you can use:</div>
<div><br></div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter</a><br clear="all">
<div><br></div><div>(&quot;Surface&quot; filter, because an UnstructuredGrid can have 3D cells (like tetrahedra), but a PolyData can only have 2D cells (like polygons) ).</div><div><br></div><div>David </div></div>