def calcRootLength(tiglHandle, wingIndex): ''' Calculates the length of the root section chord ''' x1, y1, z1 = getWingUpperPoint(tiglHandle, wingIndex, 1, 0, 0) x2, y2, z2 = getWingUpperPoint(tiglHandle, wingIndex, 1, 0, 1) return pointDistance(x1, y1, z1, x2, y2, z2)
def calcRootLength(tiglHandle, wingIndex): """ Calculates the length of the root section chord """ x1, y1, z1 = getWingUpperPoint(tiglHandle, wingIndex, 1, 0, 0) x2, y2, z2 = getWingUpperPoint(tiglHandle, wingIndex, 1, 0, 1) return pointDistance(x1, y1, z1, x2, y2, z2)
def calcTipLength(tiglHandle, wingIndex): ''' Calculates the length of the tip section chord ''' lastSegment = getWingSegmentCount(tiglHandle, wingIndex) x1, y1, z1 = getWingUpperPoint(tiglHandle, wingIndex, lastSegment, 1, 0) x2, y2, z2 = getWingUpperPoint(tiglHandle, wingIndex, lastSegment, 1, 1) return pointDistance(x1, y1, z1, x2, y2, z2)
def calcTipLength(tiglHandle, wingIndex): """ Calculates the length of the tip section chord """ lastSegment = getWingSegmentCount(tiglHandle, wingIndex) x1, y1, z1 = getWingUpperPoint(tiglHandle, wingIndex, lastSegment, 1, 0) x2, y2, z2 = getWingUpperPoint(tiglHandle, wingIndex, lastSegment, 1, 1) return pointDistance(x1, y1, z1, x2, y2, z2)