<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Does anyone know how to convert vtkPolyData to vtkPoints? I am having trouble figuring out how to deal with converting different data types in general, is there a good explanation of how to do this somewhere?<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>I am trying to import a list of vtkPolyData points in order to use them in vtkThinPlateSplineTransform. The point data file is below. <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Points data file:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'># vtk DataFile Version 3.0<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>vtk output<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>ASCII<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>DATASET POLYDATA<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>POINTS 8 float<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>4.59051 13.9937 -10.0349 -3.7962 18.3532 -8.86511 1.09064 5.30224 -6.2456 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>-9.33379 6.54881 -9.28031 -12.7811 3.69209 -8.08974 -11.3976 6.21781 3.36158 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>-1.03919 3.50322 5.165 7.21133 7.95248 2.11749 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>VERTICES 8 16<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 0 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 1 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 2 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 3 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 4 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 5 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 6 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 7 <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>POINT_DATA 8<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>SCALARS scalars float<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>LOOKUP_TABLE default<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>1 1 1 1 1 1 1 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Chris<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div><DIV> </DIV><BR/><body><font size="2" color="gray" face="calibri">**** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
<BR/>The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you. <BR/>
******************** DISCLAIMER END ************************
</font></body></body></html>