Problem with bounding box

Hello! :wave:
I’ve created solids, and in the end of algorithm I need to scale without void, so I’ve taken node bounding box, but it gives me rotation, for example I’ve baked 1 item before and after scaling and tried to subtract solids - you can see it on the 2nd picture. :sweat_smile:
Why did bounding box give rotation?
How can I scale solids correctly?

error_10-12-23.gh (172.7 KB)


additional description of the problem.
Animation