I would like to implement something similar to the _MoveFace under the Solid Tools tab in Grasshopper.
And I would like to illustrate it a bit more. I am seeking for a function that can take two arguments( a Vector3d and a double) to move the certain BrepFace along Vector3d’s direction and with the magnitude equals to the double input. After this function, all other BrepFaces should be changed accordingly as well.
I don’t need to user interact with RhinoActiveView, which means should not need to deal with the click or something related to delegates, I suppose.
I checked the Brep/BrepFace methods in RhinoCommon doc, but it’s a bit hard to know which one fit my request the most. Any suggestion will be helpful. Thanks.
Thank you. I tried and it works. That’s exactly what I wanted.
List ci = new List();
ci.Add(x.Faces[0].ComponentIndex());
Transform moveDown = Transform.Translation(new Vector3d(0, y, 0));
x.TransformComponent(ci, moveDown, 0.0001, 0.1, true);
A = x;