[vtkusers] Bounds problem with vtkGlyph3D and its mapper

Ather Imran Nawaz anawaz at purdue.edu
Sun Mar 2 23:23:19 EST 2003


Hi, 

This is related with using vtkGlyph3D class.

I am visualizing a vector field. I am using a vtkImageData dataset object associating a vector with each point. The field ranges from (-2,-2,-2) to (2, 2, 2). I have setup the origin and spacing correctly and the vectors are computed and stored correctly. The dataset goes as  input into a vtkGlyph3D object. However, when I map the glyph object to the vtkPolyDataMapper and I check its bounds (GetBounds function), they come out like (-2, -2, -2) to something far less than (2, 2, 2). The bounds for the vtkActor used to draw the glyphs is also the same. As a result when I draw the actor it comes out very small (though it draws all glyphs). I have checked this by drawing a cube wireframe of same dimensions as dataset and the glyph object is just a small subset of the box.

Any idea why the bounds are not correct? (The bounds are the same whether the scene has another object or not so I guess its not an issue with overlapping datasets). Not sure though.

Any suggestions are welcome. Thanks in advance.

-Ather
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030302/82472869/attachment.htm>


More information about the vtkusers mailing list