add mesh-common fn, simplify ply-mesh & stl-mesh