找到两个3D点之间的3D点坐标

发布于 2025-01-31 23:38:20 字数 451 浏览 2 评论 0原文

我有一个文本文件中(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 photoenter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文