I have changed the code like you said and now the polydata model disapears?<br>Any more sugestions?<br><br>Thanks for the help<br>Ricardo Seco<br>University of Aveiro<br><br><div><span class="gmail_quote">On 5/21/07, <b class="gmail_sendername">
Karthik Krishnan</b> <<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q">On 5/20/07, <b class="gmail_sendername">Secolas UA</b> <<a href="mailto:secolasua@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">secolasua@gmail.com</a>> wrote:</span>
<div><span class="q"><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I have a polydata model and I want to retriangulate it by vtkDelauny2d. I've tried like this:<br><br>void Delaunay(void)<br>{<br> vtkDelaunay2D *newMesh = vtkDelaunay2D::New();<br> newMesh->SetSource(polyData);
</blockquote></span><div><br>The source is for specifying the optional constraint edges for the triangulation, not the input itself.. What you need is <br> newMesh->SetInput( polyData ); <br>instead of <br> newMesh->SetSource( polyData );
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span class="q"> newMesh->Update(); <br> polyData = newMesh->GetOutput();
<br>
polyData->Modified();<br> iren->Render();<br>}<br><br>But the following message appears:<br><br>ERROR: In d:\Ricardo\vtk-5.0.3\Filtering\vtkDemandDrivenPipeline.cxx
, line 710<br>vtkStreamingDemandDrivenPipeline (02C269C8): Input port 0 of algorithm vtkDelaunay2D(02BD2C88) has 0 connections but is not optional.<br><br>Anyone could help me?<br><br>Thanks in Advance.<br><br>Ricardo Seco
<br>University of Aveiro<br><br><br>
<br></span>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.
</blockquote></div><br>