vtk 添加合适大小 坐标轴

 如果直接添加 ,显示过小,可以通过 设置 大小

	
// vtkImageData *  source;
///vtkSmartPointer aRenderer ;
vtkSmartPointer axes =
		vtkSmartPointer::New();
	axes->SetXAxisLabelText("x");
	axes->SetYAxisLabelText("y");
	axes->SetZAxisLabelText("z");

	int* dim = source->GetOutput()->GetDimensions();
	axes->SetTotalLength(dim[0], dim[1], dim[2]);

	axes->SetVisibility(true);

	aRenderer->AddActor(axes);

 

你可能感兴趣的:(VTK)