I have always missed a PlaneToPlane function in rhinoscriptsyntax. ChangeBasis doesn’t work exactly the same way and, although you can use a ‘trick’ by combining two ChangeBasis transformations to achieve a PlaneToPlane result, it just doesn’t feel as intuitive. I could manually edit the .py source files to add the function, but it should really be built into the library by default. As well, I can import Rhino.Geometry, but I still think it should be included in rhinoscriptsyntax by default. Thanks
xform.rotation1 is plane to plane.
1 Like
arggg… you’re right!!
I realized it as soon as I saw it. Thanks a lot.
In any case, I understand the name refers to rotation, but the 4x4 matrix should include a 3x3 rotation and a 3x1 translation to fit the two objects in space. Is that correct? I always thought the command gave a pure rotation, without the translation. That’s why I was looking for a planetoplane.
Yes, it does include a translation. I don’t know why it’s called just Rotation in rs.syntax. It’s called PlaneToPlane in RhinoCommon.
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.transform/planetoplane#(plane,plane)
1 Like