Reorient surface with a target surface (orient3pt)

Hello all,

I’m trying to take a vertical surface (gray surface in the image) and re-orient it like the other surface (the green surface in the image) without altering the geometry.
surfaceorientation

Here’s how I do this manually in Rhino using orient3pt:
surfaceorientation1

I would like to script this in grasshopper, but since there is no orient3pt component, I’m having a hard time doing this.

I was hoping to get something out of evaluate surface or the orient component, but didn’t succeed.

Here’s the GH file with initialized data with the surfaces.
reorientsurface.gh (26.9 KB)

Thank you all in advance
Renan

using Point List can be very helpful in these cases because it lets you recognize vertexes very easily

in this case -if you want to “emulate” the Rhino orient3p function- you can create two planes (initial plane, final plane)

on surface A you would click points in the order 031 (on GH Plane 3pt you pick vertexes at index 031)
on surface B you would click points in the order 130 (on GH Plane 3pt you pick vertexes at index 130)

in such a way to generate these reference planes:

then you would align surface B using plane B as initial plane, and plane A as destination plane:


reorientsurface_Re.gh (16.5 KB)

[edit] I think I have inverted the surfaces… :man_facepalming:

2 Likes

Perfect, just what I wanted to do! Didn’t know about 3pt plane, thank you so much!