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)