<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hi Dear ITK users;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I would like to renew my problem. Briefly; I have <EM>mesh</EM> variable which is generated from a stl polydata . First I read&nbsp; my STL data with VTK then I converted it to itk mesh format to implement a pointsettoimageregistration. I would like to use that mesh as a fixedpointset. But I haven't accomplished it yet. I tried the following ways ,unfortunately I couldn't achieved ,If somebody suggest me a different way it will be really appreciated. Thank you very&nbsp; much</DIV>
<DIV>TOny</DIV>
<DIV>I tried 4 diffrent ways but :(</DIV>
<DIV><FONT color=#ff0000><STRONG>1-</STRONG></FONT><FONT color=#ff0000>registrationMethod-&gt;SetFixedPointSet(mesh);</FONT></DIV>
<DIV><STRONG><FONT color=#ff0000>2-</FONT></STRONG><FONT color=#0000ff size=2> </FONT><FONT size=3>typedef</FONT> PointSetType::PointsContainer PointsContainer;
<P>PointsContainer::Pointer pointsContainer = PointsContainer::New();</P>
<P>pointsContainer = mesh-&gt;GetPoints();</P>
<P>&nbsp;itk::PointSet&lt;<FONT color=#0000ff>float</FONT>, 3&gt;::Pointer pointSet = itk::PointSet&lt;<FONT color=#0000ff>float</FONT><FONT size=2><FONT size=3>,3&gt;::New();</FONT></P>
<P><FONT size=3>pointSet-&gt;SetPoints(pointsContainer);</FONT></P>
<P><FONT size=3>&nbsp;</FONT></P><FONT size=3>
<P><FONT color=#ff0000>registrationMethod-&gt;SetFixedPointSet(pointSet);</FONT></P>
<P><FONT color=#ff0000><STRONG>3-</STRONG></FONT><FONT color=#ff0000>registrationMethod-&gt;SetFixedPointSet(mesh-&gt;GetPoints())</FONT>&nbsp; </P>
<P><STRONG><FONT color=#ff0000>4</FONT></STRONG>-// Declare the type for PointsContainer</P>
<P>typedef MeshType::PointsContainer PointsContainerType;</P>
<P>// Declare the type for PointsContainerPointer</P>
<P>typedef MeshType::PointsContainerPointer PointsContainerPointer; </P>
<P></P>
<P>// Declare the type for Points</P>
<P>typedef<FONT size=2><FONT size=3> MeshType::PointType PointType;</FONT></P>
<P><FONT size=3>PointsContainerPointer points = mesh-&gt;GetPoints();</FONT></P>
<P><FONT color=#ff0000 size=3>registrationMethod-&gt;SetFixedPointSet(points);</FONT></P></FONT></FONT></FONT></DIV></div><br>

<hr size=1>The fish are biting.<br>
<a href="http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50"> Get more visitors</a> on your site using <a href="
http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50">Yahoo! Search Marketing.</a></body></html>