<DIV>
<DIV id=message>
<DIV>With reference to the messages below:</DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried using the vtkGeometryFilter to extract just the outer surface of an unstructured grid. But this doesn't seem to be working. Can anyone tell me what needs to be changed in the code below?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkDataSetReader *reader1 = vtkDataSetReader::New();<BR>&nbsp;&nbsp; reader1-&gt;SetFileName ("C:/..../trial.vtk");<BR>&nbsp; &nbsp;reader1-&gt;Update();</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkConnectivityFilter *connect = vtkConnectivityFilter::New();<BR>&nbsp;connect-&gt;SetInput(reader1-&gt;GetOutput() );<BR>&nbsp;connect-&gt;SetExtractionModeToAllRegions();</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkExtractUnstructuredGrid *extractGrid = vtkExtractUnstructuredGrid::New();<BR>&nbsp; extractGrid-&gt;SetInput(connect-&gt;GetOutput());<BR>&nbsp;<BR>vtkGeometryFilter *gFilter = vtkGeometryFilter::New();<BR>&nbsp; gFilter-&gt;SetInput(extractGrid-&gt;GetOutput());<BR>&nbsp;&nbsp;</DIV>
<DIV>vtkPolyDataMapper *visMapper = vtkPolyDataMapper::New();<BR>&nbsp;&nbsp; visMapper-&gt;SetInput(gFilter-&gt;GetOutput() );<BR>&nbsp;&nbsp;&nbsp;visMapper-&gt;ScalarVisibilityOff();</DIV>
<DIV>&nbsp;</DIV>
<DIV>vtkActor *actor = vtkActor::New();<BR>actor-&gt;GetProperty()-&gt;SetColor(0,0.8,0);<BR>&nbsp;actor-&gt;GetProperty()-&gt;SetAmbient(0.8 );<BR>&nbsp;actor-&gt;GetProperty()-&gt;SetRepresentationToWireframe();<BR>&nbsp;actor-&gt;SetMapper( visMapper );<BR>&nbsp;&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Matt and Nikhil</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi Matt,<BR>&nbsp; I have used vtkGeometryFilter on an unstructured grid, this just extracts<BR>the outer surface... not quite the same as only the visible parts but could<BR>be useful, or a good start on what you want?<BR>Dave P<BR><BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank><FONT color=#003399>vtkusers-bounces at vtk.org</FONT></A> wrote on 18/08/2004 08:17:15:<BR><BR>&gt;<I> I am using a vtkPolyDataSetReader to read unstructured<BR></I>&gt;<I> grid information. Then a vtkPolyDataSetMapper to<BR></I>&gt;<I> create an actor to display a mesh of an object. I am<BR></I>&gt;<I> looking for a way to display only the parts of the<BR></I>&gt;<I> mesh that would be actually visable ( just the front<BR></I>&gt;<I> face of the object). I have looked through the docs<BR></I>&gt;<I> and searched the archive, but I was unable to find<BR></I>&gt;<I> anything.<BR></I>&gt;<I><BR></I>&gt;<I> If anyone knows of a method to accomplish this I would<BR></I>&gt;<I>
 appreciate the help.<BR></I>&gt;<I><BR></I>&gt;<I> -Matt<BR></I></DIV></DIV></DIV>