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

Method InsertPathOutputPoint

Filters/FlowPaths/vtkLagrangianParticleTracker.cxx:1196–1213  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1194
1195//------------------------------------------------------------------------------
1196void vtkLagrangianParticleTracker::InsertPathOutputPoint(vtkLagrangianParticle* particle,
1197 vtkPolyData* particlePathsOutput, vtkIdList* particlePathPointId, bool prev)
1198{
1199 // Recover structures
1200 vtkPoints* particlePathsPoints = particlePathsOutput->GetPoints();
1201 vtkPointData* particlePathsPointData = particlePathsOutput->GetPointData();
1202
1203 // Store previous position
1204 vtkIdType pointId = particlePathsPoints->InsertNextPoint(
1205 prev ? particle->GetPrevPosition() : particle->GetPosition());
1206
1207 particlePathPointId->InsertNextId(pointId);
1208
1209 // Insert particle data
1210 this->IntegrationModel->InsertParticleData(particle, particlePathsPointData,
1211 prev ? vtkLagrangianBasicIntegrationModel::VARIABLE_STEP_PREV
1212 : vtkLagrangianBasicIntegrationModel::VARIABLE_STEP_CURRENT);
1213}
1214
1215//------------------------------------------------------------------------------
1216void vtkLagrangianParticleTracker::InsertInteractionOutputPoint(vtkLagrangianParticle* particle,

Callers 2

IntegrateMethod · 0.95
IntegrateMethod · 0.80

Calls 6

InsertNextIdMethod · 0.80
InsertParticleDataMethod · 0.80
GetPointsMethod · 0.45
GetPointDataMethod · 0.45
InsertNextPointMethod · 0.45
GetPositionMethod · 0.45

Tested by

no test coverage detected