refactored some code that creates PMatrix3D then calls set.