Configuration Synthesis of Mechanisms with Variable Topologies: The study on Configuration Synthesis of Sawing and Lock Mechanisms