[vtkusers] Re: How to filter out inactive cells?

David E DeMarle dave.demarle at kitware.com
Fri Jan 12 10:15:19 EST 2007


Hi Qichong,

Please keep questions on the mailing list so that more people have a
chance to answer and more people can benefit from the answers that the
group provides.

The answer in this case is the vtkThreshold filter. Or one of the
other filters with threshold in the name.

cheers,
Dave DeMarle


On 1/12/07, Li Qichong <txqcl at hotmail.com> wrote:
> HI David
>     Thank you answering my questions couples of days ago. You are really
> helpful! Now I have a new questions about VTK.  One cell has three
> components A1, A2, A3 and each component has a value. We want to filter out
> some inactive cells according the criteria: A1<C0 ( constant)  or A2<C1 or
> A3<C3. How to display only the active cells? thank you help me out.
> Best Regards
> Qichong
>
>
>
>
> >From: "David E DeMarle" <dave.demarle at kitware.com>
> >To: "Li Qichong" <txqcl at hotmail.com>
> >Subject: Re: [vtkusers] How to Assign RGB to Each Cell
> >Date: Wed, 3 Jan 2007 10:49:06 -0500
> >
> >go to http://vtk.org/doc/nightly/html/annotated
> >each class has a page
> >each page has a link to example code
> >also poke around in the source code's Examples directory
> >cheers,
> >Dave DeMarle
> >
> >On 1/2/07, Li Qichong <txqcl at hotmail.com> wrote:
> >>Hi, Dave
> >>    Thank you reply.
> >>  I am just a beginner of VTK. Can you send me a sample for this?
> >>So I can
> >>apply it to my project.
> >>Thanks!!
> >>Qichong
> >>
> >>
> >> >From: "David E DeMarle" <dave.demarle at kitware.com>
> >> >To: "Li Qichong" <txqcl at hotmail.com>
> >> >CC: vtkusers at vtk.org
> >> >Subject: Re: [vtkusers] How to Assign RGB to Each Cell
> >> >Date: Tue, 2 Jan 2007 17:15:49 -0500
> >> >
> >> >Create a vtkUnsignedChar array with 3 components and 100 tuples.
> >> >Set each of those 300 values with your color components. Then
> >>have
> >> >tell the mapper to use that array to color by.
> >> >
> >> >cheers
> >> >Dave DeMarle
> >> >
> >> >On 1/2/07, Li Qichong <txqcl at hotmail.com> wrote:
> >> >>Hi, VTK GURU
> >> >>     I have a question for assigning RGB to each cell. Assuming
> >>we
> >> >>have
> >> >>10x10 cells, each cell has three components: A1,A2 and A3 and A1
> >>is
> >> >>corresponding to Red, A2 to green and A3 to Blue. So How can I
> >> >>assign RGB
> >> >>to each cell?
> >> >>Thanks for help.
> >> >>Qi
> >> >>
> >> >>_________________________________________________________________
> >> >>与世界各地的朋友进行交流,免费下载  Live Messenger;
> >> >>http://get.live.com/messenger/overview
> >> >>
> >> >>_______________________________________________
> >> >>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
> >> >>
> >>
> >>_________________________________________________________________
> >>与联机的朋友进行交流,请使用 Live Messenger;
> >>http://get.live.com/messenger/overview
> >>
> >>
>
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>
>


More information about the vtkusers mailing list