# This defines the attributes for a cutoff leading or trailing edge of a single bladed system.

# has variables opening (in/out), openingU (IN/OUT), 
#               bladeEnd (le/te), bladeEndU (LE/TE), 
#               position (leading/trailing), positionT (Leading/Trailing)

Attribute: Geometry=CreatePoint.ccl, [bladeEnd]b1, Create Pitch Offset Geometry=on, \
           Compute Reference Theta=on, Point Type = [bladeEndU], \
           Create Alternate Geometry = yes, Blade Number = 1
Attribute: Geometry=CreatePoint.ccl, [bladeEnd]2b1, Create Pitch Offset Geometry=on, \
           Reference Theta Source=[bladeEnd]b1, Point Type = [bladeEndU]2, \
           Create Alternate Geometry = yes, Blade Number = 1
Attribute: Geometry=CreatePoint.ccl, [opening] constant theta, Reference Theta Source=[bladeEnd]b1, \
           Point Type = Object and Curve Key, Geometry Object = /GEOMETRY/[openingU]LET, \
           Geometry Key = constant theta extended, Set Theta To Reference Theta = on, \
           Create Alternate Geometry = yes
Attribute: Geometry=CreateCurve.ccl, [opening] ext, Create Pitch Offset Geometry=off, \
           Source Point=[opening] constant theta, Curve Type = Rotation, \
           Geometry Object = /GEOMETRY/[openingU]LET, Geometry Key = extended full, \
           Create Alternate Geometry = yes
Attribute: Geometry=CreateBladeCurves.ccl, b1, Create Pitch Offset Geometry=on, \
           Reference Theta Source=leb1, Create Alternate Geometry = yes, Blade Number = 1, Blade Label = b1
Attribute: Geometry=Expose.ccl, low fullb1, Geometry Source = b1, Geometry Reference Name = Low Full
Attribute: Geometry=Expose.ccl, high fullb1, Geometry Source = b1, Geometry Reference Name = High Full
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 
Attribute: Geometry=Expose.ccl, [position] edgeb1, Geometry Source = b1, Geometry Reference Name = [positionT] Edge
Attribute: Geometry=ProjectedPoint.ccl, [bladeEnd] focal low, Source Point = [bladeEnd]2b1, \
           Use Pitch Offset Source Point = false, Projection Object = high fullb1, Working Space = Transformed
Attribute: Geometry=ProjectedPoint.ccl, [bladeEnd] focal high, Source Point = [bladeEnd]b1, \
           Use Pitch Offset Source Point = true, Projection Object = low fullb1, \
           Use Pitch Offset Projection Object = true, Working Space = Transformed
Attribute: Geometry=PassageCurve.ccl, [bladeEnd] passage focal, Passage Curve Type = [bladeEndU] Pinning Line, \
           Passage Parameterization Source = passageb1, Pinning Line Model = Cutoff
# ================
#   focal curves
# ================
# -- need extra point
Attribute: Geometry=TranslatedPoint.ccl, [bladeEnd]b1tra, Source Point=[bladeEnd]b1, Pitch Multiple=1
Attribute: Geometry=CurveFromPoints.ccl, [bladeEnd] focal, Point List = [bladeEnd]2b1$ [bladeEnd]b1tra
# -- need extra point
Attribute: Geometry=TranslatedPoint.ccl, [bladeEnd]2b1Mtra, Source Point=[bladeEnd]2b1, Pitch Multiple=-1
Attribute: Geometry=CurveFromPoints.ccl, [bladeEnd] focal minus,  Point List = [bladeEnd]2b1Mtra$ [bladeEnd]b1

Attribute: Geometry=ComputeDistance.ccl, [bladeEnd] blade height, Source Point = [bladeEnd]b1, \
           Second Source Point = [bladeEnd]2b1, Working Space = Transformed
Attribute: Geometry=ComputeDistance.ccl, [bladeEnd] passage height, Source Point = [bladeEnd]b1, \
           Use Pitch Offset Source Point = true, Second Source Point = [bladeEnd]2b1, Working Space = Transformed
