<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Amy,</DIV>
<DIV>when i do what you told me, i have this error:</DIV>
<DIV>error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 'class vtkPolyData'</DIV>
<DIV>for the code line 'maxMapper-&gt;SetInput(thresh-&gt;GetOutput());'</DIV>
<DIV>It should be something else to add before this. Can you help me?<BR><BR><BR>--- En date de&nbsp;: <B>Ven 17.10.08, Amy Squillacote <I>&lt;ahs@cfdrc.com&gt;</I></B> a écrit&nbsp;:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: Amy Squillacote &lt;ahs@cfdrc.com&gt;<BR>Objet: Re: [vtkusers] How to use 'vtkCurvatures' class?<BR>À: butterfly.1688@yahoo.fr<BR>Cc: vtkusers@vtk.org<BR>Date: Vendredi 17 Octobre 2008, 20h12<BR><BR><PRE>Put the vtkThreshold code after you set up vtkCurvatures (just below 
your call to curve-&gt;Update()). Then change the input to maxMapper from 
"curve-&gt;GetOutput()" to "thresh-&gt;GetOutput()".

- Amy

B. C. wrote:
&gt; Thank you Amy.
&gt; I post you the code i used:
&gt;  
&gt; vtkCurvatures *curve = vtkCurvatures::New();
&gt; curve-&gt;SetInput(cleaner-&gt;GetOutput());
&gt; curve-&gt;SetCurvatureTypeToMaximum();
&gt; curve-&gt;Update();
&gt;  
&gt; vtkPolyDataMapper *maxMapper = vtkPolyDataMapper::New();
&gt; maxMapper-&gt;SetInput(curve-&gt;GetOutput());
&gt;  
&gt; vtkActor *maxCurve = vtkActor::New();
&gt; maxCurve-&gt;SetMapper(maxMapper);
&gt; maxCurve-&gt;SetPosition(0.0,0.0,0.0);
&gt; myRender-&gt;AddActor(maxCurve);
&gt; myRenderWindow-&gt;Render();
&gt;  
&gt; Please, tell me where to add the code you sent to me to display the 
&gt; maximum curvatures&gt;0.5
&gt;  
&gt; Thank you for your help!!!
&gt;
&gt;
&gt; --- En date de : *Ven 17.10.08, Amy Squillacote /&lt;ahs@cfdrc.com&gt;/* a

&gt; écrit :
&gt;
&gt;     De: Amy Squillacote &lt;ahs@cfdrc.com&gt;
&gt;     Objet: Re: [vtkusers] How to use 'vtkCurvatures' class?
&gt;     À: butterfly.1688@yahoo.fr
&gt;     Cc: vtkusers@vtk.org
&gt;     Date: Vendredi 17 Octobre 2008, 19h41
&gt;
&gt;     You'll want to use vtkCurvatures with curvature type set to
maximum. 
&gt;     Then pass the output of that filter to a vtkThreshold, using the 
&gt;     ThresholdByUpper method to indicate the values to keep. Example c++
code 
&gt;     is shown below.
&gt;
&gt;     vtkCurvatures *curv = vtkCurvatures::New();
&gt;     curv-&gt;SetCurvatureTypeToMaximum();
&gt;
&gt;     vtkThreshold *thresh = vtkThreshold::New();
&gt;     thresh-&gt;SetInputConnection(curv-&gt;GetOutputPort());
&gt;     thresh-&gt;ThresholdByUpper(0.5); // using the example value you
provided.
&gt;
&gt;     Online documentation for vtkCurvatures is here: 
&gt;     http://www.vtk.org/doc/nightly/html/classvtkCurvatures.html.
&gt;     Online documentation for vtkThreshold is here: 
&gt;     http://www.vtk.org/doc/nightly/html/classvtkThreshold.html.
&gt;
&gt;     - Amy
&gt;
&gt;     B. C. wrote:
&gt;     &gt; Please, i need your help to finish my work!!!
&gt;     &gt; I use 'vtkCurvatures' to compute curvatures at each point
of my 
&gt;     &gt; polydata structure.
&gt;     &gt; I want to save only the Maximum curvatures and display only those

&gt;     &gt; which are &gt; some_value (0.5 for example).
&gt;     &gt; Can someone tell me how to do this?
&gt;     &gt; Please heeeeeeeeelp!!!
&gt;     &gt;
&gt;     &gt;
&gt;     &gt; __________________________________________________
&gt;     &gt; Do You Yahoo!?
&gt;     &gt; En finir avec le spam? Yahoo! Mail vous offre la meilleure
protection 
&gt;     &gt; possible contre les messages non sollicités
&gt;     &gt; http://mail..yahoo.fr Yahoo! Mail
&gt;     &gt;
------------------------------------------------------------------------
&gt;     &gt;
&gt;     &gt; _______________________________________________
&gt;     &gt; This is the private VTK discussion list.
&gt;     &gt; Please keep messages on-topic. Check the FAQ at:
&gt;     http://www.vtk.org/Wiki/VTK_FAQ
&gt;     &gt; Follow this link to subscribe/unsubscribe:
&gt;     &gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;     &gt;   
&gt;
&gt;     -- 
&gt;     Amy Squillacote                    Phone: (256) 726-4839
&gt;     Computer Scientist                 Fax: (256) 726-4806
&gt;     CFD Research Corporation           Web: http://www.cfdrc.com
&gt;     215 Wynn Drive, Suite 501
&gt;     Huntsville, AL  35805
&gt;
&gt;
&gt;               
&gt;
&gt;
&gt; __________________________________________________
&gt; Do You Yahoo!?
&gt; En finir avec le spam? Yahoo! Mail vous offre la meilleure protection 
&gt; possible contre les messages non sollicités
&gt; http://mail.yahoo.fr Yahoo! Mail 

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805


</PRE></BLOCKQUOTE></td></tr></table><br>__________________________________________________<br>Do You Yahoo!?<br>En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités <br>http://mail.yahoo.fr Yahoo! Mail