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> &lt;<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>&gt; 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> &lt;<a href="mailto:secolasua@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">secolasua@gmail.com</a>&gt; 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&#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></span><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;"><span class="q">&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></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&amp;D Engineer,<br>Kitware Inc.
</blockquote></div><br>