[vtkusers] Merging adjacent cubes
Amy Squillacote
ahs at cfdrc.com
Fri Mar 7 13:35:50 EST 2008
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
More information about the vtkusers
mailing list