<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi, </DIV>
<DIV>I used this: </DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkCurvatures *curve = vtkCurvatures::New();<BR>curve-&gt;SetInput(cleaner-&gt;GetOutput());<BR>curve-&gt;SetCurvatureTypeToMaximum();<BR>curve-&gt;Update();<BR>&nbsp;<BR>vtkThreshold *thresh = vtkThreshold::New();<BR>thresh-&gt;SetInput(curve-&gt;GetOutput());<BR>thresh-&gt;ThresholdByUpper(0.5);<BR>&nbsp;<BR>vtkUnstructuredGridToPolyDataFilter *filtre;<BR>filtre-&gt;SetInput(thresh-&gt;GetOutput());<BR>&nbsp;&nbsp;<BR>vtkPolyDataMapper *maxMapper = vtkPolyDataMapper::New();<BR>maxMapper-&gt;SetInput(filtre-&gt;GetOutput());</DIV>
<DIV>&nbsp;</DIV>
<DIV>but, that does not work. The bug generated is in this line:</DIV>
<DIV>filtre-&gt;SetInput(thresh-&gt;GetOutput());</DIV>
<DIV>&nbsp;</DIV>
<DIV>I don't know how to do!!!!</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>--- En date de&nbsp;: <B>Lun 20.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: Lundi 20 Octobre 2008, 13h03<BR><BR><PRE>Add a vtkGeometryFilter between vtkThreshold and vtkPolyDataMapper OR 
use a vtkDataSetMapper instead of the vtkPolyDataMapper (in which case 
vtkGeometryFilter is unneeded).

- Amy

B. C. wrote:
&gt; Hi Amy,
&gt; when i do what you told me, i have this error:
&gt; error C2664: 'SetInput' : cannot convert parameter 1 from
'class 
&gt; vtkUnstructuredGrid *' to 'class vtkPolyData'
&gt; for the code line
'maxMapper-&gt;SetInput(thresh-&gt;GetOutput());'
&gt; It should be something else to add before this. Can you help me?
&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, 20h12
&gt;
&gt;     Put the vtkThreshold code after you set up vtkCurvatures (just below 
&gt;     your call to curve-&gt;Update()). Then change the input to maxMapper
from 
&gt;     "curve-&gt;GetOutput()" to
"thresh-&gt;GetOutput()".
&gt;
&gt;     - Amy
&gt;
&gt;     B. C. wrote:
&gt;     &gt; Thank you Amy.
&gt;     &gt; I post you the code i used:
&gt;     &gt;  
&gt;     &gt; vtkCurvatures *curve = vtkCurvatures::New();
&gt;     &gt; curve-&gt;SetInput(cleaner-&gt;GetOutput());
&gt;     &gt; curve-&gt;SetCurvatureTypeToMaximum();
&gt;     &gt; curve-&gt;Update();
&gt;     &gt;  
&gt;     &gt; vtkPolyDataMapper *maxMapper = vtkPolyDataMapper::New();
&gt;     &gt; maxMapper-&gt;SetInput(curve-&gt;GetOutput());
&gt;     &gt;  
&gt;     &gt; vtkActor *maxCurve = vtkActor::New();
&gt;     &gt; maxCurve-&gt;SetMapper(maxMapper);
&gt;     &gt; maxCurve-&gt;SetPosition(0.0,0.0,0.0);
&gt;     &gt; myRender-&gt;AddActor(maxCurve);
&gt;     &gt; myRenderWindow-&gt;Render();
&gt;     &gt;  
&gt;     &gt; Please, tell me where to add the code you sent to me to display
the 
&gt;     &gt; maximum curvatures&gt;0.5
&gt;     &gt;  
&gt;     &gt; Thank you for your help!!!
&gt;     &gt;
&gt;     &gt;
&gt;     &gt; --- En date de : *Ven 17.10.08, Amy Squillacote
/&lt;ahs@cfdrc.com&gt;/* a
&gt;
&gt;     &gt; écrit :
&gt;     &gt;
&gt;     &gt;     De: Amy Squillacote &lt;ahs@cfdrc.com&gt;
&gt;     &gt;     Objet: Re: [vtkusers] How to use 'vtkCurvatures'
class?
&gt;     &gt;     À: butterfly.1688@yahoo.fr
&gt;     &gt;     Cc: vtkusers@vtk.org
&gt;     &gt;     Date: Vendredi 17 Octobre 2008, 19h41
&gt;     &gt;
&gt;     &gt;     You'll want to use vtkCurvatures with curvature type set
to
&gt;     maximum. 
&gt;     &gt;     Then pass the output of that filter to a vtkThreshold, using
the 
&gt;     &gt;     ThresholdByUpper method to indicate the values to keep.
Example c++
&gt;     code 
&gt;     &gt;     is shown below.
&gt;     &gt;
&gt;     &gt;     vtkCurvatures *curv = vtkCurvatures::New();
&gt;     &gt;     curv-&gt;SetCurvatureTypeToMaximum();
&gt;     &gt;
&gt;     &gt;     vtkThreshold *thresh = vtkThreshold::New();
&gt;     &gt;     thresh-&gt;SetInputConnection(curv-&gt;GetOutputPort());
&gt;     &gt;     thresh-&gt;ThresholdByUpper(0.5); // using the example value
you
&gt;     provided.
&gt;     &gt;
&gt;     &gt;     Online documentation for vtkCurvatures is here: 
&gt;     &gt;     http://www.vtk.org/doc/nightly/html/classvtkCurvatures.html.
&gt;     &gt;     Online documentation for vtkThreshold is here: 
&gt;     &gt;     http://www.vtk.org/doc/nightly/html/classvtkThreshold.html.
&gt;     &gt;
&gt;     &gt;     - Amy
&gt;     &gt;
&gt;     &gt;     B. C. wrote:
&gt;     &gt;     &gt; Please, i need your help to finish my work!!!
&gt;     &gt;     &gt; I use 'vtkCurvatures' to compute curvatures at
each point
&gt;     of my 
&gt;     &gt;     &gt; polydata structure.
&gt;     &gt;     &gt; I want to save only the Maximum curvatures and display
only those
&gt;
&gt;     &gt;     &gt; which are &gt; some_value (0.5 for example).
&gt;     &gt;     &gt; Can someone tell me how to do this?
&gt;     &gt;     &gt; Please heeeeeeeeelp!!!
&gt;     &gt;     &gt;
&gt;     &gt;     &gt;
&gt;     &gt;     &gt; __________________________________________________
&gt;     &gt;     &gt; Do You Yahoo!?
&gt;     &gt;     &gt; En finir avec le spam? Yahoo! Mail vous offre la
meilleure
&gt;     protection 
&gt;     &gt;     &gt; possible contre les messages non sollicités
&gt;     &gt;     &gt; http://mail..yahoo.fr Yahoo! Mail
&gt;     &gt;     &gt;
&gt;    
------------------------------------------------------------------------
&gt;     &gt;     &gt;
&gt;     &gt;     &gt; _______________________________________________
&gt;     &gt;     &gt; This is the private VTK discussion list.
&gt;     &gt;     &gt; Please keep messages on-topic. Check the FAQ at:
&gt;     &gt;     http://www.vtk.org/Wiki/VTK_FAQ
&gt;     &gt;     &gt; Follow this link to subscribe/unsubscribe:
&gt;     &gt;     &gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;     &gt;     &gt;   
&gt;     &gt;
&gt;     &gt;     -- 
&gt;     &gt;     Amy Squillacote                    Phone: (256) 726-4839
&gt;     &gt;     Computer Scientist                 Fax: (256) 726-4806
&gt;     &gt;     CFD Research Corporation           Web: http://www.cfdrc.com
&gt;     &gt;     215 Wynn Drive, Suite 501
&gt;     &gt;     Huntsville, AL  35805
&gt;     &gt;
&gt;     &gt;
&gt;     &gt;               
&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;     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