<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any help is greatly appreciate. Thank 
you!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have so much problem making work a good example 
for raw data display, I have tried many and this is the last one I have tried 
and it shows nothing? what's wrong with that? I'm using the data example of the 
head provides by vtk data examples, I have put all the files in the same 
directory as the executable!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;vtkRenderer *ren = 
vtkRenderer::New();<BR>&nbsp;vtkRenderWindow *ren_win = 
vtkRenderWindow::New();<BR>&nbsp;ren_win-&gt;AddRenderer(ren);<BR>&nbsp;vtkRenderWindowInteractor 
*iren = 
vtkRenderWindowInteractor::New();<BR>&nbsp;iren-&gt;SetRenderWindow(ren_win);<BR>&nbsp;<BR>&nbsp;// 
read the volume<BR>&nbsp;vtkImageReader *reader = 
vtkImageReader::New();<BR>&nbsp;reader-&gt;SetDataExtent(0, 63, 0, 63, 1, 
93);<BR>&nbsp;reader-&gt;SetDataByteOrderToLittleEndian();<BR>&nbsp;reader-&gt;SetFilePrefix("quarter");<BR>&nbsp;reader-&gt;SetDataSpacing(3.2, 
3.2, 1.5);<BR>&nbsp;reader-&gt;SetDataScalarTypeToUnsignedShort();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;// extract the skin<BR>&nbsp;vtkContourFilter 
*skin_extractor = 
vtkContourFilter::New();<BR>&nbsp;skin_extractor-&gt;SetInput(reader-&gt;GetOutput());<BR>&nbsp;skin_extractor-&gt;SetValue(0, 
500);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;vtkPolyDataMapper *skin_mapper = 
vtkPolyDataMapper::New();<BR>&nbsp;skin_mapper-&gt;SetInput(skin_extractor-&gt;GetOutput());<BR>&nbsp;skin_mapper-&gt;ScalarVisibilityOff();<BR>&nbsp;vtkActor 
*skin_actor = 
vtkActor::New();<BR>&nbsp;skin_actor-&gt;SetMapper(skin_mapper);<BR>&nbsp;<BR>&nbsp;// 
create the outline<BR>&nbsp;vtkOutlineFilter *outline = 
vtkOutlineFilter::New();<BR>&nbsp;outline-&gt;SetInput(reader-&gt;GetOutput());<BR>&nbsp;vtkPolyDataMapper 
*outline_mapper = 
vtkPolyDataMapper::New();<BR>&nbsp;outline_mapper-&gt;SetInput(outline-&gt;GetOutput());<BR>&nbsp;vtkActor 
*outline_actor = 
vtkActor::New();<BR>&nbsp;outline_actor-&gt;SetMapper(outline_mapper);<BR>&nbsp;outline_actor-&gt;GetProperty()-&gt;SetColor(1, 
1, 1);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;// now, tell the renderer our 
actors&nbsp;&nbsp;<BR>&nbsp;ren-&gt;AddActor(outline_actor);<BR>&nbsp;ren-&gt;AddActor(skin_actor);<BR>&nbsp;ren-&gt;ResetCamera();<BR>&nbsp;ren_win-&gt;SetSize(300, 
300);<BR>&nbsp;iren-&gt;Start();<BR></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Serge Béland<BR>Responsable produit, station 
d'analyse</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tél: (418) 683-6222 poste 
202<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1-866-HARFANG<BR>fax:(418) 
683-7032</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.harfangmicro.com">http://www.harfangmicro.com</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>HARFANG Microtechniques inc.<BR>420 Boul. Charest 
Est Suite 200<BR>Quebec (Que)<BR>G1K 
8M4<BR>Canada<BR></FONT></DIV></BODY></HTML>