3
$\begingroup$

The goal here is to not let each instanced cube's position to go beyond the input mesh'.

The cube primitive node is added as instances into points of the input mesh. However, the cubes are placed from their center. D'd like to pull them inside, not letting them to be placed outside the input mesh. The idea was getting the input mesh's bounding box and use it to limit each instance individually with translate instances... but i'm not being able to do it. the red arrow sums up my question

$\endgroup$

1 Answer 1

5
$\begingroup$

In your case all you need is simple maths to shrink the spawning geometry:

$\endgroup$
3
  • $\begingroup$ Thank you for the help. Awesome solution! I just had trouble connecting your setup to the Group Input node. I'd love to apply the g. nodes on different meshes $\endgroup$ Commented Jun 10 at 18:13
  • 1
    $\begingroup$ This won't work on non-cubes. If you prepare some examples of meshes maybe we can figure something more generalized... $\endgroup$ Commented Jun 10 at 19:28
  • $\begingroup$ The goal here is quickly prototyping steel frames(and learning more about g. nodes in the process). Ty so much. I've posted a new answer on the other topic with photos of nodes, results and Blender file: blender.stackexchange.com/questions/319617/… $\endgroup$ Commented Jun 10 at 21:09

You must log in to answer this question.

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