[vtkusers] Merging adjacent cubes

Freyr Magnússon freyr.magnusson at gmail.com
Fri Mar 7 13:40:53 EST 2008


Hi Eschenberg and Amy,

I thanks speed response.  I found it in the docs along with a sample so I'm
pretty happy

many thanks.

regards,
Freyr

On Fri, Mar 7, 2008 at 6:35 PM, Amy Squillacote <ahs at cfdrc.com> wrote:

> The real name of the filter is vtkThreshold. It's in the vtkGraphics
> library. The on-line documentation for vtkThreshold is here:
> http://www.vtk.org/doc/nightly/html/classvtkThreshold.html.
>
> - Amy
>
> Kent Eschenberg wrote:
> > You probably have some variable that indicates whether you want to
> > display the box. Lets call it x where 1/0 means show/don't show. There
> > is a filter called "Threshold" in ParaView (don't know its real name)
> > that can select cells based on some variable. Use it with a threshold
> > of x >= 0.5. Then use vtkDataSetSurfaceFilter to show the outer
> > surface of threshold's output. It will draw only the "outer surface"
> > and so avoid interior boundaries.
> >
> > Kent
> > Pittsburgh Supercomputer Center
> >
> > Freyr Magnússon wrote:
> >> Hi,
> >>
> >> I have a project where I'm visualizing occupied areas in a 3d grid.
> >> Currently I'm rendering a box for each cell occupied for lack of
> >> better ideas.
> >>
> >> The question are:
> >>
> >> is there a better known way to render the grid?
> >>
> >> if not is there a way to merge adjacent cubes to form a single shape
> >> and remove the unnecessary internal geometry that will never be
> >> rendered anyway?
> >>
> >>
> >> regards,
> >> Freyr
> > _______________________________________________
> > 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
> >
> >
>
> --
> Amy Squillacote                    Phone: (256) 726-4839
> Computer Scientist                 Fax: (256) 726-4806
> CFD Research Corporation           Web: http://www.cfdrc.com
> 215 Wynn Drive, Suite 501
> Huntsville, AL  35805
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080307/dc4c9bb7/attachment.htm>


More information about the vtkusers mailing list