//创建圆柱
vtkSmartPointer<vtkCylinderSource> spCylinderSource = vtkSmartPointer<vtkCylinderSource>::New();
spCylinderSource->SetHeight(m_dCylinderHeight); // 设置圆柱的高度
spCylinderSource->SetRadius(m_dCylinderRadius); // 设置圆柱的半径
spCylinderSource->SetResolution(50); // 设置圆柱的分辨率(面的数量)
spCylinderSource->SetCenter(m_dCylinderCenter);
//做旋转90°
vtkSmartPointer<vtkTransform> spTransform = vtkSmartPointer<vtkTransform>::New();
spTransform->RotateX(90);
// 应用变换到圆柱几何数据
vtkSmartPointer<vtkTransformPolyDataFilter> spTransformFilter = vtkSmartPointer<vtkTransformPolyDataFilter>::New();
spTransformFilter->SetTransform(spTransform);
spTransformFilter->SetInputConnection(spCylinderSource->GetOutputPort());
spTransformFilter->Upda