Hi,<BR>sometimes I get this kind of error if an include is missing. In your case that<BR>would be #include "vtkDataObject.h"<BR>Kind regards,<BR>Bjoern<BR><BR>----- Ursprüngliche Nachricht -----<BR>Von: Nour Mestiri &lt;nourmestiri@yahoo.fr&gt;<BR>Datum: Mittwoch, 12. November 2008, 18:55<BR>Betreff: [vtkusers] Problem with 'vtkThreshold'<BR>An: vtk &lt;vtkusers@vtk.org&gt;<BR><BR><BR>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Hi all vtk users.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>I have a problem with 'vtkThreshold' class.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>I want to use the output of a 'vtkThreshold ' as the input of a 'GeometryFilter'.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>I do this:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>vtkThreshold *thresholdEdgels = vtkThreshold::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>...<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>...<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>vtkGeometryFilter *gf = vtkGeometryFilter::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>gf-&gt;SetInput(thresholdEdgels-&gt;GetOutput());<BR>&nbsp;<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>When i this this code, i have this error:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 'class vtkDataObject *'<BR>&nbsp;<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>How should i do to rectify this?<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">&gt; </FONT>Thanks a lot<BR></TD></TR></TBODY></TABLE><BR><BR>&gt; _______________________________________________<BR>&gt; This is the private VTK discussion list.<BR>&gt; Please keep messages on-topic. Check the FAQ at: <BR>&gt; http://www.vtk.org/Wiki/VTK_FAQFollow this link to <BR>&gt; subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR>------------------------------------------------------------------------- <BR>Dr. Bjoern Zehner <BR>UFZ Centre for Environmental Research Leipzig-Halle <BR>Permoserstrasse 15 <BR>04318 Leipzig <BR>Germany <BR>http://www.ufz.de/index.php?en=5673 <BR>Tel: ++49 (341) 235 1979 <BR>Fax: ++49 (341) 235 1939<BR><BR>