function extractBoxVertices( box, target ) {

	const { min, max } = box;
	let index = 0;

	for ( let x = 0; x <= 1; x ++ ) {

		for ( let y = 0; y <= 1; y ++ ) {

			for ( let z = 0; z <= 1; z ++ ) {

				const v = target[ index ];
				v.x = x === 0 ? min.x : max.x;
				v.y = y === 0 ? min.y : max.y;
				v.z = z === 0 ? min.z : max.z;
				index ++;

			}

		}

	}

	return target;

}
Produce a list of 3D points representing vertices of the box.

@param {THREE.Box3} box
@param {Array<THREE.Vector3>} target Array of 8 vectors to write to
@returns {Array<THREE.Vector3>}