<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
You can use vtkGeometryFilter, followed by a vtkPolyDataMapper, add it to an vtkActor and display it in the renderer:<br><br><span style="font-family: Courier New,Courier,Monospace;">vtkGeometryFilter *vGeomFilter = vtkGeometryFilter::New();</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vGeomFilter-&gt;SetInput(</span><font style="font-family: Courier New,Courier,Monospace;" face="Arial" size="2"> pl3d</font><span style="font-family: Courier New,Courier,Monospace;">-&gt;GetOutput() );</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vGeomFilter-&gt;Update();</span><br style="font-family: Courier New,Courier,Monospace;"><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vtkPolyDataMapper *vContourMapper = vtkPolyDataMapper::New();</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vContourMapper-&gt;SetInput( vGeomFilter-&gt;GetOutput() );</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vContourMapper-&gt;ScalarVisibilityOff();</span><br><br><span style="font-family: Courier New,Courier,Monospace;">vtkActor *</span><span style="font-family: Courier New,Courier,Monospace;">vContourActor = vtkActor::New();</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vContourActor-&gt;SetMapper( vContourMapper );</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vContourActor-&gt;GetProperty()-&gt;SetColor(1,1,1); // white</span><br style="font-family: Courier New,Courier,Monospace;"><span style="font-family: Courier New,Courier,Monospace;">vContourActor-&gt;GetProperty()-&gt;SetOpacity(0.7); // somewhat transparent<br><br>render-&gt;AddActor( vContourActor );<br></span><br>Or something similar of course.<br><br><blockquote><hr>From: zgut@itc.pw.edu.pl<br>To: vtkusers@vtk.org<br>Date: Fri, 9 May 2008 10:38:08 +0200<br>Subject: [vtkusers] About contour VTK C++<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">


<style>
</style>


<div><font face="Arial" size="2">Hi</font></div>
<div><font face="Arial" size="2">I am new user in VTK so I have problem to 
solve.</font></div>
<div><font face="Arial" size="2">I am using unstructured grid data:</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">&nbsp;vtkUnstructuredGridReader *pl3d = 
vtkUnstructuredGridReader::New();<br>&nbsp;pl3d-&gt;SetFileName(VTK_DATA_ROOT 
"der.vtk");<br>&nbsp;pl3d-&gt;SetScalarsName("scalars");<br>&nbsp;pl3d-&gt;Update();</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">It's OK.</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">But I would like to show only&nbsp;contour this 
object (outside wall-cell). </font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Regards</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Antoni</font></div>
<div><font face="Arial" size="2"><a href="mailto:zgut@itc.pw.edu.pl">zgut@itc.pw.edu.pl</a><br></font></div>
</blockquote><br /><hr />With Windows Live for mobile, your contacts travel with you. <a href='http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_Refresh_mobile_052008' target='_new'>Connect on the go.</a></body>
</html>