[bfdf16]: / Body / AAUHuman / BodyModels / GenericBodyModel / LeftLegModel.any

Download this file

89 lines (68 with data), 2.7 kB

Left = 
{
  AnyFolder Leg = 
  {  
    
    #define _LEFT_RIGHT_ "Left"
    
    #include "..\..\Leg\Leg.root.any"
    
    #undef _LEFT_RIGHT_
    
    AnyFolder &InterfaceFolder =..Interface.Left;
    //Reference to folder 
    AnyFolder &MannequinValuesFolder = ..MannequinValuesFromModel.AnyFolder_Posture.AnyFolder_Left;

    
    #include "../Include/SettingsLeg.any"
    AnyFolder &Scaling = ...Scaling;
    AnyFolder &StandardParameters =...Scaling.StandardParameters.Left;
    AnyFolder &GeoScaling =...Scaling.GeometricalScaling.Left;
    AnyFolder &MassScaling =...Scaling.MassScaling.Left;
    AnyFolder &FiberLengthScaling =...Scaling.FiberLengthScaling.Left;
    AnyFolder &StrengthScaling =...Scaling.StrengthScaling.Left;
    
    //-------------------------------------------------------
    // Interface references that specifies what the leg "Leg/Leg.any" should connect to 
    //-------------------------------------------------------
    AnyRefFrame &HipNodeRef= ..Trunk.SegmentsLumbar.PelvisSeg.HipJointLeft;
    //This is a sign variable which indicates that this is the left side
    AnyVar Sign =-1;
    
    AnyFolder BonesOpacity = 
    {
      AnyVar Foot = Main.DrawSettings.BonesOpacity.LeftFoot;
      AnyVar Shank = Main.DrawSettings.BonesOpacity.LeftShank;
      AnyVar Thigh = Main.DrawSettings.BonesOpacity.LeftThigh;
    };
    
    #if (BM_LEG_MUSCLES_LEFT != OFF) | (BM_TRUNK_LUMBAR_MUSCLES != OFF)
        AnyFolder &TrunkMuscles = ..Trunk.MusclesSpineLeft;
    #endif        
    
    AnyFolder MomentMeasure=
    {
      #if (BM_LEG_MUSCLES_LEFT == OFF)
        AnyForceMomentMeasure KneeJointReactionMoments = 
        {
          AnyForceBase &Force = ..Jnt.Knee.Constraints.Reaction;
          AnyRefFrame &Thighknee = ..Seg.Thigh.KneeJoint;
          AnyVec3 Mlocal = M*Thighknee.Axes;
        };        
      #else        
        AnyFolder &TrunkMuscles = ...Trunk.MusclesSpineLeft;
        #include "..\..\Leg\LegMoments.any"
      #endif
    };

      
  };//End Leg
  
};

  
Trunk = 
{
  AnyRefFrame &PsoasMajorLeftReference=.Left.Leg.Seg.Thigh;
};

  
#if (BM_LEG_MUSCLES_LEFT == OFF)
  #include "../../Leg/LeftLegNoMusclesSelectedOutput.any"
#else
  #if (BM_LEG_MUSCLES_LEFT == _MUSCLES_SIMPLE_)
    #include "../../Leg/LeftLegSimpleMusclesSelectedOutput.any"
  #endif
  
  #if (BM_LEG_MUSCLES_LEFT == _MUSCLES_3E_HILL_)
    #include "../../Leg/LeftLegMuscles3ESelectedOutput.any"
  #endif
#endif
  
#if (BM_LEG_MUSCLES_LEFT != OFF)

 #if BM_TRUNK_LUMBAR_MUSCLES == OFF
 #include "LeftPsoas.any"
 #else
 #endif  

#endif