[vtkusers] Skin Applying in 3D

Gururajan.R gururajan.r at raster.in
Tue Sep 8 07:39:37 EDT 2009


Hi all,

Please any one can share me the idea how i can bring real skin to my 3D
image. the following code am using to render 3d.

Thanks in advance.
Guru
String strfilename = new String();
        strfilename = "/home/guru/workspace/ThreeD/Raw/Dicom.vtk";

        vtkPolyDataReader polyReader = new vtkPolyDataReader();
        polyReader.SetFileName(strfilename);
        polyReader.Update();

        //for skin and bone Diagram
            //For setting Bone Colour
                vtkGeometryFilter  geovolumebone = new vtkGeometryFilter();
                geovolumebone.SetInput(polyReader.GetOutput());
                
                vtkPolyDataMapper  geobonemapper = new vtkPolyDataMapper();
                
                geobonemapper.SetInput(geovolumebone.GetOutput());
                geobonemapper.ScalarVisibilityOff();
                
                vtkLODActor boneActor = new vtkLODActor();
                boneActor.SetNumberOfCloudPoints(10000);
                boneActor.SetMapper(geobonemapper);
                //boneActor.GetProperty().SetColor(0.75,0.75,0.75);
                boneActor.GetProperty().SetColor(1,0,0);
                boneActor.GetProperty().SetOpacity(0.5);
                boneActor.GetProperty().SetDiffuse(1.75);
                boneActor.GetProperty().SetSpecular(1.75);
            //For setting Bone Colour



More information about the vtkusers mailing list