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

Method ComputeClippedIndex

Filters/Modeling/vtkBandedPolyDataContourFilter.cxx:285–295  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

283
284//------------------------------------------------------------------------------
285int vtkBandedPolyDataContourFilter::ComputeClippedIndex(double s)
286{
287 int idx = this->Internal->ComputeClipIndex(s);
288
289 if (!this->Clipping ||
290 (idx >= this->Internal->ClipIndex[0] && idx < this->Internal->ClipIndex[1]))
291 {
292 return idx;
293 }
294 return -1;
295}
296
297//------------------------------------------------------------------------------
298int vtkBandedPolyDataContourFilter::InsertNextScalar(vtkFloatArray* scalars, int cellId, int idx)

Callers 2

InsertCellMethod · 0.95
InsertLineMethod · 0.95

Calls 1

ComputeClipIndexMethod · 0.80

Tested by

no test coverage detected