[vtkusers] vtkPolyDataNormals

Nigel Nunn nNunn at ausport.gov.au
Mon Mar 24 19:30:27 EST 2003


Hi Xianjin Yang, 
 
> I am trying to render a bounding box or cube-like axes 
> around my vtkPolyData object (scattered points).  In VTK/ 
> Examples/Annotation/Tcl/cubeAxes.tcl, a vtkPolyDataNormals 
> object is needed for use of vtkCubeAxesActor2D, that is, 
> axes->SetInput(normals->GetOutput()); My question is how to 
> get a vtkPolyDataNormals object (normals) from my vtkPolyData 
> object? Note that my vtkPolyData object consists of some 
> scattered points without edges and faces. 
 
The documentation for vtkCubeAxesActor2D explains the different 
ways to set both the bounds and the range for vtkCubeAxesActor2D. 
If you can get a bounding box for your scattered points, you can 
use this as the bounds for the axes.  Also, if you can get the 
actual min and max data values for each direction, then you can 
use these as the range for the data labels: 
 
  m_pCubeAxesActor->SetBounds(axis_bounds); // display bounds 
  m_pCubeAxesActor->SetRanges(axis_range);  // numeric range 
  m_pCubeAxesActor->UseRangesOn();          // use range [ON] 
 
Nigel 
 
 

**********************************************************************
This message is intended for the addressee named and may contain 
confidential and privileged information. If you are not the intended 
recipient please note that any form of distribution, copying or use of
this communication or the information in it is strictly prohibited and
may be unlawful. If you receive this message in error, please delete it
and notify the sender.

Keep up to date with what's happening in Australian sport.
Visit http://www.ausport.gov.au
**********************************************************************



More information about the vtkusers mailing list