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

Method Reseed

Filters/ParallelFlowPaths/vtkPStreamTracer.cxx:228–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 vtkSetMacro(IntegrationTime, double);
227
228 void Reseed(double* seed, double* normal, vtkPolyData* poly, int id, double propagation,
229 double integrationTime)
230 {
231 memcpy(this->Seed, seed, 3 * sizeof(double));
232 memcpy(this->Normal, normal, 3 * sizeof(double));
233
234 this->AllocateTail(poly->GetPointData());
235 double x[3];
236 poly->GetPoints()->GetPoint(id, x);
237 this->Tail->GetPoints()->SetPoint(0, x);
238 this->Tail->GetPointData()->CopyData(poly->GetPointData(), id, 0);
239 this->Rank = -1; // someone else figure this out
240 this->IntegrationTime = integrationTime;
241 this->Propagation = propagation;
242 }
243
244 vtkPolyData* GetTail() { return this->Tail; }
245

Callers 1

TraceOneStepMethod · 0.80

Calls 6

AllocateTailMethod · 0.95
GetPointDataMethod · 0.45
GetPointMethod · 0.45
GetPointsMethod · 0.45
SetPointMethod · 0.45
CopyDataMethod · 0.45

Tested by

no test coverage detected