|
VMTK
|
Displace points of a surface with an iterative algorithm based on stencil weighting. More...
#include <vtkvmtkPolyDataStencilFlowFilter.h>
Public Types | |
| typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataStencilFlowFilter * | NewInstance () const |
| void | SetStencilTypeToUmbrellaStencil () |
| void | SetStencilTypeToAreaWeightedUmbrellaStencil () |
| void | SetStencilTypeToFELaplaceBeltramiStencil () |
| void | SetStencilTypeToFVFELaplaceBeltramiStencil () |
| virtual void | SetStencilType (int) |
| virtual int | GetStencilType () |
| virtual void | SetNumberOfIterations (int) |
| virtual int | GetNumberOfIterations () |
| virtual void | SetRelaxationFactor (double) |
| virtual double | GetRelaxationFactor () |
| virtual void | SetProcessBoundary (int) |
| virtual int | GetProcessBoundary () |
| virtual void | ProcessBoundaryOn () |
| virtual void | ProcessBoundaryOff () |
| virtual void | SetConstrainOnSurface (int) |
| virtual int | GetConstrainOnSurface () |
| virtual void | ConstrainOnSurfaceOn () |
| virtual void | ConstrainOnSurfaceOff () |
| virtual void | SetMaximumDisplacement (double) |
| virtual double | GetMaximumDisplacement () |
Static Public Member Functions | |
| static vtkvmtkPolyDataStencilFlowFilter * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataStencilFlowFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataStencilFlowFilter () | |
| ~vtkvmtkPolyDataStencilFlowFilter () | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override |
| void | ReleaseStencils () |
Protected Attributes | |
| int | StencilType |
| vtkvmtkStencils * | Stencils |
| int | NumberOfIterations |
| double | RelaxationFactor |
| double | MaximumDisplacement |
| int | ProcessBoundary |
| int | ConstrainOnSurface |
Displace points of a surface with an iterative algorithm based on stencil weighting.
vtkvmtkPolyDataStencilFlowFilter repeatedly rebuilds, at every point of the input surface, a local stencil (see StencilType) that expresses each point's position as a weighted combination of its neighbors, and moves the point towards that weighted average, scaled by RelaxationFactor, for NumberOfIterations iterations. Depending on the chosen stencil this implements Laplacian ("umbrella") smoothing, area-weighted smoothing, or finite-element/ finite-volume Laplace-Beltrami flows. Displacement per iteration can be capped (MaximumDisplacement), boundary points can be left untouched or processed (ProcessBoundary), and the moved points can optionally be reprojected onto the original surface (ConstrainOnSurface) to keep the flow tangential rather than deforming the shape. This underlies mesh-relaxation / smoothing steps used internally by higher-level vmtk surface processing (no direct pype script wraps it).
Definition at line 47 of file vtkvmtkPolyDataStencilFlowFilter.h.
| typedef vtkPolyDataAlgorithm vtkvmtkPolyDataStencilFlowFilter::Superclass |
Definition at line 51 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 40 of file vtkvmtkPolyDataStencilFlowFilter.cxx.
|
protected |
Definition at line 52 of file vtkvmtkPolyDataStencilFlowFilter.cxx.
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkvmtkPolyDataStencilFlowFilter * vtkvmtkPolyDataStencilFlowFilter::NewInstance | ( | ) | const |
|
virtual |
Set/get the type of stencil used to compute, at each point, the weighted neighbor combination that drives the point displacement. One of the VTK_VMTK_*_STENCIL constants (see vtkvmtkConstants.h); convenience setters SetStencilTypeToUmbrellaStencil(), SetStencilTypeToAreaWeightedUmbrellaStencil(), SetStencilTypeToFELaplaceBeltramiStencil() and SetStencilTypeToFVFELaplaceBeltramiStencil() are provided. Default: VTK_VMTK_UMBRELLA_STENCIL.
|
virtual |
Set/get the type of stencil used to compute, at each point, the weighted neighbor combination that drives the point displacement. One of the VTK_VMTK_*_STENCIL constants (see vtkvmtkConstants.h); convenience setters SetStencilTypeToUmbrellaStencil(), SetStencilTypeToAreaWeightedUmbrellaStencil(), SetStencilTypeToFELaplaceBeltramiStencil() and SetStencilTypeToFVFELaplaceBeltramiStencil() are provided. Default: VTK_VMTK_UMBRELLA_STENCIL.
|
inline |
Definition at line 64 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
inline |
Definition at line 66 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
inline |
Definition at line 68 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
inline |
Definition at line 70 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
virtual |
Set/get the number of relaxation iterations applied. At each iteration the stencil is rebuilt on the current (already displaced) point positions. Default: 100.
|
virtual |
Set/get the number of relaxation iterations applied. At each iteration the stencil is rebuilt on the current (already displaced) point positions. Default: 100.
|
virtual |
Set/get the fraction of the stencil-weighted displacement applied to each point at every iteration; smaller values relax more gently and are more stable but converge more slowly. Default: 0.1.
|
virtual |
Set/get the fraction of the stencil-weighted displacement applied to each point at every iteration; smaller values relax more gently and are more stable but converge more slowly. Default: 0.1.
|
virtual |
Toggle whether points lying on a boundary of the surface are displaced. When off (default), boundary points are left untouched so the outline of the surface is preserved; when on, they are moved like any other point using their (open) stencil.
|
virtual |
Toggle whether points lying on a boundary of the surface are displaced. When off (default), boundary points are left untouched so the outline of the surface is preserved; when on, they are moved like any other point using their (open) stencil.
|
virtual |
Toggle whether points lying on a boundary of the surface are displaced. When off (default), boundary points are left untouched so the outline of the surface is preserved; when on, they are moved like any other point using their (open) stencil.
|
virtual |
Toggle whether points lying on a boundary of the surface are displaced. When off (default), boundary points are left untouched so the outline of the surface is preserved; when on, they are moved like any other point using their (open) stencil.
|
virtual |
Toggle projection of each displaced point back onto the closest point of the original input surface (using a cell locator), so that the flow moves points tangentially along the surface rather than deforming its shape. Default: off.
|
virtual |
Toggle projection of each displaced point back onto the closest point of the original input surface (using a cell locator), so that the flow moves points tangentially along the surface rather than deforming its shape. Default: off.
|
virtual |
Toggle projection of each displaced point back onto the closest point of the original input surface (using a cell locator), so that the flow moves points tangentially along the surface rather than deforming its shape. Default: off.
|
virtual |
Toggle projection of each displaced point back onto the closest point of the original input surface (using a cell locator), so that the flow moves points tangentially along the surface rather than deforming its shape. Default: off.
|
virtual |
Set/get the maximum length of the per-iteration displacement vector applied to any point; larger displacements are clamped (direction preserved, magnitude capped) before being applied. Default: VTK_VMTK_LARGE_DOUBLE (effectively unbounded).
|
virtual |
Set/get the maximum length of the per-iteration displacement vector applied to any point; larger displacements are clamped (direction preserved, magnitude capped) before being applied. Default: VTK_VMTK_LARGE_DOUBLE (effectively unbounded).
|
overrideprotectedvirtual |
Definition at line 66 of file vtkvmtkPolyDataStencilFlowFilter.cxx.
|
protected |
Definition at line 57 of file vtkvmtkPolyDataStencilFlowFilter.cxx.
|
protected |
Definition at line 132 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 133 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 135 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 136 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 138 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 140 of file vtkvmtkPolyDataStencilFlowFilter.h.
|
protected |
Definition at line 141 of file vtkvmtkPolyDataStencilFlowFilter.h.