I sometimes import geometry into Rhino with a coordinate system that’s flipped, and I so find it much easier to re-orient the part so that the plane I’m working on in GH is the default XY plane. I do all my GH on the re-oriented part then when I want to export my GH I need to bake the geometry and move it back to the original location so that when I export it comes into the original CAD software in the correct position.
At the moment I’m moving my baked geometry back to the original position by hand and it gets a bit tedious, would like to automate. I also don’t want to do the initial re-orientation via GH (I know if I did I could reverse the transforms but I’d prefer to do this initial step of moving in Rhino).
Any suggestions on how to get my GH back to the original position? Box orient doesn’t work (doesn’t maintain orientation). Can GH access the transforms applied to an object in Rhino?
Basically you need to deconstruct both BREPs, measure areas of all surfaces, isolate two unique faces close to each other, find three points to create a plane and use the Orient component to move the object back into the initial location. Unfortunately I don’t have a definition to share.
I believe a solution is indeterminate based on the problem as stated.
P.S. One slight change gives a better result in this case. Removing “reverse” from the List Item ‘L’ input so the smallest surface of the bounding box is used instead of the largest.
Seems like with the bounding box the faces of the same area get mixed up and final re-oriention isn’t always correct. Attached code has internalised breps.
What I like about this is that instead of drawing that initial plane I can create a 3-point surface and use that as the source plane, then just move the surface along with the copied brep and reference that surface back in as the target. So long as I move the brep+surface the re-oreintation is good.
I just wasted considerable time searching for how to obtain a Guid for each face of a brep. Maybe it’s impossible for internalized breps? Discouraging that it’s so difficult
Reminds me of Tesla’s way of developing FSD (Full Self Driving) at the expense and risk of their customers.