3
$\begingroup$

I've created an extruded text with the geometry nodes and tried to use the bounding box caluclations to center a cube. For some reason this isn't working. The centering works fine if I use a another cube instead of the text. Any ideas?

graph result

I also tried to use just one letter, but this is also not working: just one letter

$\endgroup$
2
  • $\begingroup$ The Bounding Box node is giving a bounding box for each letter in the curve. $\endgroup$ Jan 24 at 17:53
  • $\begingroup$ @MartyFouts I also tried to use just one letter, but this is also not working. $\endgroup$
    – someonr
    Jan 24 at 17:58

1 Answer 1

4
$\begingroup$

You need to use a Realize Instances Node before the Bounding box to get the bounding box for the entire text. Here's my tree:

Solution

and here's my result:

Resulting geometry

$\endgroup$
2
  • 1
    $\begingroup$ Realize Instances works great, but I can't see why you would subtract the minimum from the maximum. Let's say: xmin=-10 and xmax=20 then the center would be at 5. Adding and dividing results to (xmin+xmax)/2=5, but subtracting to (xmin-xmax)/2=-15. $\endgroup$
    – someonr
    Jan 24 at 18:12
  • 1
    $\begingroup$ You're right. It should be add not subtract. Fixing my answer now. $\endgroup$ Jan 24 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.