<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT size=2>Hi to all,</FONT></DIV>
<DIV><FONT size=2> I have a serise of transect volume slice ,but I want to
see arbitrary section.So my code as follows :</FONT></DIV>
<DIV> </DIV>
<DIV>vtkImageReslice *reslice=vtkImageReslice
::New();<BR> reslice->SetInput
(body->GetOutput());<BR>
reslice->SetResliceAxesDirectionCosines(1,0,1,0,1,0,-1,0,1);<BR> <BR>
reslice->InterpolateOn();<BR>
reslice->TransformInputSamplingOn();<BR>
reslice->AutoCropOutputOn(); <BR>
reslice->SetInterpolationModeToLinear();<BR> reslice->SetOutputSpacing(0.8,0.95,0.8);<BR> <BR> vtkImageMapper
*rmapper=vtkImageMapper
::New();<BR> rmapper->SetInput(reslice->GetOutput());<BR> rmapper->SetZSlice(90);<BR> rmapper->SetColorWindow(2000);<BR>
rmapper->SetColorLevel(1000);<BR> vtkActor2D *ractor=vtkActor2D
:: New();<BR>
ractor->SetMapper(rmapper);<BR>
ren->SetViewport(0,0.2,0.5,0.8);<BR>
ren->AddActor(ractor);</DIV>
<DIV> </DIV>
<DIV>My problem is that when the ResliceAxesDirection is inlined,i can only see
a part of the image,or only see the same slice.</DIV>
<DIV>By the way ,I want to know how to implement arbitrary shape section
,specially curved surface from volume.</DIV>
<DIV> Thanks</DIV></FONT></DIV></BODY></HTML>