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

Method InsertNextTuple3

Common/Core/vtkDataArray.cxx:614–627  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

612}
613//------------------------------------------------------------------------------
614void vtkDataArray::InsertNextTuple3(double val0, double val1, double val2)
615{
616 double tuple[3];
617 int numComp = this->GetNumberOfComponents();
618 if (numComp != 3)
619 {
620 vtkErrorMacro(
621 "The number of components do not match the number requested: " << numComp << " != 3");
622 }
623 tuple[0] = val0;
624 tuple[1] = val1;
625 tuple[2] = val2;
626 this->InsertNextTuple(tuple);
627}
628//------------------------------------------------------------------------------
629void vtkDataArray::InsertNextTuple4(double val0, double val1, double val2, double val3)
630{

Calls 2

InsertNextTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.45