1
$\begingroup$

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.

enter image description here

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.

enter image description here Blender 4.0 file:

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:

How to make instances around the grid?

$\endgroup$
3
  • $\begingroup$ your question is not totally clear to me: how should that two cubes be rotated who are on the diagonal? [1]: i.stack.imgur.com/JSmwo.png $\endgroup$
    – Chris
    Nov 16, 2023 at 6:21
  • $\begingroup$ @Chris, I see your point, there is no way of doing what I intended unless there is a corner piece in the collection with two green sides. $\endgroup$ Nov 17, 2023 at 21:43
  • $\begingroup$ The best that can be done is if the green and the red sides of the object are always on the outside, even with a corner. The blank or white sides would always face the inside or bottom of the object. $\endgroup$ Nov 18, 2023 at 20:06

1 Answer 1

0
$\begingroup$

I was able to produce a limited success with most of the geo nodes I worked on from this question.

The proviso was that a) the corner squares can have two instances on them. This means the instances aren't exactly the same size as the grid squares. b)when editing the base plane, any changes made are extruded edges rather than deletions of squares.

I'd still be open to a better solution.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .