On 5/20/07, <b class="gmail_sendername">Secolas UA</b> &lt;<a href="mailto:secolasua@gmail.com">secolasua@gmail.com</a>&gt; 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&#39;ve tried like this:<br><br>void Delaunay(void)<br>{<br>&nbsp;&nbsp;&nbsp; vtkDelaunay2D *newMesh = vtkDelaunay2D::New();<br>&nbsp;&nbsp;&nbsp; newMesh-&gt;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>&nbsp; newMesh-&gt;SetInput( polyData ); <br>instead of <br>&nbsp; newMesh-&gt;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;">&nbsp;&nbsp;&nbsp; newMesh-&gt;Update();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; polyData = newMesh-&gt;GetOutput();<br>
&nbsp;&nbsp;&nbsp; polyData-&gt;Modified();<br>&nbsp;&nbsp;&nbsp; iren-&gt;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&amp;D Engineer,<br>Kitware Inc.