------------------------------------------------------------------------------
| 431 | |
| 432 | //------------------------------------------------------------------------------ |
| 433 | double vtkProjectSphereFilter::GetZTranslation(vtkPointSet* input) |
| 434 | { |
| 435 | double maxRadius2 = 0; // squared radius |
| 436 | double coord[3]; |
| 437 | for (vtkIdType i = 0; i < input->GetNumberOfPoints(); i++) |
| 438 | { |
| 439 | input->GetPoint(i, coord); |
| 440 | double dist2 = vtkMath::Distance2BetweenPoints(coord, this->Center); |
| 441 | maxRadius2 = std::max(dist2, maxRadius2); |
| 442 | } |
| 443 | return sqrt(maxRadius2); |
| 444 | } |
| 445 | |
| 446 | //------------------------------------------------------------------------------ |
| 447 | void vtkProjectSphereFilter::SplitCell(vtkPointSet* input, vtkPointSet* output, |
no test coverage detected