Three-dimensional shape control of implant devices