[vtkusers] Re: what do you set objectsource to solid in vtk ?
Rao Jianguo
rao.jianguo at hgu.mrc.ac.uk
Thu Nov 24 07:12:15 EST 2005
Hi Kitti,
I don't know and am not aware VTK has provided such a method.
Perhaps you should send it to VTK team as a feature request.
Cheers,
Jianguo
kitti koonsanit wrote:
>
> I have problem to set objectsource to solid in vtk
>
> *no use vtkCylinderSource *
> *and no use ITK *
>
> I want convert vtkCylinder(surface) to Cylinder (vtkVolume)
>
>
> vtkCylinderSource cylinder = new vtkCylinderSource();
> cylinder.SetResolution(50);
> cylinder.CappingOn();
>
> 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 ?
>
> but I want solid (no hollow)
>
> CappingOn(); ---> It is lid. But inside of cylinder is hollow.
>
> if I use CappingOn method
> when I chop(cut) half cylinder . Inside's cylinder may be space as
> before.
>
>
> I want cylinder that have color inside cylinder .
>
> thank you very much Help me please !!!
>
> please answer to sc431137 at gmail.com <mailto:sc431137 at gmail.com>
More information about the vtkusers
mailing list