<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi all vtk users.</DIV>
<DIV>I want to create a volume by the superposition of a sequence of images (bmp). I use this code and it runs but i have some problems. </DIV>
<DIV>I want to know if there is another way to do that. </DIV>
<DIV>Thanks for your help.</DIV>
<DIV> </DIV>
<DIV>vtkVolume16Reader *v16 = vtkVolume16Reader::New();<BR>v16->SetDataDimensions(128,128);<BR>v16->SetFilePrefix("C:/Sequence/Image");<BR>v16->SetImageRange(1,48);<BR>v16->SetDataByteOrderToLittleEndian();<BR>v16->SetDataSpacing (3,3,3);<BR> <BR>vtkContourFilter *skinExtractor = vtkContourFilter::New();<BR>skinExtractor->SetInput((vtkDataSet*) v16->GetOutput());<BR>skinExtractor->SetValue(0,500);<BR><BR>vtkPolyDataNormals *skinNormals = vtkPolyDataNormals::New();<BR>skinNormals->SetInput(skinExtractor->GetOutput());<BR>skinNormals->SetFeatureAngle(60);<BR> <BR>vtkPolyDataMapper *skinMapper = vtkPolyDataMapper::New();<BR>skinMapper->SetInput(skinNormals->GetOutput());<BR>skinMapper->ScalarVisibilityOff();<BR> <BR>vtkActor *skin = vtkActor::New();<BR>skin->SetMapper(skinMapper);<BR> </DIV>
<DIV>vtkOutlineFilter *outlineData = vtkOutlineFilter::New();<BR>outlineData->SetInput((vtkDataSet*) v16->GetOutput());<BR> <BR>vtkPolyDataMapper *mapOutline = vtkPolyDataMapper::New();<BR>mapOutline->SetInput(outlineData->GetOutput());<BR> <BR>vtkActor *outline = vtkActor::New();<BR>outline->SetMapper(mapOutline);<BR></DIV></td></tr></table><br>