VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkImplicitPolyDataDistance Class Reference

#include <vtkImplicitPolyDataDistance.h>

Inheritance diagram for vtkImplicitPolyDataDistance:
Inheritance graph
[legend]
Collaboration diagram for vtkImplicitPolyDataDistance:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImplicitFunction Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImplicitPolyDataDistanceNewInstance () 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 doubleGetNoGradient ()
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 vtkObjectBaseNewInstanceInternal () const
 vtkImplicitPolyDataDistance ()
 ~vtkImplicitPolyDataDistance ()
double SharedEvaluate (double x[3], double n[3])

Detailed Description

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

Tests:
vtkImplicitPolyDataDistance (Tests)

Definition at line 50 of file vtkImplicitPolyDataDistance.h.


Member Typedef Documentation

Reimplemented from vtkImplicitFunction.

Definition at line 54 of file vtkImplicitPolyDataDistance.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkImplicitPolyDataDistance::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImplicitFunction.

virtual int vtkImplicitPolyDataDistance::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImplicitFunction.

Reimplemented from vtkImplicitFunction.

virtual vtkObjectBase* vtkImplicitPolyDataDistance::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImplicitFunction.

Reimplemented from vtkImplicitFunction.

void vtkImplicitPolyDataDistance::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImplicitFunction.

unsigned long vtkImplicitPolyDataDistance::GetMTime ( ) [virtual]

Return the MTime also considering the Input dependency.

Reimplemented from vtkImplicitFunction.

Evaluate plane equation of nearest triangle to point x[3].

Implements vtkImplicitFunction.

void vtkImplicitPolyDataDistance::EvaluateGradient ( double  x[3],
double  g[3] 
) [virtual]

Evaluate function gradient of nearest triangle to point x[3].

Implements vtkImplicitFunction.

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 void vtkImplicitPolyDataDistance::SetNoValue ( double  ) [virtual]

Set/get the function value to use if no input vtkPolyData specified.

Set/get the function value to use if no input vtkPolyData specified.

virtual void vtkImplicitPolyDataDistance::SetNoGradient ( double  ,
double  ,
double   
) [virtual]

Set/get the function gradient to use if no input vtkPolyData specified.

virtual void vtkImplicitPolyDataDistance::SetNoGradient ( double  [3]) [virtual]

Set/get the function gradient to use if no input vtkPolyData specified.

Set/get the function gradient to use if no input vtkPolyData specified.

virtual void vtkImplicitPolyDataDistance::GetNoGradient ( double ,
double ,
double  
) [virtual]

Set/get the function gradient to use if no input vtkPolyData specified.

virtual void vtkImplicitPolyDataDistance::GetNoGradient ( double  [3]) [virtual]

Set/get the function gradient to use if no input vtkPolyData specified.

Set/get the tolerance usued for the locator.

virtual void vtkImplicitPolyDataDistance::SetTolerance ( double  ) [virtual]

Set/get the tolerance usued for the locator.


The documentation for this class was generated from the following file: