def get_polygon_section(polygon):
    """Returns 3D section of given polygon.

    For example, if poligon [(1.0, 2.0, 4.0), (2.2, 2.6, 4.6), (0.5, 3.3, 2.7)] is given, 
    this function returns (0.5, 2.2, 2.0, 3.3, 2.7, 4.6).
    """
    x_min = min(polygon[0::3])
    x_max = max(polygon[0::3])
    y_min = min(polygon[1::3])
    y_max = max(polygon[1::3])
    z_min = min(polygon[2::3])
    z_max = max(polygon[2::3])
    return [x_min, x_max, y_min, y_max, z_min, z_max]