40 double bounding_box[6];
41 static_cast<vtkPolyData*
>(this->
_inputAlgorithm->GetOutputDataObject(0))
42 ->GetBounds(bounding_box);
43 double x_diff = fabs(bounding_box[0] - bounding_box[1]);
44 double y_diff = fabs(bounding_box[2] - bounding_box[3]);
45 double z_diff = fabs(bounding_box[4] - bounding_box[5]);
47 double max = (x_diff == 0) ? 1 : x_diff;
48 max = (max > y_diff) ? max : y_diff;
49 max = (max > z_diff) ? max : z_diff;