Changes to rmgen API for consistency and support of 3D position/rotation. This was SVN commit r10326.