help sculpt mode surface cursor


i seen this type of surface tangent cursor in blender with python. but,
i forget where i seen it.
please help to find the code.