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

Method GetOutputPointIdAndInterpolate

Filters/Geometry/vtkDataSetSurfaceFilter.cxx:2735–2753  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2733
2734//------------------------------------------------------------------------------
2735vtkIdType vtkDataSetSurfaceFilter::GetOutputPointIdAndInterpolate(vtkIdType cellPtId,
2736 vtkDataSet* input, vtkCell* cell, double* pc, double* weights, vtkPoints* outPts,
2737 vtkPointData* outPD)
2738{
2739 vtkIdType outPtId;
2740 vtkIdType inPtId = cell->GetPointId(cellPtId);
2741 outPtId = this->PointMap[inPtId];
2742 if (outPtId == -1)
2743 {
2744 int subId = -1;
2745 double wcoords[3];
2746 cell->EvaluateLocation(subId, pc + 3 * cellPtId, wcoords, weights);
2747 outPtId = outPts->InsertNextPoint(wcoords);
2748 outPD->InterpolatePoint(input->GetPointData(), outPtId, cell->GetPointIds(), weights);
2749 this->PointMap[inPtId] = outPtId;
2750 this->RecordOrigPointId(outPtId, inPtId);
2751 }
2752 return outPtId;
2753}
2754
2755//------------------------------------------------------------------------------
2756vtkIdType vtkDataSetSurfaceFilter::GetInterpolatedPointId(vtkIdType edgePtA, vtkIdType edgePtB,

Callers 1

Calls 7

RecordOrigPointIdMethod · 0.95
GetPointIdMethod · 0.45
EvaluateLocationMethod · 0.45
InsertNextPointMethod · 0.45
InterpolatePointMethod · 0.45
GetPointDataMethod · 0.45
GetPointIdsMethod · 0.45

Tested by

no test coverage detected