cutting simulation library, version 2