找到两个3D点之间的3D点坐标
我有一个文本文件中(xyz)形式写的点云。我想找到一个特定的否。 3D中的点(EX.10点)在2个给定点之间相等的距离,即填充原始点云中的缺失点,如所附照片
”在python中的功能,可以在每个连续的点之间进行插值并获得点,以使点云致密并填补空白。我知道如何在两个连续的点之间迭代,但我想念插值的一部分!
我找到了一个与我无关的审判:
# Pseudocode:
for (x from p1.x to p2.x)
for (y from p1.y to p2.y)
for (z from p1.z to p2.z)
new_point = (x, y, z)
I have a point cloud written in the form of (x y z) in a text file. I want to find a specific no. of points (ex.10 points) in 3d that lie at equal distances between 2 given points and that is to fill the missing points in the original point cloud as in the attached photo
All I need is a function in python that interpolates and gets the points between each two successive points to densify the point cloud and fill the gaps. I know how to iterate between two successive points but I miss the part of interpolation!
I found a trial that didn't work with me:
# Pseudocode:
for (x from p1.x to p2.x)
for (y from p1.y to p2.y)
for (z from p1.z to p2.z)
new_point = (x, y, z)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论