double bounds[6]; polydata->GetBounds(bounds); std::cout << "Polydata bounds: " << std::endl; std::cout << "xmin: " << bounds[0] << " " << "xmax: " << bounds[1] << std::endl << "ymin: " << bounds[2] << " " << "ymax: " << bounds[3] << std::endl << "zmin: " << bounds[4] << " " << "zmax: " << bounds[5] << std::endl;



