Forum

Author Topic: Define vector as Z axis  (Read 2189 times)

stephan

  • Full Member
  • ***
  • Posts: 129
    • View Profile
Define vector as Z axis
« on: January 06, 2016, 10:45:58 PM »
Hi guys,

I have a vector defined with the code below that I would like to make the models Z axis parallel to. Does anyone have any idea how this could be done?

Code: [Select]
    chunk.addMarker()
    marker1 = chunk.markers[0]
    chunk.markers[0].reference.location = PhotoScan.Vector([x,y,z])
   
    chunk.addMarker()
    marker2 = chunk.markers[1]
    chunk.markers[1].reference.location = PhotoScan.Vector([x1,y1,z1])
   
    updateregion.center = PhotoScan.Vector([x,y,z])