# Creates the geometry around the leading edge of the splitter blade for systems
# with two blades.
# has variables bladeNumber (1, ..), bladeNumberBelow (),bladeNumberAbove (),  passageSource (), periodic ("p" or "")

# =================================
#  Pinning Lines for Splitter LE
# =================================
Attribute: Geometry=SplitterProximityGeometry.ccl, b[bladeNumber] proximity, Blade End  = LE, \
           Source Point = leb[bladeNumber], Passage Parameterization Source = [passageSource], \
           High Blade Curve = high b[bladeNumber], Low Blade Curve = low b[bladeNumber], Main Passage Curve = mpc b[bladeNumber], \
           Splitter Low Passage Curve = slpc b[bladeNumber], Splitter High Passage Curve = shpc b[bladeNumber]
#
#--
#
Attribute: Geometry=Expose.ccl, mpc b[bladeNumber], Geometry Source = b[bladeNumber] proximity, Geometry Reference Name = Main Passage Curve

Attribute: Geometry=ProjectedPoint.ccl, mpc b[bladeNumber] low , Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object =mpc b[bladeNumber], \
           Reprojection Object= high b[bladeNumberBelow], Reprojection Iteration Count=50, Working Space = Transformed

Attribute: Geometry=ProjectedPoint.ccl, mpc b[bladeNumber] high , Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object =mpc b[bladeNumber], \
           Reprojection Object= low b[bladeNumberAbove] [periodic], Reprojection Iteration Count=50, Working Space = Transformed
#Attribute: Geometry=PointOnCurve.ccl, mpc high b[bladeNumber],  Curve Object = mpc b[bladeNumber], Location Method = End
#
#--
#
Attribute: Geometry=Expose.ccl, slpc b[bladeNumber], Geometry Source = b[bladeNumber] proximity, Geometry Reference Name = Splitter Low Passage Curve
Attribute: Geometry=ProjectedPoint.ccl, slpc b[bladeNumber] low , Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object =slpc b[bladeNumber], \
           Reprojection Object= high b[bladeNumberBelow], Reprojection Iteration Count=50, Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, slpc b[bladeNumber] high , Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object =slpc b[bladeNumber], \
           Reprojection Object= low b[bladeNumber], Reprojection Iteration Count=50, Working Space = Transformed
#
#--
#
Attribute: Geometry=Expose.ccl, shpc b[bladeNumber], Geometry Source = b[bladeNumber] proximity, Geometry Reference Name = Splitter High Passage Curve
Attribute: Geometry=ProjectedPoint.ccl, shpc b[bladeNumber] low , Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object =shpc b[bladeNumber], \
           Reprojection Object= high b[bladeNumber], Reprojection Iteration Count=50, Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, shpc b[bladeNumber] high , Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object =shpc b[bladeNumber], \
           Reprojection Object= low b[bladeNumberAbove] [periodic], Reprojection Iteration Count=50, Working Space = Transformed

#Attribute: Geometry=PointOnCurve.ccl, shpc low b[bladeNumber],  Curve Object = shpc b[bladeNumber], Location Method = Beginning
#Attribute: Geometry=PointOnCurve.ccl, shpc high b[bladeNumber], Curve Object = shpc b[bladeNumber], Location Method = End 
# =====================================
# get Passage curve at leb[bladeNumber] location
#======================================
Attribute: Geometry=PassageCurve.ccl, constLEb[bladeNumber], Passage Curve Type =Constant U From Point, \
           Passage Parameterization Source = [passageSource], Source Point = le focal pointb[bladeNumber], \
           Passage Curve Direction = Both

# -- we need four points

Attribute: Geometry=ProjectedPoint.ccl, lowpassWS b[bladeNumber], Source Point = le focal pointb[bladeNumber],\
           Use Pitch Offset Source Point = false, Projection Object = constLEb[bladeNumber], \
           Reprojection Object= high b[bladeNumberBelow], Reprojection Iteration Count=50, Working Space = Transformed

Attribute: Geometry=ProjectedPoint.ccl, lowpassWN b[bladeNumber], Source Point = le focal pointb[bladeNumber], \
           Use Pitch Offset Source Point = false, Projection Object = constLEb[bladeNumber], \
           Reprojection Object= low b[bladeNumber], Reprojection Iteration Count=50, Working Space = Transformed
#
Attribute: Geometry=ProjectedPoint.ccl, highpassWS b[bladeNumber], Source Point = le focal pointb[bladeNumber], \
           Use Pitch Offset Source Point = false, Projection Object = constLEb[bladeNumber], \
           Reprojection Object= high b[bladeNumber],   Reprojection Iteration Count=50, Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, highpassWN b[bladeNumber], Source Point = le focal pointb[bladeNumber], \
           Use Pitch Offset Source Point = false, Projection Object = constLEb[bladeNumber], \
           Reprojection Object= low b[bladeNumberAbove] [periodic], Use Pitch Offset Reprojection Object = false, \
           Reprojection Iteration Count=50, Working Space = Transformed
