<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->sliderRangeMin->value()-(int)this->sliderRangeMax->value()/2;<BR>        widhtForVolumeRendering = (int)this->sliderRangeMin->value()+(int)this->sliderRangeMax->value()/2;<BR><BR>        mode3D = vtkInteractorStyleTrackballCamera::New();<BR></DIV><DIV><BR></DIV><DIV>renderer3D = vtkRenderer::New();<BR>        renderWindow3D = vtkRenderWindow::New();<BR>        renderWindow3D->AddRenderer(renderer3D);<BR><BR>         displayImage3D->SetRenderWindow(renderWindow3D);<BR>
        displayImage3D->SetInteractorStyle(mode3D);<BR>         displayImage3D->Initialize();<BR><BR> piecewiseVolumeRendering = vtkPiecewiseFunction::New();<BR>         piecewiseVolumeRendering->AddPoint((double)levelForVolumeRendering, 0);<BR>         piecewiseVolumeRendering->AddPoint((double)widhtForVolumeRendering, 1.0);<BR><BR>colorVolumeRendering = vtkColorTransferFunction::New();<BR>colorVolumeRendering->AddRGBPoint((double)levelForVolumeRendering, .62, .36, .18 );<BR>        colorVolumeRendering->AddRGBPoint((double)widhtForVolumeRendering, .83, .66, 1);<BR>        <BR>        propertyVolumeRendering = vtkVolumeProperty::New();<BR>         propertyVolumeRendering->SetShade(0);<BR>         propertyVolumeRendering->SetAmbient(0.3);<BR>         propertyVolumeRendering->SetDiffuse(1.0);<BR>         propertyVolumeRendering->SetSpecular(0.2);<BR>         propertyVolumeRendering->SetSpecularPower(50.0);<BR>         propertyVolumeRendering->SetColor(colorVolumeRendering);<BR>
        propertyVolumeRendering->SetScalarOpacity(piecewiseVolumeRendering);<BR>         propertyVolumeRendering->ShadeOn();<BR>        propertyVolumeRendering->SetInterpolationTypeToLinear();<BR><BR>        volumeRayCastMapper = vtkFixedPointVolumeRayCastMapper::New();<BR>        volumeRayCastMapper->SetInputConnection(reader2D->GetOutputPort());<BR><BR>        volumeVolumeRendering = vtkVolume::New();<BR> volumeVolumeRendering->SetProperty(propertyVolumeRendering);<BR>         volumeVolumeRendering->SetMapper(volumeRayCastMapper);<BR><BR>         camera3D = vtkCamera::New();<BR>         camera3D->SetViewUp(0, 0, -1);<BR>         camera3D->SetPosition(0, 1, 0);<BR>         camera3D->SetFocalPoint(0, 0, 0);<BR>         camera3D->ComputeViewPlaneNormal();<BR>        camera3D->Azimuth(20);<BR><BR>         renderer3D->AddViewProp(volumeVolumeRendering);<BR>renderer3D->SetActiveCamera(camera3D);<BR>         renderer3D->ResetCamera();<BR>         camera3D->Dolly(1.3);<BR>
        renderer3D->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>