I have two sets of points in 3D. These look for example like:
S1 = {(x1,y1,z1),(x2,y2,z2),…,(xn,yn,zn)}
S2 = {(x1',y1',z1'),(x2',y2',z2'),…,(xn',yn',zn')}
So both sets have the same number of points and I would like to connect them with lines like:
(x1,y1,z1) —- (x1',y1',z1')
(x2,y2,z2) —- (x2',y2',z2')
.
.
.
(xn,yn,zn) —- (xn',yn',zn')
What would be the best way to achieve that at once? I could do that with a for-loop which will plot a line between each two points, but I am asking, if there's a way I could organise the data so that all lines can be plotted at the same time?…
Thanks very much for your help in advance!
Best Regards,
Ahmed Hossam
Best Answer