The task for a cam and follower mechanism is provided by a displacement diagram, which defines the rotation angle or sliding distance of the follower as a function of the rotation of the cam. Once the contact shape of follower and its motion are defined, the cam can be constructed using graphical or numerical techniques.