VMTK
Loading...
Searching...
No Matches
DifferentialGeometry
vtkvmtkPolyDataUmbrellaStencil.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: VMTK
4
Module: $RCSfile: vtkvmtkPolyDataUmbrellaStencil.cxx,v $
5
Language: C++
6
Date: $Date: 2005/11/15 17:39:25 $
7
Version: $Revision: 1.4 $
8
9
Copyright (c) Luca Antiga, David Steinman. All rights reserved.
10
See LICENSE file for details.
11
12
Portions of this code are covered under the VTK copyright.
13
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
14
for details.
15
16
This software is distributed WITHOUT ANY WARRANTY; without even
17
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18
PURPOSE. See the above copyright notices for more information.
19
20
=========================================================================*/
21
22
#include "
vtkvmtkPolyDataUmbrellaStencil.h
"
23
#include "vtkObjectFactory.h"
24
25
26
vtkStandardNewMacro
(
vtkvmtkPolyDataUmbrellaStencil
);
27
28
vtkvmtkPolyDataUmbrellaStencil::vtkvmtkPolyDataUmbrellaStencil
()
29
{
30
this->
UseExtendedNeighborhood
= 0;
31
}
32
33
void
vtkvmtkPolyDataUmbrellaStencil::Build
()
34
{
35
this->
Superclass::Build
();
36
37
this->
Area
= 1.0;
38
for
(vtkIdType i=0; i<this->
NPoints
; i++)
39
{
40
this->
Weights
[i] = 1.0/double(this->NPoints);
41
}
42
this->
CenterWeight
[0] = 1.0;
43
this->
ChangeWeightSign
();
44
}
45
vtkvmtkNeighborhood::NPoints
vtkIdType NPoints
Definition
vtkvmtkNeighborhood.h:89
vtkvmtkPolyDataManifoldStencil::Build
virtual void Build() override
Definition
vtkvmtkPolyDataManifoldStencil.cxx:90
vtkvmtkPolyDataManifoldStencil::Area
double Area
Definition
vtkvmtkPolyDataManifoldStencil.h:99
vtkvmtkPolyDataManifoldStencil::UseExtendedNeighborhood
int UseExtendedNeighborhood
Definition
vtkvmtkPolyDataManifoldStencil.h:101
vtkvmtkPolyDataUmbrellaStencil
Implements a uniform (unweighted) Laplacian stencil for the one-ring neighborhood of a surface mesh....
Definition
vtkvmtkPolyDataUmbrellaStencil.h:43
vtkvmtkPolyDataUmbrellaStencil::vtkvmtkPolyDataUmbrellaStencil
vtkvmtkPolyDataUmbrellaStencil()
Definition
vtkvmtkPolyDataUmbrellaStencil.cxx:28
vtkvmtkPolyDataUmbrellaStencil::Build
void Build() override
Definition
vtkvmtkPolyDataUmbrellaStencil.cxx:33
vtkvmtkStencil::Weights
double * Weights
Definition
vtkvmtkStencil.h:158
vtkvmtkStencil::CenterWeight
double * CenterWeight
Definition
vtkvmtkStencil.h:159
vtkvmtkStencil::ChangeWeightSign
void ChangeWeightSign()
Definition
vtkvmtkStencil.cxx:53
vtkStandardNewMacro
vtkStandardNewMacro(vtkvmtkPolyDataUmbrellaStencil)
vtkvmtkPolyDataUmbrellaStencil.h
Generated by
1.15.0