NAME
vtkPlanes - implicit function for convex set of planes
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkPlanes.h"
class VTK_EXPORT vtkPlanes : public vtkImplicitFunction
vtkPlanes();
~vtkPlanes();
static vtkPlanes *New() {return new vtkPlanes;};
const char *GetClassName() {return "vtkPlanes";};
void PrintSelf(ostream& os, vtkIndent indent);
float EvaluateFunction(float x[3]);
void EvaluateGradient(float x[3], float n[3]);
vtkPoints *GetPoints();
vtkPoints *GetPoints();
vtkNormals *GetNormals();
DESCRIPTION
vtkPlanes computes the implicit function and function gradient for a set of planes. The planes must define a convex space.
The function value is the closest first order distance of a point to the convex region defined by the planes. The function gradient is the plane normal at the function value. Note that the normals must point outside of the convex region. Thus, a negative function value means that a point is inside the convex region.
To define the planes you must create two objects: a subclass of vtkPoints (e.g., vtkFloatPoints) and a subclass of vtkNormals (e.g., vtkFloatNormals). The points define a point on the plane, and the normals specify plane normals.
SUMMARY
vtkNormals *GetNormals();
Specify a list of points defining points through which the planes pass.
vtkNormals *GetNormals();
Specify a list of normal vectors for the planes. There is a one-to-one correspondence between plane points and plane normals.