parameters: (self)
docstring: Add labels on the model to identify faces
docstring_summary: Add labels on the model to identify faces
docstring_tokens: Add labels on the model to identify faces
function: def addLabels(self):
          "Add labels on the model to identify faces"
          c = 0
          for f in self.faces:
              l = FreeCAD.ActiveDocument.addObject("App::AnnotationLabel","facelabel")
              l.BasePosition = f[0].CenterOfMass
              l.LabelText = str(c)
              c += 1
function_tokens: def addLabels ( self ) : c = 0 for f in self . faces : l = FreeCAD . ActiveDocument . addObject ( "App::AnnotationLabel" , "facelabel" ) l . BasePosition = f [ 0 ] . CenterOfMass l . LabelText = str ( c ) c += 1