Study on a General Cutting Algorithm of Complex Blocks