update matrix and geo3d