<html><div style='background-color:'><DIV class=RTE>Hello,</DIV>
<DIV class=RTE>
<P>I have the program of a colleague which reconstruct an object 3d starting from a file of coordinates of the points. I would like to apply a texture to this object.</P>The object is&nbsp;a vtkPolyData&nbsp;generated by a vtkPowerCrustSurfaceReconstruction. And I can know the correspondance beetwen&nbsp;the point of the surface and the point of the texture. </DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I wanted to use SetTcoords to do this but I have a problem to get the points. when I make:</DIV>
<DIV class=RTE>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>m_pSurf-&gt;SetInput(m_pUnorganisedPointsSource-&gt;GetPolyDataOutput());</DIV>
<DIV class=RTE>//m_pSurf is a vtkPowerCrustSurfaceReconstruction</DIV>
<DIV class=RTE>//m_pUnorganisedPointsSource is a vtkProgrammableSource. It's the result after read the file(coordinates).</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>m_p3DScenePolyData = m_pSurf-&gt;GetOutput();&nbsp; //m_p3DScenePolyData is my object<BR></DIV>
<DIV class=RTE>m_p3DScenePolyData-&gt;Register(0);</DIV></DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>m_p3DScenePolyData-&gt;GetNumberOfPoints(); </DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>the result is 0, so I cannot use SetTcoords. </DIV>
<DIV class=RTE>I don't know vtkPowerCrustSurfaceReconstruction, maybe there is&nbsp;a useful function&nbsp;to do this.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>1) Is it the good way?, do i need to add the point explecitly with m_p3DScenePolyData-&gt;SetPoints?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>2) What is the the best resolution for the texture?&nbsp;Is it better to have a puissance of 2?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Thanks</DIV>
<DIV class=RTE>Elodie</DIV>
<DIV class=RTE>&nbsp;</DIV></div><br clear=all><hr>Envoyez jusqu'à 10 Mo de pièces jointes <a href="http://g.msn.com/8HMAFRFR/2755??PS=47575" target="_top"> avec MSN Hotmail !</a> </html>