[vtkusers] Surface rendering of multiple objects

Dženan Zukić dzenanz at gmail.com
Fri Jul 29 06:45:38 EDT 2011


Hi Christian,

new examples are welcome. Can you add this one on the example page?

Regards,
Dženan

On Thu, Jul 28, 2011 at 20:11, Christian Lackas <lackas at invicro.com> wrote:

> * yanqiao zhu <yanqiao.zhu at gmail.com> [110727 01:28]:
>
> Hi Yanqiao,
>
> I believe the only part missing is where I actually build the LUT with
> useful colors:
>
>        lut->SetTableValue(0,1.0,0.0,0.0);
>        [...]
>         lut->SetTableRange(0.0, 7.0);
>         lut->Build();
>
> You can find the complete example here (the one I used to produce the
> image in the posting):
>
>    http://www.invicro.com/vtk/ROIRendering2.zip
>
> Hope this helps you.
>  Christian
>
> --
> Dr. Christian Lackas, Managing Partner
> inviCRO, LLC -- In Imaging Yours
> P: +1 617 933 8733, F: +49 2203 9034722, E: lackas at invicro.com
> http://www.invicro.com/  http://www.spect-ct.com/
> > Hi Christian,
> >
> > I downloaded the code and data you provided in the previous post and
> changed
> > the code as you told in this post by adding lut->SetTableRange(0.0, 7.0);
> > and changed mapper->SetScalarModeToUsePointData(); to
> > mapper->SetScalarModeToUseCellData(); But what I get after running the
> > program is shown in the image
> > http://vtk.1045678.n5.nabble.com/file/n4636845/result.png , which is far
> > from your result. So I am wondering maybe something is wrong. Could
> please
> > check it. The source code is also attached.
> >
> > Thanks very much!
> > Best,
> > Yanqiao Zhu
> >
> > http://vtk.1045678.n5.nabble.com/file/n4636845/ROIRendering.cxx
> > ROIRendering.cxx
> >
> > --
> > View this message in context:
> http://vtk.1045678.n5.nabble.com/Surface-rendering-of-multiple-objects-tp3391687p4636845.html
> > Sent from the VTK - Users mailing list archive at Nabble.com.
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110729/7e805797/attachment.htm>


More information about the vtkusers mailing list