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

Method Clip

Common/DataModel/vtkHigherOrderWedge.cxx:449–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void vtkHigherOrderWedge::Clip(double value, vtkDataArray* cellScalars,
450 vtkIncrementalPointLocator* locator, vtkCellArray* polys, vtkPointData* inPd, vtkPointData* outPd,
451 vtkCellData* inCd, vtkIdType cellId, vtkCellData* outCd, int insideOut)
452{
453 this->PrepareApproxData(
454 inPd, inCd, cellId, cellScalars); // writes to this->{CellScalars, ApproxPD, ApproxCD}
455 vtkIdType nwedge = this->GetNumberOfApproximatingWedges();
456 for (int i = 0; i < nwedge; ++i)
457 {
458 vtkWedge* approx =
459 this->GetApproximateWedge(i, this->CellScalars.GetPointer(), this->Scalars.GetPointer());
460 approx->Clip(value, this->Scalars.GetPointer(), locator, polys, this->ApproxPD, outPd,
461 this->ApproxCD, cellId, outCd, insideOut);
462 }
463}
464
465int vtkHigherOrderWedge::IntersectWithLine(
466 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
GetApproximateWedgeMethod · 0.95
GetPointerMethod · 0.45

Tested by

no test coverage detected