def METHOD_NAME(self):
    if not any(output.is_linked for output in self.outputs):
        return
    vertices_s = self.inputs['Vertices'].sv_get(default=[[]])
    out_centers = []
    out_normals = []
    out_directions = []
    out_projections = []
    out_diffs = []
    out_distances = []
    for vertices in vertices_s:
        approx = linear_approximation(vertices)
        out_centers.append(approx.center)
        if self.mode == 'Line':
            line = approx.most_similar_line()
            out_directions.append(tuple(line.direction.normalized()))
            projections = []
            diffs = []
            distances = []
            for vertex in vertices:
                projection = line.projection_of_point(vertex)
                projections.append(tuple(projection))
                diff = projection - Vector(vertex)
                diffs.append(tuple(diff))
                distances.append(diff.length)
            out_projections.append(projections)
            out_diffs.append(diffs)
            out_distances.append(distances)
        elif self.mode == 'Plane':
            plane = approx.most_similar_plane()
            out_normals.append(tuple(plane.normal.normalized()))
            projections = []
            diffs = []
            distances = list(map(float, list(plane.distance_to_points(vertices))))
            projections_np = plane.projection_of_points(vertices)
            vertices_np = np.array(vertices)
            projections = list(map(tuple, list(projections_np)))
            diffs_np = projections_np - vertices_np
            diffs = list(map(tuple, list(diffs_np)))
            out_projections.append(projections)
            out_diffs.append(diffs)
            out_distances.append(distances)
    self.outputs['Center'].sv_set([out_centers])
    self.outputs['Normal'].sv_set([out_normals])
    self.outputs['Direction'].sv_set([out_directions])
    self.outputs['Projections'].sv_set(out_projections)
    self.outputs['Diffs'].sv_set(out_diffs)
    self.outputs['Distances'].sv_set(out_distances)