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

Method ComputeCellScale

Filters/General/vtkAxisAlignedTransformFilter.cxx:616–631  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

614
615//------------------------------------------------------------------------------
616void vtkAxisAlignedTransformFilter::ComputeCellScale(vtkDataArray* xCoords, vtkDataArray* yCoords,
617 vtkDataArray* zCoords, int dims[3], double scales[3])
618{
619 if (dims[0] != 1)
620 {
621 scales[0] = xCoords->GetTuple1(1) - xCoords->GetTuple1(0);
622 }
623 if (dims[1] != 1)
624 {
625 scales[1] = yCoords->GetTuple1(1) - yCoords->GetTuple1(0);
626 }
627 if (dims[2] != 1)
628 {
629 scales[2] = zCoords->GetTuple1(1) - zCoords->GetTuple1(0);
630 }
631}
632
633//------------------------------------------------------------------------------
634void vtkAxisAlignedTransformFilter::ApplyCellScale(

Callers 1

ProcessHTGMethod · 0.95

Calls 1

GetTuple1Method · 0.80

Tested by

no test coverage detected