# This defines the geometry attributes for the corresponding topology.

# Blade 1: Leading blade b1

# LE of Blade 1
include: roundBladeEndGeometry2.atf, opening=in, \
                                    openingU=IN, \
                                    bladeEnd=le, \
                                    bladeEndU=LE, \
                                    position=leading, \
                                    positionT=Leading, \
                                    bladeNumber=1
Attribute: Geometry=Expose.ccl, high b1,     Geometry Source = b1, Geometry Reference Name = High
Attribute: Geometry=Expose.ccl, low b1,      Geometry Source = b1, Geometry Reference Name = Low

# Create: Passage Parametrization Blade 1 => passageb1
Attribute: Geometry=PassageParameterization.ccl, passageb1, N Curve = low fullb1, \
           Use Pitch Offset N Curve = true, S Curve = high fullb1, E Curve = te focal b1, \
           W Curve = le focal b1, NE Point = te focal high b1, NW Point = le focal high b1, \
           SE Point = te focal low b1, SW Point = le focal low b1

# From: passageb1 =>  Another te focal curve for Blade 1
Attribute: Geometry=PassageCurve.ccl, te passage focal2 b1, Passage Curve Type = Constant U, \
                    Passage Parameterization Source = passageb1, Parameterization Value Source = te passage focal2 u b1, Passage Curve Direction = Both


Attribute: Geometry=ParameterizationValue.ccl, te passage focal2 u b1, Parameterization Value Type = Specified, \
		    Parameterization Value = 0.85
Attribute: Geometry=ProjectedPoint.ccl, te focal2 low b1, Source Point = te focal low b1, \
                    Projection Object = high fullb1, Use Pitch Offset Projection Object = off, \
                    Reprojection Object = te passage focal2 b1, Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, te focal2 high b1, Source Point = te focal high b1, \
                    Projection Object = low fullb1, Use Pitch Offset Projection Object = on, \
                    Reprojection Object = te passage focal2 b1, Working Space = Transformed
           
# TE for Blade 1
include: roundBladeEndGeometry2.atf, opening=out, \
                                    openingU=OUT, \
                                    bladeEnd=te, \
                                    bladeEndU=TE, \
                                    position=trailing, \
                                    positionT=Trailing, \
                                    bladeNumber=1

# Blade 2: Trailing blade b2

# LE for Blade 2
include: roundBladeEndGeometry2.atf, opening=in, \
                                    openingU=IN, \
                                    bladeEnd=le, \
                                    bladeEndU=LE, \
                                    position=leading, \
                                    positionT=Leading, \
                                    bladeNumber=2
Attribute: Geometry=Expose.ccl, high b2,     Geometry Source = b2, Geometry Reference Name = High
Attribute: Geometry=Expose.ccl, low b2,      Geometry Source = b2, Geometry Reference Name = Low

# Passage Parametrization for Blade 2 => passageb2
Attribute: Geometry=PassageParameterization.ccl, passageb2, N Curve = low fullb2, \
           Use Pitch Offset N Curve = true, S Curve = high fullb2, E Curve = te focal b2, \
           W Curve = le focal b2, NE Point = te focal high b2, NW Point = le focal high b2, \
           SE Point = te focal low b2, SW Point = le focal low b2

# Extra passage le focal curve for Blade 2
Attribute: Geometry=PassageCurve.ccl, le passage focal2 b2, Passage Curve Type = Constant U, \
                    Passage Parameterization Source = passageb2, Parameterization Value Source = le passage focal2 u b2, Passage Curve Direction = Both
Attribute: Geometry=ParameterizationValue.ccl, le passage focal2 u b2, Parameterization Value Type = Specified, \
		    Parameterization Value = 0.2
Attribute: Geometry=ProjectedPoint.ccl, le focal2 low b2, Source Point = le focal low b2, \
                    Projection Object = high fullb2, Use Pitch Offset Projection Object = off, \
                    Reprojection Object = le passage focal2 b2, Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, le focal2 high b2, Source Point = le focal high b2, \
                    Projection Object = low fullb2, Use Pitch Offset Projection Object = on, \
                    Reprojection Object = le passage focal2 b2, Working Space = Transformed
           
# TE for Blade 2
include: roundBladeEndGeometry2.atf, opening=out, \
                                    openingU=OUT, \
                                    bladeEnd=te, \
                                    bladeEndU=TE, \
                                    position=trailing, \
                                    positionT=Trailing, \
                                    bladeNumber=2
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#   Try to get half point between TE blade 1 projected to blade 2 low
#                            and  LE blade 2 projected to blade 1 high 
#   process -> project points to opposing balades
#              create 2 curves out of those points
#              get  mid points, project them to blades
#               
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
# Project traililing edge blade1 to low blade2
Attribute: Geometry=ProjectedPoint.ccl, b2 a, Source Point = teb1 proj, \
                    Projection Object = low b2, Use Pitch Offset Projection Object = off, \
                    Reprojection Object = , Working Space = Transformed

Attribute: Geometry=ProjectedPoint.ccl, b1 a, Source Point = leb2 proj, \
                    Projection Object = high b1, Use Pitch Offset Projection Object = off, \
                    Reprojection Object = , Working Space = Transformed

Attribute: Geometry=CurveFromPoints.ccl, cb1, Point List =b1 a$ teb1 proj
Attribute: Geometry=CurveFromPoints.ccl, cb2, Point List =leb2 proj$ b2 a
# mid points

Attribute: Geometry=PointOnCurve.ccl, mid b1, Curve Object = cb1, Location Method = Parametric Location,  Parametric Location = 0.5 
Attribute: Geometry=PointOnCurve.ccl, mid b2, Curve Object = cb2, Location Method = Parametric Location,  Parametric Location = 0.5 
Attribute: Geometry=ProjectedPoint.ccl, mid b1 proj, Source Point = mid b1, \
                    Projection Object = high b1 , Use Pitch Offset Projection Object = off, \
                    Reprojection Object = , Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, mid b2 proj, Source Point = mid b2, \
                    Projection Object = low b2, Use Pitch Offset Projection Object = off, \
                    Reprojection Object = , Working Space = Transformed
Attribute: Geometry=TranslatedPoint.ccl, mid b1 proj p, \
                    Source Point = mid b1 proj, Pitch Multiple = 1
                    
Attribute: Geometry=TranslatedPoint.ccl, mid b2 proj p, \
                    Source Point = mid b2 proj, Pitch Multiple = 1
                    
Attribute: Geometry=CurveFromPoints.ccl, b1 to b2,   Point List = mid b1 proj$ mid b2 proj
Attribute: Geometry=CurveFromPoints.ccl, b1 to b2 p, Point List = mid b1 proj p$ mid b2 proj p

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #



