Generation of cam-like surfaces