Change box by moving face

Hi all,
I’d like to change the box by moving any one of the 6 faces in its normal direction, like below:

Can anyone give a help, thanks!

If I understand correctly, you want to change the scaling of the box on 1 particular axis?
like

box.scaling.set(1,1,10);

will scaling 10x on z axis?

Set scaling will stretch the box in two direction from the box center.
Actually I want to pick one face of the box and move it in one direction, box will stretch to the moving direction.

Set a pivot point.

3 Likes

Like the extrude operation in Blender?