Exploratory design of mechanical devices with motion constraints