Useful utilities for positioning the text can be found in core_geometry_utils.py of the PythonOCC-examples project for version 0.18 and in ShapeFactory.py in the new versions.
The text itself can be displayed using the DisplayMessage method, see core_topology_glue.py.
Useful utilities for positioning the text can be found in core_geometry_utils.py of the PythonOCC-examples project for version 0.18 and in ShapeFactory.py in the new versions. The text itself can be displayed using the DisplayMessage method, see core_topology_glue.py.