2013-10-21 4 views

답변

5

vtkStructuredPoints (vtkStructuredPointsReader의 GetOutput() 유형)는 vtkDataSet의 하위 클래스이므로 vtkDataSet의 GetBounds (double [6]) 함수를 사용할 수 있습니다. 다음은 예입니다.

double bounds[6]; 
    structuredPointsReader->Update(); 
    structuredPointsReader->GetOutput()->GetBounds(bounds); 

    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; 
관련 문제