|
VMTK
|
Apply LB weighting to the neighborhood connections of a surface. More...
#include <vtkvmtkPolyDataLaplaceBeltramiStencil.h>
Public Types | |
| typedef vtkvmtkPolyDataManifoldStencil | Superclass |
| Public Types inherited from vtkvmtkPolyDataManifoldStencil | |
| typedef vtkvmtkStencil | Superclass |
| Public Types inherited from vtkvmtkStencil | |
| typedef vtkvmtkNeighborhood | Superclass |
| Public Types inherited from vtkvmtkNeighborhood | |
| typedef vtkvmtkDataSetItem | Superclass |
| Public Types inherited from vtkvmtkDataSetItem | |
| typedef vtkvmtkItem | Superclass |
| Public Types inherited from vtkvmtkItem | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkvmtkPolyDataLaplaceBeltramiStencil * | NewInstance () const |
| void | Build () override |
| void | BuildBoundaryWeights (vtkIdType boundaryPointId, vtkIdType boundaryNeighborPointId, double &boundaryWeight, double &boundaryNeighborWeight) |
| Public Member Functions inherited from vtkvmtkPolyDataManifoldStencil | |
| vtkvmtkPolyDataManifoldStencil * | NewInstance () const |
| virtual double | GetArea () |
| virtual void | ComputeArea () |
| virtual void | ScaleWithArea ()=0 |
| void | DeepCopy (vtkvmtkPolyDataManifoldStencil *src) |
| virtual int | GetUseExtendedNeighborhood () |
| virtual void | SetUseExtendedNeighborhood (int) |
| virtual void | UseExtendedNeighborhoodOn () |
| virtual void | UseExtendedNeighborhoodOff () |
| Public Member Functions inherited from vtkvmtkStencil | |
| vtkvmtkStencil * | NewInstance () const |
| vtkIdType | GetNumberOfWeights () |
| void | ScaleWeights (double factor) |
| const double * | GetCenterWeightTuple () |
| virtual void | DeepCopy (vtkvmtkItem *src) override |
| virtual void | SetNumberOfComponents (vtkIdType) |
| virtual vtkIdType | GetNumberOfComponents () |
| double | GetWeight (vtkIdType i) |
| void | SetWeight (vtkIdType i, double weight) |
| double | GetWeight (vtkIdType i, vtkIdType component) |
| void | SetWeight (vtkIdType i, vtkIdType component, double weight) |
| double | GetCenterWeight () |
| void | SetCenterWeight (double weight) |
| double | GetCenterWeight (vtkIdType component) |
| void | SetCenterWeight (vtkIdType component, double weightComponent) |
| virtual void | SetWeightScaling (int) |
| virtual int | GetWeightScaling () |
| virtual void | WeightScalingOn () |
| virtual void | WeightScalingOff () |
| virtual void | SetNegateWeights (int) |
| virtual int | GetNegateWeights () |
| virtual void | NegateWeightsOn () |
| virtual void | NegateWeightsOff () |
| Public Member Functions inherited from vtkvmtkNeighborhood | |
| vtkvmtkNeighborhood * | NewInstance () const |
| virtual bool | GetIsBoundary () |
| vtkIdType | GetNumberOfPoints () |
| vtkIdType | GetPointId (vtkIdType i) |
| vtkIdType * | GetPointer (vtkIdType i) |
| Public Member Functions inherited from vtkvmtkDataSetItem | |
| vtkvmtkDataSetItem * | NewInstance () const |
| void | SetDataSet (vtkDataSet *dataSet) |
| vtkDataSet * | GetDataSet () |
| virtual void | SetDataSetPointId (vtkIdType) |
| virtual vtkIdType | GetDataSetPointId () |
| virtual void | SetReallocateOnBuild (int) |
| virtual int | GetReallocateOnBuild () |
| virtual void | ReallocateOnBuildOn () |
| virtual void | ReallocateOnBuildOff () |
| Public Member Functions inherited from vtkvmtkItem | |
| vtkvmtkItem * | NewInstance () const |
| virtual vtkIdType | GetItemType ()=0 |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataLaplaceBeltramiStencil * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkPolyDataManifoldStencil | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkPolyDataManifoldStencil * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkStencil | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkStencil * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkNeighborhood | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkNeighborhood * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkDataSetItem | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkDataSetItem * | SafeDownCast (vtkObjectBase *o) |
| Static Public Member Functions inherited from vtkvmtkItem | |
| static int | IsTypeOf (const char *type) |
| static vtkvmtkItem * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkvmtkPolyDataLaplaceBeltramiStencil () | |
| ~vtkvmtkPolyDataLaplaceBeltramiStencil () | |
| Protected Member Functions inherited from vtkvmtkPolyDataManifoldStencil | |
| vtkvmtkPolyDataManifoldStencil () | |
| ~vtkvmtkPolyDataManifoldStencil () | |
| void | ScaleWithAreaFactor (double factor) |
| Protected Member Functions inherited from vtkvmtkStencil | |
| vtkvmtkStencil () | |
| ~vtkvmtkStencil () | |
| void | ResizePointList (vtkIdType ptId, int size) |
| void | ChangeWeightSign () |
| Protected Member Functions inherited from vtkvmtkNeighborhood | |
| vtkvmtkNeighborhood () | |
| ~vtkvmtkNeighborhood () | |
| void | ResizePointList (vtkIdType ptId, int size) |
| Protected Member Functions inherited from vtkvmtkDataSetItem | |
| vtkvmtkDataSetItem () | |
| ~vtkvmtkDataSetItem () | |
| Protected Member Functions inherited from vtkvmtkItem | |
| vtkvmtkItem () | |
| ~vtkvmtkItem () | |
Additional Inherited Members | |
| Protected Attributes inherited from vtkvmtkPolyDataManifoldStencil | |
| double | Area |
| int | UseExtendedNeighborhood |
| Protected Attributes inherited from vtkvmtkStencil | |
| vtkIdType | NumberOfComponents |
| double * | Weights |
| double * | CenterWeight |
| int | WeightScaling |
| int | NegateWeights |
| Protected Attributes inherited from vtkvmtkNeighborhood | |
| vtkIdType | NPoints |
| vtkIdType * | PointIds |
| bool | IsBoundary |
| Protected Attributes inherited from vtkvmtkDataSetItem | |
| vtkDataSet * | DataSet |
| vtkIdType | DataSetPointId |
| int | ReallocateOnBuild |
Apply LB weighting to the neighborhood connections of a surface.
vtkvmtkPolyDataLaplaceBeltramiStencil builds, for each mesh point, the classic cotangent-weight discrete Laplace-Beltrami stencil over its one-ring neighborhood: for every edge of the ring, the cotangent of the angle opposite that edge (in each of the (up to) two triangles sharing it) is accumulated as the weight of the corresponding neighbor (see vtkvmtkMath::Cotangent), and the total is stored (with sign flipped) in CenterWeight after area-normalization (ComputeArea / ScaleWithArea, overridden by subclasses to select finite-element or finite-volume normalization). Special handling (BuildBoundaryWeights) is applied when the point lies on an open mesh boundary, where the missing outer triangle is approximated using the boundary edge geometry. This is the base class for vtkvmtkPolyDataFELaplaceBeltramiStencil and vtkvmtkPolyDataFVFELaplaceBeltramiStencil, which only differ in how the normalizing area is computed; it is used, e.g., by vtkvmtkPolyDataMeanCurvature to estimate mean curvature.
Definition at line 46 of file vtkvmtkPolyDataLaplaceBeltramiStencil.h.
Definition at line 50 of file vtkvmtkPolyDataLaplaceBeltramiStencil.h.
|
protected |
Definition at line 31 of file vtkvmtkPolyDataLaplaceBeltramiStencil.cxx.
|
inlineprotected |
Definition at line 66 of file vtkvmtkPolyDataLaplaceBeltramiStencil.h.
|
static |
|
virtual |
Reimplemented from vtkvmtkPolyDataManifoldStencil.
Reimplemented in vtkvmtkPolyDataFELaplaceBeltramiStencil, and vtkvmtkPolyDataFVFELaplaceBeltramiStencil.
|
static |
|
protectedvirtual |
Reimplemented from vtkvmtkPolyDataManifoldStencil.
Reimplemented in vtkvmtkPolyDataFELaplaceBeltramiStencil, and vtkvmtkPolyDataFVFELaplaceBeltramiStencil.
| vtkvmtkPolyDataLaplaceBeltramiStencil * vtkvmtkPolyDataLaplaceBeltramiStencil::NewInstance | ( | ) | const |
|
overridevirtual |
Build the stencil.
Reimplemented from vtkvmtkPolyDataManifoldStencil.
Definition at line 81 of file vtkvmtkPolyDataLaplaceBeltramiStencil.cxx.
| void vtkvmtkPolyDataLaplaceBeltramiStencil::BuildBoundaryWeights | ( | vtkIdType | boundaryPointId, |
| vtkIdType | boundaryNeighborPointId, | ||
| double & | boundaryWeight, | ||
| double & | boundaryNeighborWeight ) |
Compute the pair of cotangent-like weights contributed by the single triangle formed by the center point (DataSetPointId), boundaryPointId and boundaryNeighborPointId, used by Build() to approximate the missing second triangle at an open mesh boundary edge. boundaryWeight and boundaryNeighborWeight are output parameters, filled in with the weight to add to boundaryPointId and boundaryNeighborPointId respectively. No-op if the stencil's center point is not on a boundary (IsBoundary is false).
Definition at line 36 of file vtkvmtkPolyDataLaplaceBeltramiStencil.cxx.