parameters: (
      fileString
  )
return_statement: return mesh_object
docstring: read a FemMesh from a yaml/json mesh file
      insert a FreeCAD FEM Mesh object in the ActiveDocument
      return the FEM mesh document object
docstring_summary: read a FemMesh from a yaml/json mesh file
      insert a FreeCAD FEM Mesh object in the ActiveDocument
      return the FEM mesh document object
docstring_tokens: read a FemMesh from a yaml / json mesh file insert a FreeCAD FEM Mesh object in the ActiveDocument return the FEM mesh document object
function: def import_yaml_json_mesh(
      fileString
  ):
      """
      read a FemMesh from a yaml/json mesh file
      insert a FreeCAD FEM Mesh object in the ActiveDocument
      return the FEM mesh document object
      """
  
      mesh_name = os.path.basename(os.path.splitext(fileString)[0])
  
      femmesh = read(fileString)
      if femmesh:
          mesh_object = FreeCAD.ActiveDocument.addObject(
              "Fem::FemMeshObject",
              mesh_name
          )
          mesh_object.FemMesh = femmesh
  
      return mesh_object
function_tokens: def import_yaml_json_mesh ( fileString ) : mesh_name = os . path . basename ( os . path . splitext ( fileString ) [ 0 ] ) femmesh = read ( fileString ) if femmesh : mesh_object = FreeCAD . ActiveDocument . addObject ( "Fem::FemMeshObject" , mesh_name ) mesh_object . FemMesh = femmesh return mesh_object