def METHOD_NAME(self):
    if self.Centerlines == None:
        self.PrintError('Error: No input centerlines.')
    if self.ReferenceSystems == None:
        self.PrintError('Error: No input reference systems.')
    if self.Interactive and not self.vmtkRenderer:
        self.vmtkRenderer = vmtkrenderer.vmtkRenderer()
        self.vmtkRenderer.Initialize()
        self.OwnRenderer = 1
    if self.Interactive:
        self.vmtkRenderer.RegisterScript(self)
        viewer = vmtkcenterlineviewer.vmtkCenterlineViewer()
        viewer.Centerlines = self.Centerlines
        viewer.CellDataArrayName = self.GroupIdsArrayName
        viewer.vmtkRenderer = self.vmtkRenderer
        viewer.InputText = self.InputText
        viewer.OutputText = self.OutputText
        viewer.PrintError = self.PrintError
        viewer.PringLog = self.PrintLog
        viewer.Display = 0
        viewer.METHOD_NAME()
        groupIdString = self.InputText("Please input the reference groupId:\n",self.GroupIdValidator)
        self.ReferenceGroupId = int(groupIdString)
    offsetFilter = vtkvmtk.vtkvmtkCenterlineReferenceSystemAttributesOffset()
    offsetFilter.SetInputData(self.Centerlines)
    offsetFilter.SetReferenceSystems(self.ReferenceSystems)
    offsetFilter.SetAbscissasArrayName(self.AbscissasArrayName)
    offsetFilter.SetNormalsArrayName(self.NormalsArrayName)
    if not self.ReplaceAttributes:
        offsetFilter.SetOffsetAbscissasArrayName(self.OffsetAbscissasArrayName)
        offsetFilter.SetOffsetNormalsArrayName(self.OffsetNormalsArrayName)
    else:
        offsetFilter.SetOffsetAbscissasArrayName(self.AbscissasArrayName)
        offsetFilter.SetOffsetNormalsArrayName(self.NormalsArrayName)
    offsetFilter.SetGroupIdsArrayName(self.GroupIdsArrayName)
    offsetFilter.SetCenterlineIdsArrayName(self.CenterlineIdsArrayName)
    offsetFilter.SetReferenceSystemsNormalArrayName(self.ReferenceSystemsNormalArrayName)
    offsetFilter.SetReferenceSystemsGroupIdsArrayName(self.GroupIdsArrayName)
    offsetFilter.SetReferenceGroupId(self.ReferenceGroupId)
    offsetFilter.Update()
    self.Centerlines = offsetFilter.GetOutput()
    if self.ReferenceGroupId == -1:
        self.ReferenceGroupId = offsetFilter.GetReferenceGroupId()
    if self.OwnRenderer:
        self.vmtkRenderer.Deallocate()