In this paper, development of shape modeling tools for engineering design, analysis, simulation, and visualization is presented. The approach based on the idea of function-based shape modeling is combined with the power and versatility of the object-oriented programming (OOP). An OOP code, initially developed as a teaching and learning tool for educational use in an undergraduate Modeling and Simulation course, to generate mechanism components is presented. Different parametric, explicit, and implicit functions or their combination are used to generate mechanical components shapes. Using a blending process, sophisticated shapes have been generated on the graphical interface. However, the ideas and concept of the OOP mechanical components design presented in this paper can be applied to other application areas.