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

Method GetOutputPointId

Filters/Geometry/vtkDataSetSurfaceFilter.cxx:2717–2732  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2715
2716//------------------------------------------------------------------------------
2717vtkIdType vtkDataSetSurfaceFilter::GetOutputPointId(
2718 vtkIdType inPtId, vtkDataSet* input, vtkPoints* outPts, vtkPointData* outPD)
2719{
2720 vtkIdType outPtId;
2721
2722 outPtId = this->PointMap[inPtId];
2723 if (outPtId == -1)
2724 {
2725 outPtId = outPts->InsertNextPoint(input->GetPoint(inPtId));
2726 outPD->CopyData(input->GetPointData(), inPtId, outPtId);
2727 this->PointMap[inPtId] = outPtId;
2728 this->RecordOrigPointId(outPtId, inPtId);
2729 }
2730
2731 return outPtId;
2732}
2733
2734//------------------------------------------------------------------------------
2735vtkIdType vtkDataSetSurfaceFilter::GetOutputPointIdAndInterpolate(vtkIdType cellPtId,

Callers 2

Calls 5

RecordOrigPointIdMethod · 0.95
InsertNextPointMethod · 0.45
GetPointMethod · 0.45
CopyDataMethod · 0.45
GetPointDataMethod · 0.45

Tested by

no test coverage detected