如何用手将(x,y,z)坐标作为原点 [英] How to get (x,y,z) coordinates with hand as origin

查看:107
本文介绍了如何用手将(x,y,z)坐标作为原点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检索手的x y z以构建一个3d模型。问题是原点是它自己的传感器所以当在程序中运行那些坐标来构建网格时我会得到不好的结果

I want to retrieve x y z of hand in order to build a 3d model. The problem is that the origin is the sensor it self so when a run those coordinates in a program to build mesh I'm getting bad result

任何人都可以帮助我plz

Can anyone help me plz

推荐答案

  要使用hand作为原点获取坐标值,请从手x,y,z值中减去当前的x,y,z。

   For getting the coordinate values with hand as a origin,Do subtract your current x,y,z from your hand x,y,z values.

ex:

将头部坐标值作为原点获取:

getting head coordinate values as hand as a origin:

head.x = head.x-hand.x;

head.x=head.x-hand.x;

head.y = head.y-hand.y;

head.y=head.y-hand.y;

head.z = head.z-hand.z;

head.z=head.z-hand.z;

希望这可以解决您的问题。

hope this solve your problem.

谢谢,

Gowri


这篇关于如何用手将(x,y,z)坐标作为原点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆