Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Yän

Pages: [1]
1
Python and Java API / Re: Best way to move a model?
« on: July 12, 2018, 12:50:09 AM »
Hello Alexey,

thank you for helping me out. Your tip has already helped me to move the chunk. Unfortunately I now have a different problem.
Originally I thought that the region center would be in world space. Since the region appears to be in some sort of parenting structure I found that this is not the case.
Do you have a way for me to easily get the world position of the region center? I tried just adding the chunk translation vector to the region center vector but that's not enough as the chunk seems to be rotated.
If there's a way to get the region center world position, I'd greatly appreciate a little code-example on how to get it using agisoft python scripting.

Thanks again,
Yän

2
Python and Java API / Best way to move a model?
« on: July 04, 2018, 01:57:20 PM »
I'm new to python scripting in Agisoft Photoscan.

My goal is to move the entire model or the point cloud along with the region and all cameras using a vector 3.
The vector 3 is the negative vector 3 of the region centre.
Basically what I'm trying to do is moving everything to the coordinate origin (0,0,0).

What is the best way to move everything using the same translation vector?

Thank you for your time.

Pages: [1]