VTK
|
#include <vtkImplicitPolyDataDistance.h>
Inherits vtkImplicitFunction.
Public Types | |
typedef vtkImplicitFunction | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImplicitPolyDataDistance * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
unsigned long | GetMTime () |
double | EvaluateFunction (double x[3]) |
void | EvaluateGradient (double x[3], double g[3]) |
void | SetInput (vtkPolyData *input) |
virtual void | SetNoValue (double) |
virtual double | GetNoValue () |
virtual void | SetNoGradient (double, double, double) |
virtual void | SetNoGradient (double[3]) |
virtual double * | GetNoGradient () |
virtual void | GetNoGradient (double &, double &, double &) |
virtual void | GetNoGradient (double[3]) |
virtual double | GetTolerance () |
virtual void | SetTolerance (double) |
Static Public Member Functions | |
static vtkImplicitPolyDataDistance * | New () |
static int | IsTypeOf (const char *type) |
static vtkImplicitPolyDataDistance * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkImplicitPolyDataDistance () | |
~vtkImplicitPolyDataDistance () | |
double | SharedEvaluate (double x[3], double n[3]) |
Implicit function that computes the distance from a point x to the nearest point p on an input vtkPolyData. The sign of the function is set to the sign of the dot product between the angle-weighted pseudonormal at the nearest surface point and the vector x - p. Points interior to the geometry have a negative distance, points on the exterior have a positive distance, and points on the input vtkPolyData have a distance of zero. The gradient of the function is the angle-weighted pseudonormal at the nearest point.
Baerentzen, J. A. and Aanaes, H. (2005). Signed distance computation using the angle weighted pseudonormal. IEEE Transactions on Visualization and Computer Graphics, 11:243-253.
This code was contributed in the VTK Journal paper: "Boolean Operations on Surfaces in VTK Without External Libraries" by Cory Quammen, Chris Weigle C., Russ Taylor http://hdl.handle.net/10380/3262 http://www.midasjournal.org/browse/publication/797
Definition at line 50 of file vtkImplicitPolyDataDistance.h.
typedef vtkImplicitFunction vtkImplicitPolyDataDistance::Superclass |
Definition at line 54 of file vtkImplicitPolyDataDistance.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkImplicitPolyDataDistance* vtkImplicitPolyDataDistance::NewInstance | ( | ) | const |
void vtkImplicitPolyDataDistance::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
unsigned long vtkImplicitPolyDataDistance::GetMTime | ( | ) |
Return the MTime also considering the Input dependency.
double vtkImplicitPolyDataDistance::EvaluateFunction | ( | double | x[3] | ) |
Evaluate plane equation of nearest triangle to point x[3].
void vtkImplicitPolyDataDistance::EvaluateGradient | ( | double | x[3], |
double | g[3] | ||
) |
Evaluate function gradient of nearest triangle to point x[3].
void vtkImplicitPolyDataDistance::SetInput | ( | vtkPolyData * | input | ) |
Set the input vtkPolyData used for the implicit function evaluation. Passes input through an internal instance of vtkTriangleFilter to remove vertices and lines, leaving only triangular polygons for evaluation as implicit planes.
|
virtual |
Set/get the function value to use if no input vtkPolyData specified.
|
virtual |
Set/get the function value to use if no input vtkPolyData specified.
|
virtual |
Set/get the function gradient to use if no input vtkPolyData specified.
|
virtual |
Set/get the function gradient to use if no input vtkPolyData specified.
|
virtual |
Set/get the function gradient to use if no input vtkPolyData specified.
|
virtual |
Set/get the function gradient to use if no input vtkPolyData specified.
|
virtual |
Set/get the function gradient to use if no input vtkPolyData specified.
|
virtual |
Set/get the tolerance usued for the locator.
|
virtual |
Set/get the tolerance usued for the locator.
|
protected |