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

Method InterpolateEdge

Filters/General/vtkBoxClipDataSet.cxx:661–676  ·  view source on GitHub ↗

------------------------------------------------------------------------------ InterpolateEdge: Interpolate the data in a vtkDataSetAttributes along a line This method works very much like vtkDataSetAttributes::InterpolateEdge except that rather than take the interpolation information from an input and copy it to an output, the values to interpolate are already placed in the output arrays. This

Source from the content-addressed store, hash-verified

659// will continually cut (and consequently interpolate) the input until it
660// fits within the bounds.
661void vtkBoxClipDataSet::InterpolateEdge(
662 vtkDataSetAttributes* attributes, vtkIdType toId, vtkIdType fromId1, vtkIdType fromId2, double t)
663{
664 int numArrays = attributes->GetNumberOfArrays();
665 for (int i = 0; i < numArrays; i++)
666 {
667 vtkAbstractArray* array = attributes->GetAbstractArray(i);
668
669 // We are ignoring any special interpolate flags (such as nearest neighbor
670 // interpolation). That kind of interpolation is not linear and could be
671 // incorrect when multiple cuts are performed on the same primitive (which
672 // can happen).
673
674 array->InterpolateTuple(toId, fromId1, array, fromId2, array, t);
675 }
676}
677
678//------------------------------------------------------------------------------
679// CellGrid: Subdivide cells in consistent tetrahedra.

Callers 15

ClipBoxMethod · 0.95
ClipHexahedronMethod · 0.95
ClipBoxInOutMethod · 0.95
ClipHexahedronInOutMethod · 0.95
ClipBox2DMethod · 0.95
ClipBoxInOut2DMethod · 0.95
ClipHexahedron2DMethod · 0.95
ClipHexahedronInOut2DMethod · 0.95
ClipBox1DMethod · 0.95
ClipBoxInOut1DMethod · 0.95
ClipHexahedron1DMethod · 0.95
ClipHexahedronInOut1DMethod · 0.95

Calls 3

GetAbstractArrayMethod · 0.80
GetNumberOfArraysMethod · 0.45
InterpolateTupleMethod · 0.45

Tested by

no test coverage detected