adding a print capability

a copy of MeshAdapt's print capability