Do you want edges of all the polys?&nbsp; Or just an outer outline of the entire construct?&nbsp; <br><br>If the outer outline is what you want, have you tried the vtkFeatureEdges filter?<br><br>I tried this just now in Paraview (it's great for experimenting with this kind of stuff, as it's based on VTK).&nbsp; I loaded an Unstructured Grid with&nbsp; all 2D cells.&nbsp; I had to use an &quot;Extract Surface&quot; (vtkDataSetSurfaceFilter) to get it into a vtkPolyData format, but then I could use the &quot;Feature Edges&quot; (vtkFeatureEdges) filter.&nbsp; Turn off all options except &quot;Boundary Edges&quot;, and voila.&nbsp; 
<br><br><div><span class="gmail_quote">On 2/1/06, <b class="gmail_sendername">Frederic DANESI</b> &lt;<a href="mailto:fred.danesi@netcourrier.com">fred.danesi@netcourrier.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;">











<div>

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">Dear,
</span></font></p>

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">Thanks
for this helpful remark… it works now but finally that's not at all
what I am looking for …</span></font></p>

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">In
fact, I would like to find the contour of several polygons … just like a
boolean operation of &nbsp;"union", so all points of all polygons have
the same scalar value. I was hoping that vtkContour would assume something like
this ….</span></font></p>

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">Have
you any idea to do this ? … </span></font></p>

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">Thanks,</span></font></p>

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">Fred.</span></font></p><div><span class="e" id="q_109268e7c544df3c_1">

<p style="margin-bottom: 12pt;"><font color="navy" face="Times New Roman" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-GB">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;" lang="EN-GB">You're setting
the value of all 4 points to &quot;1&quot;, and then taking a contour of
1.&nbsp; It doesn't intersect anywhere, so I </span>think it's working just
right.<br>
<br>
Change the scalars to:<br>
&nbsp; for (int i =0; i &lt;4; i++) scalars-&gt;InsertNextValue(i); <br>
<br>
And then you'll have 4 different values.</font></p>

<div>

<p><span><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On 2/1/06, <b><span style="font-weight: bold;">Frederic
DANESI</span></b> &lt;<a href="mailto:fred.danesi@netcourrier.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fred.danesi@netcourrier.com
</a>&gt; wrote:</span></font></span></p>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Dear vtkusers,<br>
<br>
I am trying something that I believe quite simple, but without any success. <br>
<br>
I would like to build some vtkPolygons (2D) and then to use vtkContourFilter<br>
to obtain an isoline (which I assume to match with the boundary of all<br>
polygons together) ...<br>
<br>
Even with only one polygon, vtkContourFilter does not do anything <br>
(vtkContourFilter (09981DD8): Created: 0 points, 0 verts, 0 lines, 0<br>
triangles) ...<br>
<br>
I enclosed my code hereafter.<br>
<br>
I will really appreciate any idea, tips on what I missed or what I'm doing<br>
wrong, or any code example... <br>
<br>
Thanks,<br>
Fred.<br>
<br>
----<br>
<br>
vtkPolygon *polygon = vtkPolygon::New();<br>
<br>
&nbsp;&nbsp;polygon-&gt;GetPointIds()-&gt;SetNumberOfIds(4);<br>
&nbsp;&nbsp;polygon-&gt;GetPointIds()-&gt;SetId(0,0);<br>
&nbsp;&nbsp;polygon-&gt;GetPointIds()-&gt;SetId(1,1); <br>
&nbsp;&nbsp;polygon-&gt;GetPointIds()-&gt;SetId(2,2);<br>
&nbsp;&nbsp;polygon-&gt;GetPointIds()-&gt;SetId(3,3);<br>
<br>
&nbsp;&nbsp;polygon-&gt;GetPoints()-&gt;SetNumberOfPoints(4);<br>
&nbsp;&nbsp;polygon-&gt;GetPoints()-&gt;SetPoint(0, 0.0, 0.0, 0.0);<br>
&nbsp;&nbsp;polygon-&gt;GetPoints()-&gt;SetPoint(1, 10.0, 0.0, 0.0);<br>
&nbsp;&nbsp;polygon-&gt;GetPoints()-&gt;SetPoint(2, 10.0, 10.0, 0.0);<br>
&nbsp;&nbsp;polygon-&gt;GetPoints()-&gt;SetPoint(3, 0.0, 10.0, 0.0);<br>
<br>
&nbsp;&nbsp;vtkIntArray * scalars = vtkIntArray::New();<br>
&nbsp;&nbsp;scalars-&gt;Allocate(5000,10000); <br>
&nbsp;&nbsp;for (int i =0; i &lt;4; i++) scalars-&gt;InsertNextValue(1);<br>
<br>
&nbsp;&nbsp;vtkPolyData * polygonPolyData = vtkPolyData::New();<br>
&nbsp;&nbsp;polygonPolyData-&gt;Allocate(1,1);<br>
&nbsp;&nbsp;polygonPolyData-&gt;InsertNextCell(polygon-&gt;GetCellType(), <br>
polygon-&gt;GetPointIds());<br>
&nbsp;&nbsp;polygonPolyData-&gt;SetPoints(polygon-&gt;GetPoints());<br>
&nbsp;&nbsp;polygonPolyData-&gt;GetPointData()-&gt;SetScalars(scalars);<br>
<br>
&nbsp;&nbsp;// mapping and rendering &quot;polygonPolyData&quot; ==&gt; OK ... <br>
<br>
&nbsp;&nbsp;vtkContourFilter * flt = vtkContourFilter ::New();<br>
&nbsp;&nbsp;flt-&gt;SetInput((vtkDataSet *)output);<br>
&nbsp;&nbsp;flt-&gt;DebugOn();<br>
&nbsp;&nbsp;flt-&gt;SetValue(0,1);<br>
<br>
&nbsp;&nbsp;//+ mapping and rendering&nbsp;&nbsp;==&gt; vtkContourFilter
(09981DD8): Created: 0 <br>
points, 0 verts, 0 lines, 0 triangles ... empty ...<br>
<br>
--<br>
Responsable Département DINCCS<br>
(Département Ingénierie Numérique Conception Collaborative et Simulation)<br>
Pole de Haute Technologie<br>
08000 Charleville-Mézières <br>
Tél. 03.24.37.89.89<br>
<br>
<br>
<br>
<br>
_______________________________________________<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></span></font></p>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
Randall Hand<br>
Visualization Scientist, <br>
ERDC-MSRC Vicksburg, MS<br>
Homepage: <a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.yeraze.com</a> </span></font></p>

</span></div></div>





</blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com">http://www.yeraze.com</a>