A virtual prototyping system with reconfigurable manipulators for layered manufacturing