Generating Cube projected UV in geometry nodes

I’d like to produce the same result in a geometry node tree as a selecting UV → Cube Projection in Mesh → Edit Mode.
Can it be done?

You can use this node group

box_uv_mapping.blend (172.7 KB)

3 Likes