4
$\begingroup$

When you take the Bounding Box of a collection of instances, each unrealized instance is bounded independently.

For some reason, despite the boxes appearing to be instances themselves, and having no apparent mesh in the spreadsheet, you can capture the indices of the 'non-existent' vertices, for use after realization:

enter image description here

Which can be quite handy. Even handier would be to capture the other exposed attributes of the non-existent mesh...

enter image description here

... but it seems you can't. Does anybody know what's going on, here?

$\endgroup$
2
  • 1
    $\begingroup$ ...perhaps a "missing feature"? $\endgroup$
    – quellenform
    Sep 7, 2022 at 16:24
  • $\begingroup$ @quellenform I guess, maybe something to do with: you know that the box is going to have 8 vertices, but you don't know anything else.. hoping that someone can find it in the code, I suppose.. Ahh.. you can capture the V indices of any instance $\endgroup$
    – Robin Betts
    Sep 7, 2022 at 16:48

1 Answer 1

1
$\begingroup$

Each box has 8 vertices, so you could do a bit of math to get the min and max value per box.

If you want the value on the instances then:

  • You are gonna use the'Sample Index' node. set it to vector and point.

  • use the 'position' as the value and for the index we will do some math.

  • we will take the index and multiply it by 8. this will give use the min.
    for the max take this value (Index × 8) and add 7.
    make sure to capture on the instances on the instance domain.

If you want it on the boxes themselves then

  • You are could use the 'Evaluate at Index' node (or 'Sample Index' node). set it to vector and point.

  • use the 'position' as the value and for the index we will do some math.

  • we will take the index and Divide it by 8 and floor it (this is in the 'Math' node drop-down menu, of in the 'Float to Integer' node drop-down menu). this will give use the min.
    for the max take this value (Index ÷ 8) and add 7.
    make sure to capture on the boxes on the point domain.

In add the above cases, you have to realize instances.


[this only works because of the order the vertices are generated in geometry nodes; if you do this on a cube you made by extruding etc. in edit mode this wouldn't necessarily give the the min and max]

$\endgroup$

You must log in to answer this question.

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