|
VMTK
|
Apply a laplacian or curvature based smoothing filter to a surface with particular points fixed in place. More...
#include <vtkvmtkPolyDataClampedSmoothingFilter.h>
Public Types | |
| enum | { LAPLACIAN , CURVATURE_DIFFUSION } |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataClampedSmoothingFilter * | NewInstance () const |
| void | PrintSelf (std::ostream &os, vtkIndent indent) override |
| virtual void | SetSmoothingType (int) |
| virtual int | GetSmoothingType () |
| void | SetSmoothingTypeToLaplacian () |
| void | SetSmoothingTypeToCurvatureDiffusion () |
| virtual void | SetNumberOfIterations (int) |
| virtual int | GetNumberOfIterations () |
| virtual void | SetClamp (int) |
| virtual int | GetClamp () |
| virtual void | ClampOn () |
| virtual void | ClampOff () |
| virtual void | SetClampThreshold (double) |
| virtual double | GetClampThreshold () |
| virtual void | SetClampArrayName (const char *) |
| virtual char * | GetClampArrayName () |
| virtual void | SetTimeStepFactor (double) |
| virtual double | GetTimeStepFactor () |
Static Public Member Functions | |
| static vtkvmtkPolyDataClampedSmoothingFilter * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataClampedSmoothingFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataClampedSmoothingFilter () | |
| ~vtkvmtkPolyDataClampedSmoothingFilter () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
| void | LaplacianIteration (vtkPolyData *surface) |
| void | CurvatureDiffusionIteration (vtkPolyData *surface) |
| double | ComputeTimeStep (vtkPolyData *surface) |
Protected Attributes | |
| int | SmoothingType |
| int | NumberOfIterations |
| int | Clamp |
| double | ClampThreshold |
| double | TimeStepFactor |
| char * | ClampArrayName |
Apply a laplacian or curvature based smoothing filter to a surface with particular points fixed in place.
vtkvmtkPolyDataClampedSmoothingFilter iteratively displaces the points of an input triangulated surface, either along the discrete Laplacian (umbrella) direction (SmoothingType == LAPLACIAN) or along the surface normal scaled by the local mean curvature (SmoothingType == CURVATURE_DIFFUSION, using vtkCurvatures and vtkPolyDataNormals internally), for NumberOfIterations iterations. At each iteration the (explicit-Euler) time step is computed from the smallest triangle area in the mesh (see ComputeTimeStep) scaled by TimeStepFactor, so that the scheme stays stable. Points whose value in the point data array named ClampArrayName exceeds ClampThreshold are left untouched when Clamp is on, which lets the caller pin down selected regions (e.g. inlet/outlet rings) while the rest of the surface is smoothed; points found to be on a mesh boundary are always left untouched. This is a lower-level building block used where surface smoothing must not move certain fixed points, unlike filters that smooth the whole surface uniformly.
Definition at line 45 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
| typedef vtkPolyDataAlgorithm vtkvmtkPolyDataClampedSmoothingFilter::Superclass |
Definition at line 50 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
| anonymous enum |
| Enumerator | |
|---|---|
| LAPLACIAN | |
| CURVATURE_DIFFUSION | |
Definition at line 117 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
protected |
Definition at line 37 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
protected |
Definition at line 47 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyDataClampedSmoothingFilter * vtkvmtkPolyDataClampedSmoothingFilter::NewInstance | ( | ) | const |
|
override |
Definition at line 288 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
virtual |
Set/get the smoothing scheme applied at each iteration: LAPLACIAN (the default) displaces each free point towards the unweighted average of its one-ring neighbors; CURVATURE_DIFFUSION displaces each free point along its surface normal, driven by the local variation of the mean curvature (a curvature-diffusion / mean-curvature-flow-like scheme).
|
virtual |
Set/get the smoothing scheme applied at each iteration: LAPLACIAN (the default) displaces each free point towards the unweighted average of its one-ring neighbors; CURVATURE_DIFFUSION displaces each free point along its surface normal, driven by the local variation of the mean curvature (a curvature-diffusion / mean-curvature-flow-like scheme).
|
inline |
Set/get the smoothing scheme applied at each iteration: LAPLACIAN (the default) displaces each free point towards the unweighted average of its one-ring neighbors; CURVATURE_DIFFUSION displaces each free point along its surface normal, driven by the local variation of the mean curvature (a curvature-diffusion / mean-curvature-flow-like scheme).
Definition at line 62 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
inline |
Set/get the smoothing scheme applied at each iteration: LAPLACIAN (the default) displaces each free point towards the unweighted average of its one-ring neighbors; CURVATURE_DIFFUSION displaces each free point along its surface normal, driven by the local variation of the mean curvature (a curvature-diffusion / mean-curvature-flow-like scheme).
Definition at line 64 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
virtual |
Set/get the number of smoothing iterations to perform. Default: 100.
|
virtual |
Set/get the number of smoothing iterations to perform. Default: 100.
|
virtual |
Toggle whether points are clamped (excluded from smoothing) based on ClampArrayName / ClampThreshold. When off (default), every non-boundary point is free to move.
|
virtual |
Toggle whether points are clamped (excluded from smoothing) based on ClampArrayName / ClampThreshold. When off (default), every non-boundary point is free to move.
|
virtual |
Toggle whether points are clamped (excluded from smoothing) based on ClampArrayName / ClampThreshold. When off (default), every non-boundary point is free to move.
|
virtual |
Toggle whether points are clamped (excluded from smoothing) based on ClampArrayName / ClampThreshold. When off (default), every non-boundary point is free to move.
|
virtual |
Set/get the threshold applied to the ClampArrayName point data array: points whose value in that array is greater than ClampThreshold are held fixed when Clamp is on. Default: 0.0.
|
virtual |
Set/get the threshold applied to the ClampArrayName point data array: points whose value in that array is greater than ClampThreshold are held fixed when Clamp is on. Default: 0.0.
|
virtual |
Set/get the name of the point data scalar array read to decide, together with ClampThreshold, which points are held fixed while Clamp is on. Required (and must exist on the input) whenever Clamp is on. Default: NULL.
|
virtual |
Set/get the name of the point data scalar array read to decide, together with ClampThreshold, which points are held fixed while Clamp is on. Required (and must exist on the input) whenever Clamp is on. Default: NULL.
|
virtual |
Set/get the factor multiplying the per-iteration time step (itself derived from the smallest triangle area in the mesh, see ComputeTimeStep) used to advance point positions. Larger values smooth faster but risk instability/mesh folding; smaller values are safer but slower. Default: 1E-1.
|
virtual |
Set/get the factor multiplying the per-iteration time step (itself derived from the smallest triangle area in the mesh, see ComputeTimeStep) used to advance point positions. Larger values smooth faster but risk instability/mesh folding; smaller values are safer but slower. Default: 1E-1.
|
overrideprotectedvirtual |
Definition at line 233 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
protected |
Definition at line 88 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
protected |
Definition at line 151 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
protected |
Definition at line 56 of file vtkvmtkPolyDataClampedSmoothingFilter.cxx.
|
protected |
Definition at line 132 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
protected |
Definition at line 133 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
protected |
Definition at line 134 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
protected |
Definition at line 135 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
protected |
Definition at line 136 of file vtkvmtkPolyDataClampedSmoothingFilter.h.
|
protected |
Definition at line 138 of file vtkvmtkPolyDataClampedSmoothingFilter.h.