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

Method Clip

Common/DataModel/vtkHigherOrderQuadrilateral.cxx:223–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void vtkHigherOrderQuadrilateral::Clip(double value, vtkDataArray* cellScalars,
224 vtkIncrementalPointLocator* locator, vtkCellArray* polys, vtkPointData* inPd, vtkPointData* outPd,
225 vtkCellData* inCd, vtkIdType cellId, vtkCellData* outCd, int insideOut)
226{
227 this->PrepareApproxData(
228 inPd, inCd, cellId, cellScalars); // writes to this->{CellScalars, ApproxPD, ApproxCD}
229 vtkIdType nquad = vtkHigherOrderInterpolation::NumberOfIntervals<2>(this->GetOrder());
230 for (int i = 0; i < nquad; ++i)
231 {
232 vtkQuad* approx =
233 this->GetApproximateQuad(i, this->CellScalars.GetPointer(), this->Scalars.GetPointer());
234 approx->Clip(value, this->Scalars.GetPointer(), locator, polys, this->ApproxPD, outPd,
235 this->ApproxCD, cellId, outCd, insideOut);
236 }
237}
238
239int vtkHigherOrderQuadrilateral::IntersectWithLine(
240 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
GetApproximateQuadMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected