I am trying to align a number of instanced cubes around the perimeter of a grid, and all the cubes should be rotated so they instance facing outward and upward.
It is not a perfect grid, the intention is that some of the squares can be deleted in the top view to create different shapes.
The cubes are intended to have a blue upward side (Z) and a green outward side.(Y)
The way the perimeter is created is by duplicating the edges and then making a curve. Then a wall is created that can provide normals for positioning.
As you can see, some of the squares are facing the right direction, but not all of them.
The cubes will eventually be replaced of course.
This illustrates it may not be possible with only one cube instance, it may require 'corner cubes' or at least a corner rule. Here is what I am trying to accomplish.
Some examples of other questions that relate to it:
How to select the outer edges of a plane in Geometry Nodes?
Geometry nodes - Align Instance object to face orientation, rotate normal to longest edge
Geometry Nodes: rotational alignment of objects with reference to other object
The ways to attach object to other object in certain places
The question that started this: