On 5/20/07, <b class="gmail_sendername">Secolas UA</b> <<a href="mailto:secolasua@gmail.com">secolasua@gmail.com</a>> wrote:<div><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><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;"> 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>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">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.