making stl mesh model code work