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

Method InsertTuple2

Common/Core/vtkDataArray.cxx:507–519  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

505}
506//------------------------------------------------------------------------------
507void vtkDataArray::InsertTuple2(vtkIdType i, double val0, double val1)
508{
509 double tuple[2];
510 int numComp = this->GetNumberOfComponents();
511 if (numComp != 2)
512 {
513 vtkErrorMacro(
514 "The number of components do not match the number requested: " << numComp << " != 2");
515 }
516 tuple[0] = val0;
517 tuple[1] = val1;
518 this->InsertTuple(i, tuple);
519}
520//------------------------------------------------------------------------------
521void vtkDataArray::InsertTuple3(vtkIdType i, double val0, double val1, double val2)
522{

Callers 14

doArrayTestFunction · 0.80
testCellsMethod · 0.80
GeneratePointsMethod · 0.80
RequestDataMethod · 0.80
TestCellDerivs.pyFile · 0.80
GenerateTextureCoordsMethod · 0.80
GenerateTextureCoordsMethod · 0.80
ConstructSceneFunction · 0.80

Calls 2

InsertTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45

Tested by 4

ConstructSceneFunction · 0.64
MakePointDataFunction · 0.64
MakeCellDataFunction · 0.64