adding some visual modifications
implementation of Cyrus-Beck clipping  algorithm