How to get uv coordinates for Texture Mapping

Since we need to attach a texture on the mesh of TopoShape
We need to get the UV coordinates.
Example: a cube, expect to get the uv coordinates of all six sides on a 2d map, like the following picture.

image reference

Does OCC already have an API for this?
Or we have to buy Unfold Component for this?