Clipping algorithm first version created