[vtkusers] what do you set objectsource to solid in vtk ?

Rao Jianguo rao.jianguo at hgu.mrc.ac.uk
Mon Nov 14 07:00:11 EST 2005


Hi Kitti

cylinder.CappingOff();
 should be
cylinder.CappingOn();
 


Cheers,

Jianguo

kitti koonsanit wrote:

>
>
>
> I have problem to  set objectsource to solid  in vtk
>  
> Exam that I do:
>  
> vtkCylinderSource cylinder = new vtkCylinderSource();
>    cylinder.SetResolution(50);
>    cylinder.CappingOff();
>  
>    vtkPolyDataMapper cylinderMapper = new vtkPolyDataMapper();
>     cylinderMapper.SetInput(cylinder.GetOutput());
>  
>   vtkActor cylinderActor = new vtkActor();
>     cylinderActor.SetMapper(cylinderMapper);
>     cylinderActor.GetProperty().SetColor(VtkColors.TOMATO);
>  
> result     Cylinder  ---->It 's  hollow
>  
> I do not want  hollow
>  
> I want cylinder that it's dense as solid  , How do I  write ?
>  
> thank you very much
>  
> please  answer to sc431137 at gmail.com <mailto:sc431137 at gmail.com>
>
> ------------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>  
>




More information about the vtkusers mailing list