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

Method GetLength2

Common/DataModel/vtkCell.cxx:491–503  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Compute Length squared of cell (i.e., bounding box diagonal squared).

Source from the content-addressed store, hash-verified

489//------------------------------------------------------------------------------
490// Compute Length squared of cell (i.e., bounding box diagonal squared).
491double vtkCell::GetLength2()
492{
493 double diff, l = 0.0;
494 int i;
495
496 this->GetBounds();
497 for (i = 0; i < 3; i++)
498 {
499 diff = this->Bounds[2 * i + 1] - this->Bounds[2 * i];
500 l += diff * diff;
501 }
502 return l;
503}
504
505//------------------------------------------------------------------------------
506// Return center of the cell in parametric coordinates.

Callers 15

TestOneCellFunction · 0.45
TestCellFunction · 0.45
RequestDataMethod · 0.45
ComputeSeparatricesMethod · 0.45
ComputeCellLengthMethod · 0.45
operator()Method · 0.45
ComputeCellLengthMethod · 0.45
FindAndUpdateCellMethod · 0.45
AdvectIterativeMethod · 0.45

Calls 1

GetBoundsMethod · 0.95

Tested by 2

TestOneCellFunction · 0.36
TestCellFunction · 0.36