简体   繁体   English

每次我在点云上执行加载功能时,我的观点都会改变到点云的中间

[英]Every time I do a load function on a pointcloud, my point of view changes to the middle of the pointcloud

I'm relatively new to pptk, and im trying to load point clouds one after another, with a fixed point of view.我对 pptk 比较陌生,我试图以固定的观点一个接一个地加载点云。

the main problem is that after I set the point of view, like so:主要的问题是,在我设定观点之后,像这样:

v = pptk.viewer(xyz)
xyz = pptk.rand(180000, 3)
v.set(lookat=(100, 100, 100))#---> this one is works and set the look at to x:100 y:100 z:100.
v.load(xyz)#--> changes my camera to x:0 y:0 z:0.

Any idea on how to set the camera setting to be fixed?关于如何将相机设置设置为固定的任何想法?

You can set your wiev angle and position with this code below;您可以使用下面的代码设置您的 wiev 角度和位置;

v.set(phi=0.2)
v.set(theta=0.2)
v.set(r=1)
v.set(lookat=(0, 0, 0)) 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM