2D bounding rect from a mesh

I’m trying to figure out how to get the rect coords of a mesh for 2D projection.

I need X, Y, Width and Height.

After reading many SO posts and various blogs, it seems like none of them work with latest modern Three.JS and the documentation doesn’t have a function for it.

How is this achieved?

Currently, I’m looking at using a Box3 and then project the Box3 to screen.

My code looks like this

var bbox = new THREE.Box3().setFromObject(mesh);

Unfortunately I don’t know what else to provide.

I’m lost.