parameters: (
      doc,
      base_mesh,
      use_label=False,
      name="MeshGroup"
  )
return_statement: return obj
docstring: makeMeshGroup(document, base_mesh, [use_label], [name]):
      creates a FEM mesh region object to define properties for a region of a FEM mesh
docstring_summary: makeMeshGroup(document, base_mesh, [use_label], [name]):
      creates a FEM mesh region object to define properties for a region of a FEM mesh
docstring_tokens: makeMeshGroup ( document base_mesh [ use_label ] [ name ] ) : creates a FEM mesh region object to define properties for a region of a FEM mesh
function: def makeMeshGroup(
      doc,
      base_mesh,
      use_label=False,
      name="MeshGroup"
  ):
      """makeMeshGroup(document, base_mesh, [use_label], [name]):
      creates a FEM mesh region object to define properties for a region of a FEM mesh"""
      obj = doc.addObject("Fem::FeaturePython", name)
      from femobjects import mesh_group
      mesh_group.MeshGroup(obj)
      obj.UseLabel = use_label
      # obj.BaseMesh = base_mesh
      # App::PropertyLinkList does not support append
      # we will use a temporary list to append the mesh group obj. to the list
      tmplist = base_mesh.MeshGroupList
      tmplist.append(obj)
      base_mesh.MeshGroupList = tmplist
      if FreeCAD.GuiUp:
          from femviewprovider import view_mesh_group
          view_mesh_group.VPMeshGroup(obj.ViewObject)
      return obj
function_tokens: def makeMeshGroup ( doc , base_mesh , use_label = False , name = "MeshGroup" ) : obj = doc . addObject ( "Fem::FeaturePython" , name ) from femobjects import mesh_group mesh_group . MeshGroup ( obj ) obj . UseLabel = use_label # obj.BaseMesh = base_mesh # App::PropertyLinkList does not support append # we will use a temporary list to append the mesh group obj. to the list tmplist = base_mesh . MeshGroupList tmplist . append ( obj ) base_mesh . MeshGroupList = tmplist if FreeCAD . GuiUp : from femviewprovider import view_mesh_group view_mesh_group . VPMeshGroup ( obj . ViewObject ) return obj