def calc_intersection_face_solid(index, data_processed):
    if calculate.point_in_solid(
            data_processed.point_to_evaluate,
            data_processed.surroundings_building_solid_list[index]):
        intersects = 1
    else:
        intersects = 0
    return intersects
Esempio n. 2
0
def calc_intersection_face_solid(potentially_intersecting_solid, point):
    with cea.utilities.devnull():
        point_in_solid = calculate.point_in_solid(
            point.point_to_evaluate, potentially_intersecting_solid)
    if point_in_solid:
        intersects = 1
    else:
        intersects = 0
    return intersects
def calc_intersection_face_solid(index, data_processed):
    with cea.utilities.devnull():
        point_in_solid = calculate.point_in_solid(data_processed.point_to_evaluate,
                                                  data_processed.potentially_intersecting_solids[index])
    if point_in_solid:
        intersects = 1
    else:
        intersects = 0
    return intersects