Forum

Author Topic: Query Z value on mesh  (Read 2862 times)

SamT

  • Newbie
  • *
  • Posts: 38
    • View Profile
Query Z value on mesh
« on: December 14, 2015, 08:39:41 AM »
Hi Everyone!

Is there a way to query the z value on the mesh at a given x,y with python?

Sam


grommit

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Query Z value on mesh
« Reply #1 on: December 14, 2015, 10:28:07 PM »
Is your query view dependant? Otherwise I'd suggest using the depth maps to obtain the z.

SamT

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Query Z value on mesh
« Reply #2 on: December 14, 2015, 11:03:59 PM »
Hey grommit,

No it isn't. I'll have another read through the depth maps stuff and see what I can find out.

Thanks Mate

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Query Z value on mesh
« Reply #3 on: December 15, 2015, 11:46:15 AM »
Hello Sam,

You probably need to intersect the vertical vector going through the XY point and mesh. So it can be split into two tasks, finding polygon containing XY point and finding the intersection of this polygon with the vertical vector.
Best regards,
Alexey Pasumansky,
Agisoft LLC