Пример #1
0
def same_leg_joints_break_condition(three_legs, three_point_ids, n, height):
    for leg, point_id in zip(three_legs, three_point_ids):
        for other_point_id in OTHER_POINTS_MAP[point_id]:
            point = leg.get_point(other_point_id)
            if is_lower(point, height, n):
                return True
    return False
def no_other_legs_lower(n, height, other_points):
    for point in other_points:
        if is_lower(point, height, n):
            return False

    return True
Пример #3
0
def other_leg_joints_break_condition(other_three_legs, n, height):
    for leg in other_three_legs:
        for point in leg.all_points[1:]:
            if is_lower(point, height, n):
                return True
    return False