26#include "vtkObjectFactory.h"
43 double point[3], point1[3], point2[3];
44 vtkIdType j, numberOfTriangles;
48 vtkErrorMacro(<<
"No DataSet specified.");
57 numberOfTriangles = this->
NPoints;
61 numberOfTriangles = this->
NPoints-1;
64 for (j=0; j<numberOfTriangles; j++)
83 scale = 1.0 / (this->
Area * factor);
110 manifoldNeighborhood->
Build();
119 memcpy(this->
PointIds,manifoldNeighborhood->
GetPointer(0),this->NPoints*
sizeof(vtkIdType));
139 manifoldNeighborhood->Delete();
virtual void SetDataSetPointId(vtkIdType)
void SetDataSet(vtkDataSet *dataSet)
static double TriangleArea(double point0[3], double point1[3], double point2[3])
vtkIdType * GetPointer(vtkIdType i)
virtual bool GetIsBoundary()
vtkIdType GetNumberOfPoints()
static vtkvmtkPolyDataManifoldExtendedNeighborhood * New()
Apply a neighborhood to the points of a manifold surface.
virtual void Build() override
static vtkvmtkPolyDataManifoldNeighborhood * New()
vtkvmtkPolyDataManifoldStencil()
void DeepCopy(vtkvmtkPolyDataManifoldStencil *src)
virtual void ComputeArea()
virtual void Build() override
void ScaleWithAreaFactor(double factor)
int UseExtendedNeighborhood
virtual void DeepCopy(vtkvmtkItem *src) override
vtkIdType NumberOfComponents
void ScaleWeights(double factor)
#define VTK_VMTK_DOUBLE_TOL
#define VTK_VMTK_LARGE_DOUBLE