def METHOD_NAME(self):
    if self.Surface == None:
        self.PrintError('Error: No input surface.')
    if self.Centerlines == None:
        self.PrintError('Error: No input centerlines.')
    branchSections = vtkvmtk.vtkvmtkPolyDataBranchSections()
    branchSections.SetInputData(self.Surface)
    branchSections.SetGroupIdsArrayName(self.GroupIdsArrayName)
    branchSections.SetCenterlines(self.Centerlines)
    branchSections.SetNumberOfDistanceSpheres(self.NumberOfDistanceSpheres)
    branchSections.SetReverseDirection(self.ReverseDirection)
    branchSections.SetCenterlineRadiusArrayName(self.RadiusArrayName)
    branchSections.SetCenterlineGroupIdsArrayName(self.GroupIdsArrayName)
    branchSections.SetCenterlineIdsArrayName(self.CenterlineIdsArrayName)
    branchSections.SetCenterlineTractIdsArrayName(self.TractIdsArrayName)
    branchSections.SetBlankingArrayName(self.BlankingArrayName)
    branchSections.SetBranchSectionGroupIdsArrayName(self.BranchSectionGroupIdsArrayName)
    branchSections.SetBranchSectionAreaArrayName(self.BranchSectionAreaArrayName)
    branchSections.SetBranchSectionMinSizeArrayName(self.BranchSectionMinSizeArrayName)
    branchSections.SetBranchSectionMaxSizeArrayName(self.BranchSectionMaxSizeArrayName)
    branchSections.SetBranchSectionShapeArrayName(self.BranchSectionShapeArrayName)
    branchSections.SetBranchSectionClosedArrayName(self.BranchSectionClosedArrayName)
    branchSections.SetBranchSectionDistanceSpheresArrayName(self.BranchSectionDistanceSpheresArrayName)
    branchSections.Update()
    self.BranchSections = branchSections.GetOutput()