<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:"times new roman", "new york", "times", serif;font-size:12pt"><DIV>Hello all,<BR></DIV><DIV><BR></DIV><DIV>How can I save an image 3D as vtkData (.vtk), that I did with Volume Rendering (vtkFixedPointVolumeRayCastMapper)? With vtkDataSetWriter it does not work. My code is shown below:</DIV><DIV><BR></DIV><DIV>Thank you.</DIV><DIV><BR></DIV><DIV><BR>        levelForVolumeRendering = (int)this-&gt;sliderRangeMin-&gt;value()-(int)this-&gt;sliderRangeMax-&gt;value()/2;<BR>        widhtForVolumeRendering = (int)this-&gt;sliderRangeMin-&gt;value()+(int)this-&gt;sliderRangeMax-&gt;value()/2;<BR><BR>        mode3D = vtkInteractorStyleTrackballCamera::New();<BR></DIV><DIV><BR></DIV><DIV>renderer3D = vtkRenderer::New();<BR>        renderWindow3D = vtkRenderWindow::New();<BR>        renderWindow3D-&gt;AddRenderer(renderer3D);<BR><BR>            displayImage3D-&gt;SetRenderWindow(renderWindow3D);<BR>
        displayImage3D-&gt;SetInteractorStyle(mode3D);<BR>            displayImage3D-&gt;Initialize();<BR><BR> piecewiseVolumeRendering = vtkPiecewiseFunction::New();<BR>              piecewiseVolumeRendering-&gt;AddPoint((double)levelForVolumeRendering, 0);<BR>              piecewiseVolumeRendering-&gt;AddPoint((double)widhtForVolumeRendering, 1.0);<BR><BR>colorVolumeRendering = vtkColorTransferFunction::New();<BR>colorVolumeRendering-&gt;AddRGBPoint((double)levelForVolumeRendering, .62, .36, .18 );<BR>        colorVolumeRendering-&gt;AddRGBPoint((double)widhtForVolumeRendering, .83, .66, 1);<BR>        <BR>        propertyVolumeRendering = vtkVolumeProperty::New();<BR>         propertyVolumeRendering-&gt;SetShade(0);<BR>         propertyVolumeRendering-&gt;SetAmbient(0.3);<BR>         propertyVolumeRendering-&gt;SetDiffuse(1.0);<BR>         propertyVolumeRendering-&gt;SetSpecular(0.2);<BR>         propertyVolumeRendering-&gt;SetSpecularPower(50.0);<BR>          propertyVolumeRendering-&gt;SetColor(colorVolumeRendering);<BR> 
        propertyVolumeRendering-&gt;SetScalarOpacity(piecewiseVolumeRendering);<BR>           propertyVolumeRendering-&gt;ShadeOn();<BR>        propertyVolumeRendering-&gt;SetInterpolationTypeToLinear();<BR><BR>        volumeRayCastMapper = vtkFixedPointVolumeRayCastMapper::New();<BR>        volumeRayCastMapper-&gt;SetInputConnection(reader2D-&gt;GetOutputPort());<BR><BR>        volumeVolumeRendering = vtkVolume::New();<BR> volumeVolumeRendering-&gt;SetProperty(propertyVolumeRendering);<BR>         volumeVolumeRendering-&gt;SetMapper(volumeRayCastMapper);<BR><BR>          camera3D = vtkCamera::New();<BR>            camera3D-&gt;SetViewUp(0, 0, -1);<BR>            camera3D-&gt;SetPosition(0, 1, 0);<BR>            camera3D-&gt;SetFocalPoint(0, 0, 0);<BR>            camera3D-&gt;ComputeViewPlaneNormal();<BR>        camera3D-&gt;Azimuth(20);<BR><BR>         renderer3D-&gt;AddViewProp(volumeVolumeRendering);<BR>renderer3D-&gt;SetActiveCamera(camera3D);<BR>          renderer3D-&gt;ResetCamera();<BR>          camera3D-&gt;Dolly(1.3);<BR>  
        renderer3D-&gt;ResetCameraClippingRange();<BR>                        <BR><BR></DIV>


</div><br>__________________________________________________<br>Do You Yahoo!?<br>Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. <br>http://mail.yahoo.com </body></html>