
I'm trying to automate workflow, but my math is not so good.
I know a bunch of points, for example A,B,C and P, (in reality about 20 to 50). Then I move A,B,C and need to figure out where P should approximately be. A,B and C does not move the exact same, and might be tighter or more spread out.
This is in 3D-space if it makes a difference.
Edit: additional example : The red ball should move into the right partial cylinder. The vertices are the points.