D Trajectory Creation

Input: pink shaft.
A point of green part traces a 2D parallelogram (in green).
A point of violet follower traces a 3D curve (in blue), plan projection of which is the said parallelogram.