About ImageCPRMapper

I have obtained the coordinates of the mouse by drawing a line on the MPR. How can I calculate the direction or obtain the direction data? I am confused now. I can only draw a line on the sagittal plane and render the coronal spinal image. How can I draw a line on other planes of the MPR and render the sagittal CPR?

A line is rendered by the reslice cursor widget (RCW) as a representation of the intersection of the current plane and the other RCW planes.
You can specify multiple (!=3) planes in the RCW. It can be done at instantiation: vtkResliceCursorWidget.newInstance({planes: ['X', 'Y', 'Z', 'O']}).

Hello, Julien Finet, I mean, I draw a line on the mpr plane to collect the centerline point position coordinates to render the CPR image, but the centerline orientation uses the orientation in aorta_centerline.json in the demo. I also drew the coronal CPR. Now I want to draw the sagittal CPR. I think I need to change the centerline orientation. How can I collect the centerline orientation of the CPR?

Did you check setAngleFromSlider from the ImageCPRMapper example ?

Hello, Julien Finet,I collected the centerline coordinates, and then rendered an image in Straightened Mode. Why is there a missing section? Switching to Stretched Mode is normal. Maybe I don’t know the rules for the centerline coordinates. According to your reply, I configured RCW like this: const widget = vtkResliceCursorWidget.newInstance({ planes: ['X', 'Y', 'Z'] });