Geometry Nodes

Related to this post : Geometry nodes : Get Size of face
I found a way to scale instances to the size of the face it’s on, I search a long time on google and here and didn’t find any post about it so I did it myself (first time geometry-noding it might not be optimal)
I hope the solution will help someone :

The trick is that face corners are packed 4 by 4 so some indexing manage to get edges of faces. I’d reckon there probably could be a node doing it directly…
And then a bit of math to figure which edge is the most “upward”
The output to the “find up” frame is in order : the direction of the most upward vector
a float3 giving the size of the face in those direction x : leftmost, z : upmost , y : normal of face

blendfile :
meshtoface.blend (1.1 MB)

and demo :

12 Likes