<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,</DIV>
<DIV>I knew that i can resolve the problem using the 'SafeDownCast' function. How can i do this?</DIV>
<DIV>Thanks<BR><BR>--- En date de : <B>Jeu 13.11.08, "Björn Zehner" <I><bjoern.zehner@ufz.de></I></B> a écrit :<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: "Björn Zehner" <bjoern.zehner@ufz.de><BR>Objet: Re: [vtkusers] Problem with 'vtkThreshold'<BR>Ā: nourmestiri@yahoo.fr<BR>Cc: "vtk" <vtkusers@vtk.org><BR>Date: Jeudi 13 Novembre 2008, 9h15<BR><BR>
<DIV id=yiv1429572524>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 <nourmestiri@yahoo.fr><BR>Datum: Mittwoch, 12. November 2008, 18:55<BR>Betreff: [vtkusers] Problem with 'vtkThreshold'<BR>An: vtk <vtkusers@vtk.org><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">> </FONT>Hi all vtk users.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>I have a problem with 'vtkThreshold' class.<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </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">> </FONT>I do this:<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>vtkThreshold *thresholdEdgels = vtkThreshold::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>...<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE:
normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>...<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>vtkGeometryFilter *gf = vtkGeometryFilter::New();<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>gf->SetInput(thresholdEdgels->GetOutput());<BR> <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </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">> </FONT>cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 'class vtkDataObject *'<BR> <BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE: normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>How should i do to rectify this?<BR><FONT style="FONT-WEIGHT: normal; FONT-SIZE: 14px; FONT-STYLE:
normal; BACKGROUND-COLOR: #f5f8f0">> </FONT>Thanks a lot<BR></TD></TR></TBODY></TABLE><BR><BR>> _______________________________________________<BR>> This is the private VTK discussion list.<BR>> Please keep messages on-topic. Check the FAQ at: <BR>> http://www.vtk.org/Wiki/VTK_FAQFollow this link to <BR>> 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></DIV></BLOCKQUOTE></td></tr></table><br>