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

Method SampleLineUniformly

Filters/ParallelDIY2/vtkProbeLineFilter.cxx:1021–1048  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1019
1020//-----------------------------------------------------------------------------
1021vtkSmartPointer<vtkPolyData> vtkProbeLineFilter::SampleLineUniformly(
1022 const vtkVector3d& p1, const vtkVector3d& p2, vtkDataObject* input, double tolerance) const
1023{
1024 vtkNew<vtkLineSource> lineSource;
1025 lineSource->SetPoint1(p1.GetData());
1026 lineSource->SetPoint2(p2.GetData());
1027 lineSource->SetResolution(this->LineResolution);
1028 lineSource->Update();
1029
1030 vtkNew<vtkPProbeFilter> prober;
1031 prober->SetController(this->Controller);
1032 prober->SetPassPartialArrays(this->PassPartialArrays);
1033 prober->SetPassCellArrays(this->PassCellArrays);
1034 prober->SetPassPointArrays(this->PassPointArrays);
1035 prober->SetPassFieldArrays(this->PassFieldArrays);
1036 prober->SetComputeTolerance(this->ComputeTolerance);
1037 prober->SetTolerance(tolerance);
1038 prober->SetFindCellStrategyMap(this->Internal->Strategies);
1039 prober->SetInputData(lineSource->GetOutput());
1040 prober->SetSourceData(input);
1041 prober->Update();
1042
1043 vtkNew<vtkAppendArcLength> arcs;
1044 arcs->SetInputConnection(prober->GetOutputPort());
1045 arcs->Update();
1046
1047 return arcs->GetOutput();
1048}
1049
1050//------------------------------------------------------------------------------
1051vtkSmartPointer<vtkPolyData> vtkProbeLineFilter::SampleLineAtEachCell(

Callers 1

Calls 15

SetPassPartialArraysMethod · 0.80
SetPassCellArraysMethod · 0.80
SetPassPointArraysMethod · 0.80
SetPassFieldArraysMethod · 0.80
SetComputeToleranceMethod · 0.80
SetPoint1Method · 0.45
GetDataMethod · 0.45
SetPoint2Method · 0.45
SetResolutionMethod · 0.45
UpdateMethod · 0.45
SetControllerMethod · 0.45

Tested by

no test coverage detected