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

Method Clip

Common/DataModel/vtkHigherOrderCurve.cxx:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void vtkHigherOrderCurve::Clip(double value, vtkDataArray* cellScalars,
162 vtkIncrementalPointLocator* locator, vtkCellArray* polys, vtkPointData* inPd, vtkPointData* outPd,
163 vtkCellData* inCd, vtkIdType cellId, vtkCellData* outCd, int insideOut)
164{
165 this->PrepareApproxData(
166 inPd, inCd, cellId, cellScalars); // writes to this->{CellScalars, ApproxPD, ApproxCD}
167 vtkIdType nseg = vtkHigherOrderInterpolation::NumberOfIntervals<1>(this->GetOrder());
168 for (int i = 0; i < nseg; ++i)
169 {
170 vtkLine* approx =
171 this->GetApproximateLine(i, this->CellScalars.GetPointer(), this->Scalars.GetPointer());
172 approx->Clip(value, this->Scalars.GetPointer(), locator, polys, this->ApproxPD, outPd,
173 this->ApproxCD, cellId, outCd, insideOut);
174 }
175}
176
177int vtkHigherOrderCurve::IntersectWithLine(
178 const double* p1, const double* p2, double tol, double& t, double* x, double* pcoords, int& subId)

Callers

nothing calls this directly

Calls 4

PrepareApproxDataMethod · 0.95
GetOrderMethod · 0.95
GetApproximateLineMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected