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.