Forum

Author Topic: region center  (Read 3391 times)

viper_0711

  • Newbie
  • *
  • Posts: 23
    • View Profile
region center
« on: May 12, 2015, 11:01:09 PM »
hi

I have a referenced chunk
i want to translate the region center to a marker position
       
        newregion = chunk.region
        newCenter = chunk.transform.matrix.mulp( chunk.marker[0].position )   
   newregion.center = newCenter
   chunk.region = newregion
       

the result is wrong. is it my code is wrong?
thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: region center
« Reply #1 on: May 12, 2015, 11:12:30 PM »
Hello viper_0711,

Try newCenter = chunk.marker[0].position
Best regards,
Alexey Pasumansky,
Agisoft LLC