MCPcopy Create free account
hub / github.com/Kitware/VTK / GetInterpolatedPointId

Method GetInterpolatedPointId

Filters/Geometry/vtkDataSetSurfaceFilter.cxx:2756–2772  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2754
2755//------------------------------------------------------------------------------
2756vtkIdType vtkDataSetSurfaceFilter::GetInterpolatedPointId(vtkIdType edgePtA, vtkIdType edgePtB,
2757 vtkDataSet* input, vtkCell* cell, double* pcoords, double* weights, vtkPoints* outPts,
2758 vtkPointData* outPD)
2759{
2760 vtkIdType outPtId = this->EdgeMap->FindEdge(edgePtA, edgePtB);
2761 if (outPtId == -1)
2762 {
2763 int subId = -1;
2764 double wcoords[3];
2765 cell->EvaluateLocation(subId, pcoords, wcoords, weights);
2766 outPtId = outPts->InsertNextPoint(wcoords);
2767 outPD->InterpolatePoint(input->GetPointData(), outPtId, cell->GetPointIds(), weights);
2768 this->RecordOrigPointId(outPtId, -1);
2769 this->EdgeMap->AddEdge(edgePtA, edgePtB, outPtId);
2770 }
2771 return outPtId;
2772}
2773
2774vtkIdType vtkDataSetSurfaceFilter::GetInterpolatedPointId(vtkDataSet* input, vtkCell* cell,
2775 double pcoords[3], double* weights, vtkPoints* outPts, vtkPointData* outPD)

Callers 1

Calls 8

RecordOrigPointIdMethod · 0.95
FindEdgeMethod · 0.45
EvaluateLocationMethod · 0.45
InsertNextPointMethod · 0.45
InterpolatePointMethod · 0.45
GetPointDataMethod · 0.45
GetPointIdsMethod · 0.45
AddEdgeMethod · 0.45

Tested by

no test coverage detected