|
VMTK
|
Implements vtkImplicitFunction to evaluate the minimum sphere function from a collection of points with attached sphere radii as point data. More...
#include <vtkvmtkPolyBall.h>
Public Types | |
| typedef vtkImplicitFunction | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyBall * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| void | EvaluateGradient (double x[3], double n[3]) override |
| double | EvaluateFunction (double x[3]) override |
| double | EvaluateFunction (double x, double y, double z) override |
| virtual void | SetInput (vtkPolyData *) |
| virtual vtkPolyData * | GetInput () |
| void | SetInputData (vtkPolyData *input) |
| vtkPolyData * | GetInputData () |
| virtual void | SetPolyBallRadiusArrayName (const char *) |
| virtual char * | GetPolyBallRadiusArrayName () |
| virtual vtkIdType | GetLastPolyBallCenterId () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyBall * | SafeDownCast (vtkObjectBase *o) |
| static vtkvmtkPolyBall * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyBall () | |
| ~vtkvmtkPolyBall () | |
Protected Attributes | |
| vtkPolyData * | Input |
| char * | PolyBallRadiusArrayName |
| vtkIdType | LastPolyBallCenterId |
Implements vtkImplicitFunction to evaluate the minimum sphere function from a collection of points with attached sphere radii as point data.
Implicit functions are real valued functions defined in 3D space, w = F(x,y,z). Two primitive operations are required: the ability to evaluate the function, and the function gradient at a given point. The implicit function divides space into three regions: on the surface (F(x,y,z)=w), outside of the surface (F(x,y,z)>c), and inside the surface (F(x,y,z)<c). (When c is zero, positive values are outside, negative values are inside, and zero is on the surface. Note also that the function gradient points from inside to outside.)
A polyball is just an implicit function which takes a data set containing a bunch of points in R^3 with sphere radii defined on top of them and evaluates the minimum sphere function across the entire collection for a particular point. The sphere function is zero at the sphere surface, negative inside the sphere, and positive outside the sphere. This is implemented as a brute force calculation; in order to find the minimum sphere function across the collection, the sphere function is evaluated at the query point for every point in the input data set.
Definition at line 35 of file vtkvmtkPolyBall.h.
| typedef vtkImplicitFunction vtkvmtkPolyBall::Superclass |
Definition at line 38 of file vtkvmtkPolyBall.h.
|
protected |
Definition at line 29 of file vtkvmtkPolyBall.cxx.
|
protected |
Definition at line 36 of file vtkvmtkPolyBall.cxx.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyBall * vtkvmtkPolyBall::NewInstance | ( | ) | const |
|
override |
Definition at line 113 of file vtkvmtkPolyBall.cxx.
|
static |
|
override |
Evaluate polyball.
Definition at line 51 of file vtkvmtkPolyBall.cxx.
|
inlineoverride |
Evaluate polyball.
Definition at line 48 of file vtkvmtkPolyBall.h.
|
override |
Evaluate polyball gradient.
Definition at line 103 of file vtkvmtkPolyBall.cxx.
|
virtual |
Set / get input poly data.
|
virtual |
Set / get input poly data.
|
inline |
Set / get input poly data.
Definition at line 63 of file vtkvmtkPolyBall.h.
|
inline |
Set / get input poly data.
Definition at line 64 of file vtkvmtkPolyBall.h.
|
virtual |
Set / get poly ball radius array name. Commonly named "MaximumInscribedSphereRadius".
|
virtual |
Set / get poly ball radius array name. Commonly named "MaximumInscribedSphereRadius".
|
virtual |
Get the id of the last nearest poly ball center.
|
protected |
Definition at line 87 of file vtkvmtkPolyBall.h.
|
protected |
Definition at line 88 of file vtkvmtkPolyBall.h.
|
protected |
Definition at line 89 of file vtkvmtkPolyBall.h.