Forum

Author Topic: Python Script for Rotating the Region  (Read 2104 times)

tttjy3

  • Newbie
  • *
  • Posts: 3
    • View Profile
Python Script for Rotating the Region
« on: November 23, 2018, 05:52:14 PM »
Hello,

I want to rotate my model using python script, however I am newbie in phyton.
I have an equation how I want to rotate X, Y and Z. Please refer to the attached figure and advise me. :)

Thank you!

Hana

mcstieg

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: Python Script for Rotating the Region
« Reply #1 on: December 04, 2018, 12:12:45 AM »
Hello tttjy3,

I think we have the same question...
Could you manage it?  :)

tttjy3

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Python Script for Rotating the Region
« Reply #2 on: December 04, 2018, 05:13:31 PM »
In the meantime, I just exported all points in txt format, and transformed the points using excel calculation.
After, I can import the transformed points in other software, and export the points in ply format.
Lastly, I can import the ply format in Agisoft, and finally I can see the transformed dense point cloud in Agisoft.
However, the problem is that this dense point cloud itself is likely not able to create the mesh, texture, and DEM...  :'(

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Python Script for Rotating the Region
« Reply #3 on: December 04, 2018, 06:06:12 PM »
Hello Hana,

Do you also need to apply the translation to the model? Or the rotation should be perform around the certain point that is defined on the provided image?
Best regards,
Alexey Pasumansky,
Agisoft LLC

tttjy3

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Python Script for Rotating the Region
« Reply #4 on: December 04, 2018, 07:27:29 PM »
Hello Alexey,

Yes, I have to apply the translation to the model.
The target of this translation is to orient & fix the model veiw (XY view) as I wish, so that I can build orthomosaic with the desired view. My model is a glacier model, therefore I want to measure the displacement at the end.

So far, I tried to use 'Planar' option in 'build orthomosaic', however I could not have the exact view I want.
And also, 'transform object' option is not working (deactivated) since the model is already referenced.

Please advise me.
Thank you.