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

Method InsertLine

Filters/Modeling/vtkBandedPolyDataContourFilter.cxx:270–282  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

268
269//------------------------------------------------------------------------------
270int vtkBandedPolyDataContourFilter::InsertLine(
271 vtkCellArray* cells, vtkIdType pt1, vtkIdType pt2, int cellId, double s, vtkFloatArray* newS)
272{
273 int idx = this->ComputeClippedIndex(s);
274 if (idx < 0)
275 {
276 return cellId;
277 }
278 cells->InsertNextCell(2);
279 cells->InsertCellPoint(pt1);
280 cells->InsertCellPoint(pt2);
281 return InsertNextScalar(newS, cellId, idx);
282}
283
284//------------------------------------------------------------------------------
285int vtkBandedPolyDataContourFilter::ComputeClippedIndex(double s)

Callers 1

RequestDataMethod · 0.95

Calls 3

ComputeClippedIndexMethod · 0.95
InsertCellPointMethod · 0.80
InsertNextCellMethod · 0.45

Tested by

no test coverage detected