Method and system for producung prostheses