<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 a vtkPolyData generated by a vtkPowerCrustSurfaceReconstruction. And I can know the correspondance beetwen the point of the surface and the point of the texture. </DIV>
<DIV class=RTE> </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> </DIV>
<DIV class=RTE>m_pSurf->SetInput(m_pUnorganisedPointsSource->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> </DIV>
<DIV class=RTE>m_p3DScenePolyData = m_pSurf->GetOutput(); //m_p3DScenePolyData is my object<BR></DIV>
<DIV class=RTE>m_p3DScenePolyData->Register(0);</DIV></DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>m_p3DScenePolyData->GetNumberOfPoints(); </DIV>
<DIV class=RTE> </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 a useful function to do this.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>1) Is it the good way?, do i need to add the point explecitly with m_p3DScenePolyData->SetPoints?</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>2) What is the the best resolution for the texture? Is it better to have a puissance of 2?</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Thanks</DIV>
<DIV class=RTE>Elodie</DIV>
<DIV class=RTE> </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>