A computer graphics based approach is being developed as an aid for orthopedic surgeons to learn engineering mechanic. As an application of this approach, a planar mathematical model of the human knee is used for analyzing the mechanics of the joint after replacement with artificial implants. Graphic representation is used for the bones, prosthetic components, fibers of ligaments and the lines of various forces. Using computer programming, motion and force data is generated for a large number of joint positions, which is then utilized to simulate the knee mechanics during flexion/extension. The simulations show very clearly during motion the bones relocating in relation to each other, different fibers of the ligaments becoming straight or slack and the muscle and ligament forces changing their direction and position. The simulations can also be used for analyzing the effects on joint mechanics of changing the implant design or of surgical errors. © Springer Nature Switzerland AG 2019.