[vtkusers] How to use vtkStructuredGridGeometryFilter instead of a bunch of cubes

Somada141 somada141 at yahoo.gr
Sat Nov 15 06:00:44 EST 2008




Denis Barbier-5 wrote:
> 
> 
> Indeed,  it is clear by reading vtkStructuredGridGeometryFilter.cxx that
> you
> make nothing wrong, this filter returns points when applied on a volume.
> But you can play with SetExtent to make slices, e.g.
>    surface_filter.SetExtent(0,3,1,1,0,3)
> to display quads on plane j=1, and add
>   surfActor.GetProperty().SetRepresentationToWireframe()
> if you want a wireframed representation.
> 
> Denis
> 
> 
> 

Hi Denis and thank you for replying,

Indeed I tried SetExtent and proper slices came out. However I can't find a
way to connect the slices so the result will be like cubes.

If there is a way you or anyone out there knows of in order to make this
happen I'll be delighted to here about it.

Also does anyone know how to properly use the blanking property of
vtkStructuredGrid in order to visualize more complex geometries like the one
in the snapshot above? 

Thanks,
Adam
-- 
View this message in context: http://www.nabble.com/How-to-use-vtkStructuredGridGeometryFilter-instead-of-a-bunch-of-cubes-tp20507048p20514318.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list