vtkusers:<br>&nbsp;&nbsp;&nbsp;Hello,&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;translate&nbsp;a&nbsp;3D&nbsp;reconstruction&nbsp;programme&nbsp;in&nbsp;python&nbsp;to&nbsp;one<br>&nbsp;in&nbsp;c++.&nbsp;When&nbsp;I&nbsp;use&nbsp;vtkProgrammbleSource&nbsp;to&nbsp;get&nbsp;some&nbsp;data&nbsp;for&nbsp;vtkSurfaceReconstru<br>ctorfilter&nbsp;to&nbsp;reconstruct&nbsp;the&nbsp;surface,&nbsp;I&nbsp;get&nbsp;a&nbsp;message&nbsp;from&nbsp;msvc&nbsp;&quot;vtkSurfaceRecon<br>structionFilter&nbsp;(0x051210C8):&nbsp;No&nbsp;points&nbsp;to&nbsp;reconstruct&quot;.&nbsp;So&nbsp;I&nbsp;think&nbsp;there&nbsp;may&nbsp;be&nbsp;<br>some&nbsp;mistake&nbsp;about&nbsp;my&nbsp;usage&nbsp;of&nbsp;setExecuteMethod.&nbsp;&nbsp;I&nbsp;find&nbsp;the&nbsp;programme&nbsp;have&nbsp;not&nbsp;c<br>arried&nbsp;out&nbsp;the&nbsp;function&nbsp;&quot;ReadPoints()&quot;&nbsp;I&nbsp;made.&nbsp;Part&nbsp;of&nbsp;my&nbsp;programme&nbsp;is&nbsp;showed&nbsp;bel<br>ow:<br><br><br>vtkProgrammableSource&nbsp;*&nbsp;PSP=vtkProgrammableSource::New();<br>void&nbsp;ReadPoints(void&nbsp;*&nbsp;PSPointer)<br>{<br>&nbsp;&nbsp;float&nbsp;&nbsp;PointsVal[10];<br>&nbsp;&nbsp;FILE&nbsp;*&nbsp;fp1;<br>&nbsp;&nbsp;PSP=(vtkProgrammableSource&nbsp;*)&nbsp;PSPointer;<br>&nbsp;&nbsp;vtkPolyData&nbsp;*&nbsp;OutPut=vtkPolyData::New();<br>&nbsp;&nbsp;vtkPoints&nbsp;*&nbsp;Points&nbsp;=vtkPoints::New();<br>&nbsp;&nbsp;fp1=fopen(&quot;data.txt&quot;,&quot;r&quot;);<br><br>&nbsp;&nbsp;rewind(fp1);<br>&nbsp;&nbsp;while(PointsVal[0]!=1000)<br>&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;fscanf(fp1,&quot;%f&nbsp;%f&nbsp;%f&quot;,PointsVal,PointsVal+1,PointsVal+2);        <br>&nbsp;&nbsp;&nbsp;&nbsp;if(PointsVal[0]&gt;1)        break;<br>&nbsp;&nbsp;&nbsp;&nbsp;Points-&gt;InsertNextPoint(PointsVal[0],PointsVal[1],PointsVal[2]);<br>&nbsp;&nbsp;&nbsp;}<br><br>&nbsp;&nbsp;&nbsp;OutPut=PSP-&gt;GetPolyDataOutput();<br>&nbsp;&nbsp;&nbsp;OutPut-&gt;SetPoints(Points);<br>}                                                                                <br><br><br>void&nbsp;main()<br>{&nbsp;<br>&nbsp;&nbsp;&nbsp;vtkProgrammableSource&nbsp;*&nbsp;PointSource=vtkProgrammableSource::New();<br><br>&nbsp;&nbsp;&nbsp;PointSource-&gt;SetExecuteMethod(ReadPoints,&nbsp;(void&nbsp;*)&nbsp;PointSource);//??????????<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;vtkSurfaceReconstructionFilter&nbsp;*&nbsp;Surf=vtkSurfaceReconstructionFilter::New();<br>&nbsp;&nbsp;&nbsp;Surf-&gt;SetInput(PSP-&gt;GetPolyDataOutput());<br>..............................................<br>.............................................<br>}<br><br>&nbsp;&nbsp;I&nbsp;have&nbsp;tried&nbsp;a&nbsp;lot,&nbsp;but&nbsp;I&nbsp;still&nbsp;can&nbsp;not&nbsp;get&nbsp;a&nbsp;result,&nbsp;could&nbsp;you&nbsp;kindly&nbsp;help&nbsp;me&nbsp;<br>with&nbsp;this?<br>&nbsp;&nbsp;Thanks&nbsp;a&nbsp;lot!!&nbsp;&nbsp;<br><body background="http://images.163.com/images/logo/maillist/vip/background.gif" bgproperties="fixed">
<font style='font-size:9pt'>
<br>
=============================================================<br>

<a target=_blank href='http://popme.163.com/freemail/index.html'><font color=blue>免费邮箱健康杀毒大行动!</a><br>
<a target=_blank href='http://mall.163.com/servlets/productList?name=wgs&category=585009&pageno=1'><font color=blue>飞舞你的精灵 留住你的精彩 精灵全面收费!</a><br>
<a target=_blank href='http://auctions.163.com/auctionsbj/student/index.html '><font color=blue>拍卖站热推新生入学大拍卖!</a><br>