# Path: eppy/constructions/thermal_properties.py
# INSIDE_FILM_R = 0.12
# OUTSIDE_FILM_R = 0.03
# def rvalue(ddtt):
# def ufactor(ddtt):
# def ufactor_ip(ddtt):
# def rvalue_ip(ddtt):
# def heatcapacity(ddtt):
# 
# Path: eppy/geometry/surface.py
# def area(poly):
# def unit_normal(pt_a, pt_b, pt_c):
# def dist(pt1, pt2):
# def width(poly):
# def height(poly):
# def angle2vecs(vec1, vec2):
# def azimuth(poly):
# def true_azimuth(bldg_north, zone_rel_north, surf_azimuth):
# def tilt(poly):


import itertools
import eppy.fanpower
from itertools import zip_longest
from eppy.constructions import thermal_properties
from eppy.geometry import surface as g_surface

def getcoords(ddtt):
    """return the coordinates of the surface"""
    n_vertices_index = ddtt.objls.index("Number_of_Vertices")
    first_x = n_vertices_index + 1  # X of first coordinate
    pts = ddtt.obj[first_x:]
    return list(grouper(3, pts))


def area(ddtt):
    """area of the surface"""
    coords = getcoords(ddtt)
    return g_surface.area(coords)


def height(ddtt):
    """height of the surface"""
    coords = getcoords(ddtt)
    return g_surface.height(coords)


def width(ddtt):
    """width of the surface"""
    coords = getcoords(ddtt)
    return g_surface.width(coords)


def azimuth(ddtt):
    """azimuth of the surface"""
    coords = getcoords(ddtt)

# Path: eppy/constructions/thermal_properties.py
# INSIDE_FILM_R = 0.12
# OUTSIDE_FILM_R = 0.03
# def rvalue(ddtt):
# def ufactor(ddtt):
# def ufactor_ip(ddtt):
# def rvalue_ip(ddtt):
# def heatcapacity(ddtt):
# 
# Path: eppy/geometry/surface.py
# def area(poly):
# def unit_normal(pt_a, pt_b, pt_c):
# def dist(pt1, pt2):
# def width(poly):
# def height(poly):
# def angle2vecs(vec1, vec2):
# def azimuth(poly):
# def true_azimuth(bldg_north, zone_rel_north, surf_azimuth):
# def tilt(poly):


# Path: eppy/function_helpers.py
import itertools
import eppy.fanpower
from itertools import zip_longest
from eppy.constructions import thermal_properties
from eppy.geometry import surface as g_surface


def getcoords(ddtt):
    """return the coordinates of the surface"""
    n_vertices_index = ddtt.objls.index("Number_of_Vertices")
    first_x = n_vertices_index + 1  # X of first coordinate
    pts = ddtt.obj[first_x:]
    return list(grouper(3, pts))


def area(ddtt):
    """area of the surface"""
    coords = getcoords(ddtt)
    return g_surface.area(coords)


def height(ddtt):
    """height of the surface"""
    coords = getcoords(ddtt)
    return g_surface.height(coords)


def width(ddtt):
    """width of the surface"""
    coords = getcoords(ddtt)
    return g_surface.width(coords)


def azimuth(ddtt):
    """azimuth of the surface"""
    coords = getcoords(ddtt)

    return g_surface.azimuth(coords)