[vtkusers] Re: what do you set objectsource to solid in vtk ?
Rao Jianguo
rao.jianguo at hgu.mrc.ac.uk
Tue Nov 15 05:45:05 EST 2005
Hi Kitti,
In that case, thing is little bit compicated.
You can do it by the following method.
1) created 3D cylinder image which can be created by ITK.
2) convert to VTK format. for example SLC format.
3) then you can cut in any angle and still get solid inside.
Hope it helps,
Jianguo
kitti koonsanit wrote:
> thank you very much for suggestion.
> 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 it's dense as solid , How do I write ?
>
>
>
>
> On 11/14/05, *Rao Jianguo* <rao.jianguo at hgu.mrc.ac.uk
> <mailto:rao.jianguo at hgu.mrc.ac.uk>> wrote:
>
> 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>
> <mailto: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 <http://www.vtk.org/Wiki/VTK_FAQ>
> >Follow this link to subscribe/unsubscribe:
> >http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
>
> On 11/14/05, *kitti koonsanit* <sc431137 at gmail.com
> <mailto:sc431137 at gmail.com>> 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>
>
>
More information about the vtkusers
mailing list