How to rectify misalignment of vtp files?

Dear Aron and Sebastien,

How to align the bundle as shown in the attached figure inside the hollow brain vtp file?
We are stuck at this point.

If you need the code and the files we can provide the same. We need this help urgently.

We are very much thankful to the VTP members for being so helpful.

Your guidance will be highly appreciated.


Best regards,
Sunita

You can provide a translation on the actor. But the main question would be why the data is not properly aligned initially within the vtp.

Thank you so much Sebastien.
The problem is fixed now and we are getting positioning right for the vtp files.

There are few more questions on rendering.
We want to save multiple vtp files into single .png file with certain dpi. How can we change the orientation of the renderer window and color of individual vtp file before converting it to png.

Kindly provide some tutorial link or code snippet for which we will be highly grateful to you.

Thank you so very much.

Best regards,
Sunita

On the renderer, you can get the active camera and adjust its position.
For color, it depend if it is a uniform one or a field. For uniform, you can set them on actor.getProperties().setColor(1.0, 0.0, 0.0)

Could you please tell us on how to save it into png.
Thanks a lot. :pray:

Best regards,
Sunita

Hi Sebastien,

After a search I find that writer = vtk.vtkPNGWriter() will generate png. But how to convert multiple vtp files into one png.
Could you please guide.
Thank you so much.