<!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> </DIV>
<DIV><FONT face=Arial size=2>Any help is greatly appreciate. Thank
you!</FONT></DIV>
<DIV> </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> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> vtkRenderer *ren =
vtkRenderer::New();<BR> vtkRenderWindow *ren_win =
vtkRenderWindow::New();<BR> ren_win->AddRenderer(ren);<BR> vtkRenderWindowInteractor
*iren =
vtkRenderWindowInteractor::New();<BR> iren->SetRenderWindow(ren_win);<BR> <BR> //
read the volume<BR> vtkImageReader *reader =
vtkImageReader::New();<BR> reader->SetDataExtent(0, 63, 0, 63, 1,
93);<BR> reader->SetDataByteOrderToLittleEndian();<BR> reader->SetFilePrefix("quarter");<BR> reader->SetDataSpacing(3.2,
3.2, 1.5);<BR> reader->SetDataScalarTypeToUnsignedShort();</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> // extract the skin<BR> vtkContourFilter
*skin_extractor =
vtkContourFilter::New();<BR> skin_extractor->SetInput(reader->GetOutput());<BR> skin_extractor->SetValue(0,
500);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> vtkPolyDataMapper *skin_mapper =
vtkPolyDataMapper::New();<BR> skin_mapper->SetInput(skin_extractor->GetOutput());<BR> skin_mapper->ScalarVisibilityOff();<BR> vtkActor
*skin_actor =
vtkActor::New();<BR> skin_actor->SetMapper(skin_mapper);<BR> <BR> //
create the outline<BR> vtkOutlineFilter *outline =
vtkOutlineFilter::New();<BR> outline->SetInput(reader->GetOutput());<BR> vtkPolyDataMapper
*outline_mapper =
vtkPolyDataMapper::New();<BR> outline_mapper->SetInput(outline->GetOutput());<BR> vtkActor
*outline_actor =
vtkActor::New();<BR> outline_actor->SetMapper(outline_mapper);<BR> outline_actor->GetProperty()->SetColor(1,
1, 1);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> // now, tell the renderer our
actors <BR> ren->AddActor(outline_actor);<BR> ren->AddActor(skin_actor);<BR> ren->ResetCamera();<BR> ren_win->SetSize(300,
300);<BR> iren->Start();<BR></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Serge Béland<BR>Responsable produit, station
d'analyse</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>tél: (418) 683-6222 poste
202<BR> 1-866-HARFANG<BR>fax:(418)
683-7032</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.harfangmicro.com">http://www.harfangmicro.com</A></FONT></DIV>
<DIV> </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>