[vtkusers] Bounding Box of scattered points

Christopher M. Navarro cnavarro at ncsa.uiuc.edu
Mon Apr 21 16:29:01 EDT 2003

On Mon, 21 Apr 2003, Xianjin Yang wrote:

> Hi VTK users,
> I rendered a list of scattered data points, and I could modify the color of
> individual points as described in my last email. I also added x, y and z axes
> with the help of vtkCubeAxesActor2D. However, I really need a bounding box
> around the points. The bounding box example requires normals which I could not
> obtain from scattered data points. If the min and max of x, y, z for all points
> are available, is there any way to draw a rectangular  bounding box? 

vtkCubeSource could do what you want.  You can set the bounds to your 
min and max of (x,y,z) and then set the actor representation 
to wireframe.

vtkActor cubeActor = new vtkActor();


More information about the vtkusers mailing list