copy model matrix