Parameters
- Angle
- Angle to rotate by
- Axis
- Normalised axis of rotation in world orientation
- Centre
- Centre of rotation in world space
DicomImage image = new DicomImage("your_3D_dicom_image.dcm"); DicomVolume volume = new DicomVolume(image); RenderMode3D renderMode = RenderMode3D.VR; DicomImage3D image3D = new DicomImage3D(volume, renderMode); float angle = 45.0f; Vector3D rotationAxis = new Vector3D(0, 1, 0); Vector3D rotationCentre = new Vector3D(volume.Centre.X, volume.Centre.Y, volume.Centre.Z); image3D.RotateWorld(angle, rotationAxis, rotationCentre); Viewer.Images.Add(image3D);