How to display the size and center of gravity

捕获 This is shown through Magic, how to display the size and center of gravity of the model through Slicer

You can get oriented bounding box, center of gravity, etc. from Segment Statistics module. You can visualize them using this script.