From fc66af93c97a9132184bd43f8684e8c5d1cdafa5 Mon Sep 17 00:00:00 2001 From: bkje14 <42773361+bkje14@users.noreply.github.com> Date: Wed, 11 Dec 2024 14:21:01 +0100 Subject: [PATCH] feat: Components & Groups w. new Muscle structure in Arms & Legs (#31) * move code block to show muscles first in ModelTree Mus folder * add bm compatibility define statement * remove deprecated member for AnyDoc * reorganize members in the Trunk folder * disable development object in interpol template * chore: formatting * add new component and group templates * implement templating in trunk muscles * implement templates for leg muscles * add new component def for 8.2 versions * add conditional check for jointMuscles component * move detailed hand component def * implement muscle groups in arm model * add test of bm switch * fix musclesleft file * fix muscles right file * format code * move abdominal model parts inside Abdominal folder * rename deltoid group for consistency * fix arm calibration study path to muscles * add musclegroup level to arm output * update macro for creating arm output variables * update macro for creating leg output variables * fix failing airline test model * chore: changelog entry * Updated changelog with warning about the muscle location change * add missing references to leg viapoint muscles * fix wrong path of muscle ref * fix merging with latest ammr4.0 * Added section for migration from AMMR 3 in Docs --------- Co-authored-by: Morten Enemark Lund --- .../AirlinePassenger.main.any | 2 +- .../StandingModel/StandingModel.Main.any | 3 + Body/AAUHuman/Arm/Calibration/ArmCal1.any | 14 +- Body/AAUHuman/Arm/EvaluateMomentArmsStudy.any | 83 +- .../Arm/LeftArmMusclesSelectedOutput.any | 2 +- Body/AAUHuman/Arm/Muscle.any | 4108 +++++++------ .../Arm/RightArmMusclesSelectedOutput.any | 2 +- Body/AAUHuman/Arm/ShoulderArmModel.root.any | 47 +- Body/AAUHuman/Arm/ThoraxWrappingSurfaces.any | 22 +- .../Arm/ammr_3.0_compatibility_structure.any | 184 + Body/AAUHuman/Arm/armmuscles_for_output.any | 354 +- Body/AAUHuman/Arm/levator_scapulae.any | 27 - Body/AAUHuman/Arm/sternocleidomastoid.any | 14 - Body/AAUHuman/Arm/trapezius_clavicular.any | 41 - Body/AAUHuman/Arm/trapezius_scapular.any | 131 - .../BodyModels/GenericBodyModel/BodyModel.any | 12 +- .../BodyModel.config_info.any | 10 + .../GenericBodyModel/BodyModel.defaults.any | 5 + ...onentAndGroupDefinitions.ClassTemplate.any | 33 + .../GenericBodyModel/ComponentDefinitions.any | 106 + .../GenericBodyModel/ComponentTreeConfig.any | 27 +- .../GenericBodyModel/Ifdef_BM_param.any | 6 + .../BodyModels/GenericBodyModel/ammr-beta.any | 10 +- .../GenericBodyModel/undef_BM_params.any | 4 + Body/AAUHuman/HumanModel.defs.any | 1 + .../LegTLEM/EvaluateJointStrengthStudy.any | 2 +- .../LegTLEM/EvaluateMomentArmsStudy.any | 8 +- .../LegTLEM/LeftLegSelectedOutput.any | 92 +- Body/AAUHuman/LegTLEM/Mus.any | 3310 ++++++----- .../LegTLEM/RightLegSelectedOutput.any | 1006 ++-- .../ammr_3.0_compatibility_structure.any | 158 + .../LegTLEM/legmuscles_for_output.any | 340 +- .../Trunk/AbdomenPassiveReactions.any | 32 +- .../Abdominal/AbdominalPressureModel.any | 2 +- Body/AAUHuman/Trunk/CreateMeshForWrapping.any | 53 +- Body/AAUHuman/Trunk/MusclesLeft.any | 5280 ++++++++-------- Body/AAUHuman/Trunk/MusclesMid.any | 366 +- Body/AAUHuman/Trunk/MusclesRight.any | 5294 ++++++++--------- .../TrunkMuscleActivityEnvelope.any | 18 +- .../TrunkData1.1/InterpolFunWithSPar.any | 18 +- Body/AAUHuman/Trunk/TrunkModel.root.any | 84 +- Body/AAUHuman/bm-parameters.toml | 6 + CHANGELOG.md | 30 +- Docs/migration.md | 178 +- Docs/migration2to3.md | 175 + Docs/migration3to4.md | 61 + .../test_bm_compatibility_switches.any | 35 +- 47 files changed, 11145 insertions(+), 10651 deletions(-) create mode 100644 Body/AAUHuman/Arm/ammr_3.0_compatibility_structure.any delete mode 100644 Body/AAUHuman/Arm/levator_scapulae.any delete mode 100644 Body/AAUHuman/Arm/sternocleidomastoid.any delete mode 100644 Body/AAUHuman/Arm/trapezius_clavicular.any delete mode 100644 Body/AAUHuman/Arm/trapezius_scapular.any create mode 100644 Body/AAUHuman/BodyModels/GenericBodyModel/ComponentAndGroupDefinitions.ClassTemplate.any create mode 100644 Body/AAUHuman/BodyModels/GenericBodyModel/ComponentDefinitions.any create mode 100644 Body/AAUHuman/LegTLEM/ammr_3.0_compatibility_structure.any create mode 100644 Docs/migration2to3.md create mode 100644 Docs/migration3to4.md diff --git a/Application/Examples/AirlinePassenger/AirlinePassenger.main.any b/Application/Examples/AirlinePassenger/AirlinePassenger.main.any index 4ff4400ee..af8de85fc 100644 --- a/Application/Examples/AirlinePassenger/AirlinePassenger.main.any +++ b/Application/Examples/AirlinePassenger/AirlinePassenger.main.any @@ -98,7 +98,7 @@ Main = { This is because seats with slippery surfaces reduce the shear force on the buttocks but in return require vasti muscle acitivity to prevent the body from sliding forward on the seat pan.*/ - AnySearchFun Vastus_Act={ Search = "Main.HumanModel.BodyModel.Right.Leg.Mus.Vastus*.Activity"; }; + AnySearchFun Vastus_Act={ Search = "Main.HumanModel.BodyModel.Right.Leg.Mus.Vastus*.*.Activity"; }; AnyFloat Activity = max(Vastus_Act()); /** This variable collects the shear force between the buttocks and the seat diff --git a/Application/Examples/StandingModel/StandingModel.Main.any b/Application/Examples/StandingModel/StandingModel.Main.any index ee3ef4cf7..43414d2f8 100644 --- a/Application/Examples/StandingModel/StandingModel.Main.any +++ b/Application/Examples/StandingModel/StandingModel.Main.any @@ -3,6 +3,9 @@ Main = { + + #define BM_COMPATIBILITY_MUSCLE_STRUCTURE ON + // BodyModel configuration: #include "Model/BodyModelConfiguration.any" diff --git a/Body/AAUHuman/Arm/Calibration/ArmCal1.any b/Body/AAUHuman/Arm/Calibration/ArmCal1.any index f470ffd2c..9ff3d7ce3 100644 --- a/Body/AAUHuman/Arm/Calibration/ArmCal1.any +++ b/Body/AAUHuman/Arm/Calibration/ArmCal1.any @@ -23,14 +23,14 @@ AnyFolder ArmCal1 ={ #endif #if BM_ARM_DELTOID_WRAPPING == _DELTOID_WRAPPING_RAKE_ - AnyMuscleShortestPath &del1 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_scapular_part_1; - AnyMuscleShortestPath &del2 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_scapular_part_2; - AnyMuscleShortestPath &del3 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_scapular_part_3; + AnyMuscleShortestPath &del1 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusScapular.deltoideus_scapular_part_1; + AnyMuscleShortestPath &del2 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusScapular.deltoideus_scapular_part_2; + AnyMuscleShortestPath &del3 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusScapular.deltoideus_scapular_part_3; #else - AnyMuscleShortestPath &del1 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_posterior_part_1; - AnyMuscleShortestPath &del2 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_posterior_part_2; - AnyMuscleShortestPath &del3 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_posterior_part_3; - AnyMuscleShortestPath &del4 = .SideHumanFolderRef.ShoulderArm.Mus.deltoideus_posterior_part_4; + AnyMuscleShortestPath &del1 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusPosterior.deltoideus_posterior_part_1; + AnyMuscleShortestPath &del2 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusPosterior.deltoideus_posterior_part_2; + AnyMuscleShortestPath &del3 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusPosterior.deltoideus_posterior_part_3; + AnyMuscleShortestPath &del4 = .SideHumanFolderRef.ShoulderArm.Mus.DeltoideusPosterior.deltoideus_posterior_part_4; #endif AnyFolder &MusParCalSide = .SideHumanFolderRef.ShoulderArm.MuscleModels; diff --git a/Body/AAUHuman/Arm/EvaluateMomentArmsStudy.any b/Body/AAUHuman/Arm/EvaluateMomentArmsStudy.any index 363f9cfbc..09f6cd018 100644 --- a/Body/AAUHuman/Arm/EvaluateMomentArmsStudy.any +++ b/Body/AAUHuman/Arm/EvaluateMomentArmsStudy.any @@ -10,15 +10,15 @@ AnyFolder Model = { AnyFolder &ArmSegSideRef = .SideBodyModelRef.ShoulderArm.Seg; AnyFolder &ArmJntsRef = .SideBodyModelRef.ShoulderArm.Jnt; AnyFolder &MusRef = .SideBodyModelRef.ShoulderArm.Mus; - - + + AnyFixedRefFrame ground = { AnyRefNode node = { - ARel=..ThoraxRef.Axes0; + ARel=..ThoraxRef.Axes0; sRel=..ThoraxRef.r0; }; }; - + AnyKinEq FixSkullThoraxPelvis = { AnyKinMeasure& SkullThorax = ......BodyModel.Trunk.Joints.Cervical.SkullThoraxRotMeasure; @@ -29,20 +29,20 @@ AnyFolder Model = { AnyVar AngularVelocity = (..RangeOfMotion[1]-..RangeOfMotion[0])*pi/180; AnyKinMeasureOrg ArmMeasure = { - #if BM_ARM_SHOULDER_RHYTHM == OFF - AnyKinMeasure& SCProtraction= ...SideBodyInterfaceRef.SternoClavicularProtraction; - AnyKinMeasure& SCElevation= ...SideBodyInterfaceRef.SternoClavicularElevation; - #endif - AnyKinMeasure& GHAbduction= ...SideBodyInterfaceRef.GlenohumeralAbduction; - AnyKinMeasure& GHFlexion= ...SideBodyInterfaceRef.GlenohumeralFlexion; - AnyKinMeasure& GHExternalRotation= ...SideBodyInterfaceRef.GlenohumeralExternalRotation; - AnyKinMeasure& ElbowFlexion= ...SideBodyInterfaceRef.ElbowFlexion; - AnyKinMeasure& ElbowPronation= ...SideBodyInterfaceRef.ElbowPronation; - AnyKinMeasure& WristFlexion= ...SideBodyInterfaceRef.WristFlexion; - AnyKinMeasure& WristAbduction= ...SideBodyInterfaceRef.WristAbduction; - #if BM_ARM_CLAVICULA_ROTATION_RHYTHM == OFF - AnyKinMeasure& ACMedialRotation= ...SideBodyInterfaceRef.AcromioClavicular.MedialRotation; - #endif + #if BM_ARM_SHOULDER_RHYTHM == OFF + AnyKinMeasure& SCProtraction= ...SideBodyInterfaceRef.SternoClavicularProtraction; + AnyKinMeasure& SCElevation= ...SideBodyInterfaceRef.SternoClavicularElevation; + #endif + AnyKinMeasure& GHAbduction= ...SideBodyInterfaceRef.GlenohumeralAbduction; + AnyKinMeasure& GHFlexion= ...SideBodyInterfaceRef.GlenohumeralFlexion; + AnyKinMeasure& GHExternalRotation= ...SideBodyInterfaceRef.GlenohumeralExternalRotation; + AnyKinMeasure& ElbowFlexion= ...SideBodyInterfaceRef.ElbowFlexion; + AnyKinMeasure& ElbowPronation= ...SideBodyInterfaceRef.ElbowPronation; + AnyKinMeasure& WristFlexion= ...SideBodyInterfaceRef.WristFlexion; + AnyKinMeasure& WristAbduction= ...SideBodyInterfaceRef.WristAbduction; + #if BM_ARM_CLAVICULA_ROTATION_RHYTHM == OFF + AnyKinMeasure& ACMedialRotation= ...SideBodyInterfaceRef.AcromioClavicular.MedialRotation; + #endif }; AnyKinEqSimpleDriver ArmDriver= { @@ -62,16 +62,16 @@ AnyFolder Model = { DriverVel = Mask* (...RangeOfMotion[1]-...RangeOfMotion[0])*pi/180/...Study.tEnd; }; - - AnyStdJoint TrunkGround={ - AnyRefFrame &Ground = ..ground.node; - AnyRefFrame &Thorax= ..ThoraxRef; - }; - + + AnyStdJoint TrunkGround={ + AnyRefFrame &Ground = ..ground.node; + AnyRefFrame &Thorax= ..ThoraxRef; + }; + };// Drivers };// Model - + AnyKinStudy Study = { Gravity = {0,0,0}; #ifdef EVALUATE_MOMENT_ARMS_NSTEP @@ -81,7 +81,7 @@ AnyKinStudy Study = { #endif Kinematics.SmallStepAssumptionOnOff = Off; InitialConditions.SmallStepAssumptionOnOff = Off; - + AnyFolder &Model = .Model; AnyOutputFun AngularVelocity_output = {Val = ..Model.Drivers.AngularVelocity;}; @@ -89,27 +89,27 @@ AnyKinStudy Study = { AnyFolder Abscissa = { AnyVar JointAngle = not(not(..Model.Drivers.ArmDriver.DriverVel))*..Model.Drivers.ArmMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( .Model.MusRef.name.Strength); - #include "armmuscles_for_output.any" -#undef _CODE_MACRO_ + #define _CODE_MACRO_(muscle, branch) AnyVar branch = ( ..Model.MusRef.muscle.branch.Strength); + #include "armmuscles_for_output.any" + #undef _CODE_MACRO_ }; - + AnyFolder PennationAngleCalculations = { AnyFolder Abscissa = { AnyVar JointAngle = not(not(..Model.Drivers.ArmDriver.DriverVel))*..Model.Drivers.ArmMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( .Model.MusRef.name.PennationAngle * 180/pi); - #include "armmuscles_for_output.any" -#undef _CODE_MACRO_ + #define _CODE_MACRO_(muscle, branch) AnyVar branch = ( ..Model.MusRef.muscle.branch.PennationAngle * 180/pi); + #include "armmuscles_for_output.any" + #undef _CODE_MACRO_ }; AnyFolder MomentArmCalculations = { AnyFolder Abscissa = { AnyVar JointAngle = not(not(..Model.Drivers.ArmDriver.DriverVel))*..Model.Drivers.ArmMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( -1*.Model.MusRef.name.LmtDot/.Model.Drivers.AngularVelocity); - #include "armmuscles_for_output.any" -#undef _CODE_MACRO_ + #define _CODE_MACRO_(muscle, branch) AnyVar branch = ( -1*..Model.MusRef.muscle.branch.LmtDot/..Model.Drivers.AngularVelocity); + #include "armmuscles_for_output.any" + #undef _CODE_MACRO_ }; }; @@ -122,11 +122,12 @@ AnyProject ModelViews = {}; ModelViews = { AnyDrawGroup Selection = { - Objects = arrcat(ObjSearchRecursive(CompleteNameOf(&..Model.ThoraxRef), "*", "AnyDrawObject"), - ObjSearchRecursive(CompleteNameOf(&..Model.CervicalSpineSegRef), "*", "AnyDrawObject"), - ObjSearchRecursive(CompleteNameOf(&..Model.SkullRef), "*", "AnyDrawObject"), - ObjSearchRecursive(CompleteNameOf(&..Model.ArmSegSideRef), "*", "AnyDrawObject"), - ObjSearchRecursive(CompleteNameOf(&..Model.MusRef ), "*", "AnyDrawObject")); + Objects = arrcat( + ObjSearchRecursive(CompleteNameOf(&..Model.ThoraxRef), "*", "AnyDrawObject"), + ObjSearchRecursive(CompleteNameOf(&..Model.CervicalSpineSegRef), "*", "AnyDrawObject"), + ObjSearchRecursive(CompleteNameOf(&..Model.SkullRef), "*", "AnyDrawObject"), + ObjSearchRecursive(CompleteNameOf(&..Model.ArmSegSideRef), "*", "AnyDrawObject"), + ObjSearchRecursive(CompleteNameOf(&..Model.MusRef ), "*", "AnyDrawObject")); }; Views = { AnyProjectModelViewDefinition SelectedView = { diff --git a/Body/AAUHuman/Arm/LeftArmMusclesSelectedOutput.any b/Body/AAUHuman/Arm/LeftArmMusclesSelectedOutput.any index 166429fc2..d8635dca4 100644 --- a/Body/AAUHuman/Arm/LeftArmMusclesSelectedOutput.any +++ b/Body/AAUHuman/Arm/LeftArmMusclesSelectedOutput.any @@ -121,7 +121,7 @@ SelectedOutput.Left = { #if BM_ARM_MUSCLES_LEFT == OFF ".....Left.ShoulderArm.JointMuscles.*.*.dof0.Muscle.*.Activity"; #else - ".....Left.ShoulderArm.Mus.*.Activity"; + ".....Left.ShoulderArm.Mus.*.*.Activity"; #endif }; diff --git a/Body/AAUHuman/Arm/Muscle.any b/Body/AAUHuman/Arm/Muscle.any index eda857972..705a15483 100644 --- a/Body/AAUHuman/Arm/Muscle.any +++ b/Body/AAUHuman/Arm/Muscle.any @@ -1,2232 +1,2470 @@ -#include "levator_scapulae.any" -#include "trapezius_clavicular.any" -#include "sternocleidomastoid.any" -#include "trapezius_scapular.any" - -#include "ThoraxWrappingSurfaces.any" - -AnySurfSphere &art_tub_minus_tub_majusRef = .Seg.Humerus.art_tub_minus_tub_majus.art_tub_minus_tub_majusSurf; -AnySurfCylinder &bicepscyl = .Seg.Radius.BicepsCyl.cyl; -AnySurfEllipsoid &art_gh_humRef = .Seg.Humerus.art_gh_hum.art_gh_humSurf; -AnySurfCylinder &collum_hum = .Seg.Humerus.collum_hum.collum_hum; -AnySurfCylinder &collum_hum_teres_minor_major = .Seg.Humerus.collum_hum_teres_minor_major.cyl; -AnyParamSurf &tricpes_gh_sphere = .Seg.Humerus.tricpes_gh_sphere.surf; -AnySurfCylinder &condylus_hum = .Seg.Humerus.condylus_hum.cyl; -AnySurfCylinder &condylus_humT = .Seg.Humerus.condylus_humT.condylus_humT; -AnySurfCylinder &margo_medialis = .Seg.Scapula.margo_medialis.cyl; -AnySurfCylinder &deltoid_cyl = .Seg.Scapula.deltoid_cyl.cyl; -AnySurfCylinder &acromion_cyl = .Seg.Scapula.acromion_cyl.cyl; -AnySurfCylinder &coracoid_cyl = .Seg.Scapula.coracoid_cyl.cyl; -AnySurfCylinder &teresmajor_cyl = .Seg.Scapula.teres_major_cyl.cyl; - -AnyMuscleShortestPath biceps_brachii_caput_breve = { - AnyMuscleModel &MusMdl = ..MuscleModels.biceps_brachii_caput_breve; - AnyRefNode &Org = ..Seg.Scapula.O_biceps_brachii_caput_breve; - AnyRefNode &Ins = ..Seg.Radius.I_Biceps_SH ; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 200; - AnySurfCylinder &Surf0 =.condylus_hum; - AnySurfCylinder &Surf3 =.bicepscyl; - AnySurfEllipsoid &Surf4 =.art_gh_humRef; - SPLine.InitWrapPosVecArr = { &.biceps_brachii_caput_longum.SPLine.InitWrapPos }; - -}; - -AnyMuscleShortestPath biceps_brachii_caput_longum = { - AnyMuscleModel &MusMdl = ..MuscleModels.biceps_brachii_caput_longum; - - AnyRefNode &Org = ..Seg.Scapula.O_biceps_brachii_caput_longum;//this point has been taken from VU study - AnyRefNode &Via1 = ..Seg.Humerus.sulcus_intertubercularisTop; - AnyRefNode &Via2 = ..Seg.Humerus.sulcus_intertubercularis; - AnyRefNode &Ins = ..Seg.Radius.I_Biceps_LH; //this point has been taken from MAYO study - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 150; - AnySurfEllipsoid &Surfgh =.art_gh_humRef; - AnySurfCylinder &Surf0 =.condylus_hum; - AnySurfCylinder &Surf3 =.bicepscyl; - - SPLine = { - RelTol = 1e-6; - AbsTol = 1e-5; - AnyMatrix InitWrapPos = { - transf3D(.Surf0.Radius*{0.5,0,...Sign*1.2}, &...Seg.Humerus.fe), - transf3D({...Sign*-1.1*.Surf0.Radius,1*.Surf0.Radius, 0.45*.Surf0.Length }, &.Surf0 ), - transf3D({ 0, 0 , 2*.Surf3.Radius }, &...Seg.Ulna.I_Brachialis_1), - transf3D({ ...Sign*1*.Surf3.Radius, -1*.Surf3.Radius, 0.65*.Surf3.Length }, &.Surf3) +#if BM_COMPATIBILITY_MUSCLE_STRUCTURE == ON + #include "ammr_3.0_compatibility_structure.any" +#endif - }; - InitWrapPosVecArr = { None,None, &InitWrapPos }; +MuscleGroup LevatorScapulae() = { + AnyMuscleViaPoint levator_scapulae_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.levator_scapulae_1; + AnyRefNode &Org = ..TrunkNodeAttachement.C1Seg.O_levator_scapulae_1; + AnyRefNode &Ins = ...Seg.Scapula.I_levator_scapulae_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; -}; - -AnyMuscleViaPoint coracobrachialis_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.coracobrachialis_1; - AnyRefNode &Org = ..Seg.Scapula.O_coracobrachialis_1; - AnyRefNode &Ins = ..Seg.Humerus.I_coracobrachialis_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint coracobrachialis_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.coracobrachialis_2; - AnyRefNode &Org = ..Seg.Scapula.O_coracobrachialis_2; - AnyRefNode &Ins = ..Seg.Humerus.I_coracobrachialis_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint coracobrachialis_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.coracobrachialis_3; - AnyRefNode &Org = ..Seg.Scapula.O_coracobrachialis_3; - AnyRefNode &Ins = ..Seg.Humerus.I_coracobrachialis_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint coracobrachialis_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.coracobrachialis_4; - AnyRefNode &Org = ..Seg.Scapula.O_coracobrachialis_4; - AnyRefNode &Ins = ..Seg.Humerus.I_coracobrachialis_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint coracobrachialis_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.coracobrachialis_5; - AnyRefNode &Org = ..Seg.Scapula.O_coracobrachialis_5; - AnyRefNode &Ins = ..Seg.Humerus.I_coracobrachialis_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint coracobrachialis_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.coracobrachialis_6; - AnyRefNode &Org = ..Seg.Scapula.O_coracobrachialis_6; - AnyRefNode &Ins = ..Seg.Humerus.I_coracobrachialis_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - #if BM_ARM_DELTOID_WRAPPING == _DELTOID_WRAPPING_RAKE_ - -AnyMuscleShortestPath deltoideus_scapular_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_scapular_part_1; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_scapular_part_1; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia1; - //AnySurfEllipsoid &surf1= .ArtificialRake.DeltoidMuscleConnector.EllipsoidCyl.Ellipsoid ; - - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_scapular_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; - -AnyMuscleShortestPath deltoideus_scapular_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_scapular_part_2; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_scapular_part_2; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia2; - - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_scapular_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; - -AnyMuscleShortestPath deltoideus_scapular_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_scapular_part_3; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_scapular_part_3; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia3; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_scapular_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; -AnyMuscleShortestPath deltoideus_scapular_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_scapular_part_4; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_scapular_part_4; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia4; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_scapular_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; + AnyMuscleViaPoint levator_scapulae_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.levator_scapulae_2; + AnyRefNode &Org = ..TrunkNodeAttachement.C2Seg.O_levator_scapulae_2; + AnyRefNode &Ins = ...Seg.Scapula.I_levator_scapulae_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_scapular_part_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_scapular_part_5; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_scapular_part_5; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia5; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_scapular_part_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - SPLine.StringMesh = 40; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; + AnyMuscleViaPoint levator_scapulae_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.levator_scapulae_3; + AnyRefNode &Org = ..TrunkNodeAttachement.C3Seg.O_levator_scapulae_3; + AnyRefNode &Ins = ...Seg.Scapula.I_levator_scapulae_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_scapular_part_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_scapular_part_6; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_scapular_part_6; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia6; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_scapular_part_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; + AnyMuscleViaPoint levator_scapulae_4 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.levator_scapulae_4; + AnyRefNode &Org = ..TrunkNodeAttachement.C4Seg.O_levator_scapulae_4 ; + AnyRefNode &Ins = ...Seg.Scapula.I_levator_scapulae_4 ; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup Sternocleidomastoid() = { + AnyMuscleViaPoint Sternocleidomastoid_caput_clavicular = { + AnyMuscleModel &MusMdl = ...MuscleModels.Sternocleidomastoid_1; + AnyRefNode &Ins2 = ...Seg.Clavicula.SternocleidomastoidNode; + AnyRefNode &Org = ..TrunkNodeAttachement.SkullSeg.SternocleidomastoidNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_clavicular_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_clavicular_part_1; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_clavicular_part_1; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia7; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_clavicular_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine.StringMesh = 35; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; - -AnyMuscleShortestPath deltoideus_clavicular_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_clavicular_part_2; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_clavicular_part_2; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia8; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_clavicular_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 42; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; + AnyMuscleViaPoint Sternocleidomastoid_caput_Sternum = { + AnyMuscleModel &MusMdl = ...MuscleModels.Sternocleidomastoid_2; + AnyRefNode &Ins = ..TrunkNodeAttachement.ManubriumSeg.SternocleidomastoidNode; + AnyRefNode &Org = ..TrunkNodeAttachement.SkullSeg.SternocleidomastoidNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleShortestPath deltoideus_clavicular_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_clavicular_part_3; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_clavicular_part_3; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia9; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_clavicular_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine.StringMesh = 35; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; +MuscleGroup TrapeziusScapular() = { + AnyMuscleShortestPath trapezius_scapular_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_1; + AnyRefNode &Org = ..TrunkNodeAttachement.T12Seg.O_trapezius_scapular_part_1; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({1.3*.Surf.Radius, 0,0.5*.Surf.Length}, &.Surf)}; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath deltoideus_clavicular_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_clavicular_part_4; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_clavicular_part_4; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia10; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_clavicular_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; + AnyMuscleShortestPath trapezius_scapular_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_2; + AnyRefNode &Org = ..TrunkNodeAttachement.T11Seg.O_trapezius_scapular_part_2; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({1.3*.Surf.Radius, 0,0.5*.Surf.Length}, &.Surf)}; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath deltoideus_clavicular_part_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_clavicular_part_5; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_clavicular_part_5; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia11; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_clavicular_part_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; + AnyMuscleShortestPath trapezius_scapular_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_3; + AnyRefNode &Org = ..TrunkNodeAttachement.T10Seg.O_trapezius_scapular_part_3; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; + }; -//most proximal unit -AnyMuscleShortestPath deltoideus_clavicular_part_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_clavicular_part_6; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_clavicular_part_6; - AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia12; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_clavicular_part_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfSphere &Surf =.art_tub_minus_tub_majusRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; - InitWrapPosVecArr = {&InitWrapPos,None}; - }; -}; + AnyMuscleShortestPath trapezius_scapular_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_4; + AnyRefNode &Org = ..TrunkNodeAttachement.T9Seg.O_trapezius_scapular_part_4; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; + }; -#else -// start of BM_ARM_DELTOID_WRAPPING -AnyMuscleShortestPath deltoideus_posterior_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_posterior_part_1; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_posterior_part_1; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_posterior_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 45; + AnyMuscleShortestPath trapezius_scapular_part_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_5; + AnyRefNode &Org = ..TrunkNodeAttachement.T8Seg.O_trapezius_scapular_part_5; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; + }; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurfAnalytical &Surf2 =..Seg.Scapula.deltoid_cyl.cyl; + AnyMuscleShortestPath trapezius_scapular_part_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_6; + AnyRefNode &Org = ..TrunkNodeAttachement.T7Seg.O_trapezius_scapular_part_6; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; + }; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleShortestPath trapezius_scapular_part_7 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_7; + AnyRefNode &Org = ..TrunkNodeAttachement.T6Seg.O_trapezius_scapular_part_7; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; }; - -}; -AnyMuscleShortestPath deltoideus_posterior_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_posterior_part_3; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_posterior_part_3; - - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_posterior_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; + AnyMuscleShortestPath trapezius_scapular_part_8 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_8; + AnyRefNode &Org = ..TrunkNodeAttachement.T5Seg.O_trapezius_scapular_part_8; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; + }; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Surf; - AnyParamSurfAnalytical &Surf2 =..Seg.Scapula.deltoid_cyl.cyl; + AnyMuscleShortestPath trapezius_scapular_part_9 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_9; + AnyRefNode &Org = ..TrunkNodeAttachement.T4Seg.O_trapezius_scapular_part_9; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf = ..margo_medialis; + SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; + }; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleViaPoint trapezius_scapular_part_10 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_10; + AnyRefNode &Org = ..TrunkNodeAttachement.T3Seg.O_trapezius_scapular_part_10; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_10; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - -}; + AnyMuscleViaPoint trapezius_scapular_part_11 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_11; + AnyRefNode &Org = ..TrunkNodeAttachement.T2Seg.O_trapezius_scapular_part_11; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_11; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint trapezius_scapular_part_12 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_12; + AnyRefNode &Org = ..TrunkNodeAttachement.T1Seg.O_trapezius_scapular_part_12; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_12; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -// an extra fibers a/b -AnyMuscleShortestPath deltoideus_posterior_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_posterior_part_2; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_posterior_part_2; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_posterior_part_2; - SPLine.StringMesh = 30; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Surf; - AnyParamSurfAnalytical &Surf2 =..Seg.Scapula.deltoid_cyl.cyl; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleViaPoint trapezius_scapular_part_13 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_13; + AnyRefNode &Org = ..TrunkNodeAttachement.C7Seg.O_trapezius_scapular_part_13; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_13; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_posterior_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_posterior_part_4; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_posterior_part_4; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_posterior_part_4; - SPLine.StringMesh = 20; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Surf; - AnyParamSurfAnalytical &Surf2 =..Seg.Scapula.deltoid_cyl.cyl; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; + AnyMuscleViaPoint trapezius_scapular_part_14 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_scapular_part_14; + AnyRefNode &Org = ..TrunkNodeAttachement.C6Seg.O_trapezius_scapular_part_14; + AnyRefNode &Ins = ...Seg.Scapula.I_trapezius_scapular_part_14; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - -AnyMuscleShortestPath deltoideus_lateral_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_lateral_part_1; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_lateral_part_1; - - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_lateral_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - - AnyParamSurfAnalytical &Surf =.DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Surf; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; +MuscleGroup TrapeziusClavicular() = { + AnyMuscleViaPoint trapezius_clavicular_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_clavicular_part_1; + AnyRefNode &Org = ..TrunkNodeAttachement.C5Seg.O_trapezius_clavicular_part_1; + AnyRefNode &Ins = ...Seg.Clavicula.I_trapezius_clavicular_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; -}; -AnyMuscleShortestPath deltoideus_lateral_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_lateral_part_3; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_lateral_part_3; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_lateral_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - - - AnyParamSurfAnalytical &Surf =.DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Surf; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleViaPoint trapezius_clavicular_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_clavicular_part_2; + AnyRefNode &Org = ..TrunkNodeAttachement.C4Seg.O_trapezius_clavicular_part_2; + AnyRefNode &Ins = ...Seg.Clavicula.I_trapezius_clavicular_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint trapezius_clavicular_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_clavicular_part_3; + AnyRefNode &Org = ..TrunkNodeAttachement.C3Seg.O_trapezius_clavicular_part_3; + AnyRefNode &Ins = ...Seg.Clavicula.I_trapezius_clavicular_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_lateral_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_lateral_part_2; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_lateral_part_2; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_lateral_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Surf; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleViaPoint trapezius_clavicular_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_clavicular_part_4; + AnyRefNode &Org = ..TrunkNodeAttachement.C2Seg.O_trapezius_clavicular_part_4; + AnyRefNode &Ins = ...Seg.Clavicula.I_trapezius_clavicular_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_lateral_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_lateral_part_4; - AnyRefNode &Org = ..Seg.Scapula.O_deltoideus_lateral_part_4; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_lateral_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - SPLine.StringMesh = 30; - + AnyMuscleViaPoint trapezius_clavicular_part_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_clavicular_part_5; + AnyRefNode &Org = ..TrunkNodeAttachement.C1Seg.O_trapezius_clavicular_part_5; + AnyRefNode &Ins = ...Seg.Clavicula.I_trapezius_clavicular_part_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Surf; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; + AnyMuscleViaPoint trapezius_clavicular_part_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.trapezius_clavicular_part_6; + AnyRefNode &Org = ..TrunkNodeAttachement.SkullSeg.O_trapezius_clavicular_part_6; + AnyRefNode &Ins = ...Seg.Clavicula.I_trapezius_clavicular_part_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup BicepsBrachii = { + AnyMuscleShortestPath biceps_brachii_caput_breve = { + AnyMuscleModel &MusMdl = ...MuscleModels.biceps_brachii_caput_breve; + AnyRefNode &Org = ...Seg.Scapula.O_biceps_brachii_caput_breve; + AnyRefNode &Ins = ...Seg.Radius.I_Biceps_SH ; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 200; + AnySurfCylinder &Surf0 = ..condylus_hum; + AnySurfCylinder &Surf3 = ..bicepscyl; + AnySurfEllipsoid &Surf4 = ..art_gh_humRef; + SPLine.InitWrapPosVecArr = { &.biceps_brachii_caput_longum.SPLine.InitWrapPos }; + }; - -AnyMuscleShortestPath deltoideus_anterior_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_anterior_part_1; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_anterior_part_1; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_anterior_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - - - AnyParamSurfAnalytical &Surf =.DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Surf; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleShortestPath biceps_brachii_caput_longum = { + AnyMuscleModel &MusMdl = ...MuscleModels.biceps_brachii_caput_longum; + + AnyRefNode &Org = ...Seg.Scapula.O_biceps_brachii_caput_longum;//this point has been taken from VU study + AnyRefNode &Via1 = ...Seg.Humerus.sulcus_intertubercularisTop; + AnyRefNode &Via2 = ...Seg.Humerus.sulcus_intertubercularis; + AnyRefNode &Ins = ...Seg.Radius.I_Biceps_LH; //this point has been taken from MAYO study + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 150; + AnySurfEllipsoid &Surfgh = ..art_gh_humRef; + AnySurfCylinder &Surf0 = ..condylus_hum; + AnySurfCylinder &Surf3 = ..bicepscyl; + + SPLine = { + RelTol = 1e-6; + AbsTol = 1e-5; + AnyMatrix InitWrapPos = { + transf3D(.Surf0.Radius*{0.5,0,....Sign*1.2}, &....Seg.Humerus.fe), + transf3D({....Sign*-1.1*.Surf0.Radius,1*.Surf0.Radius, 0.45*.Surf0.Length }, &.Surf0 ), + transf3D({ 0, 0 , 2*.Surf3.Radius }, &....Seg.Ulna.I_Brachialis_1), + transf3D({ ....Sign*1*.Surf3.Radius, -1*.Surf3.Radius, 0.65*.Surf3.Length }, &.Surf3) + + }; + InitWrapPosVecArr = { None,None, &InitWrapPos }; + }; }; }; +MuscleGroup Coracobrachialis = { + AnyMuscleViaPoint coracobrachialis_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.coracobrachialis_1; + AnyRefNode &Org = ...Seg.Scapula.O_coracobrachialis_1; + AnyRefNode &Ins = ...Seg.Humerus.I_coracobrachialis_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint coracobrachialis_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.coracobrachialis_2; + AnyRefNode &Org = ...Seg.Scapula.O_coracobrachialis_2; + AnyRefNode &Ins = ...Seg.Humerus.I_coracobrachialis_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath deltoideus_anterior_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_anterior_part_2; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_anterior_part_2; - - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_anterior_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - - AnyParamSurfAnalytical &Surf =.DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Surf; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; }; -}; - -AnyMuscleShortestPath deltoideus_anterior_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_anterior_part_3; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_anterior_part_3; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_anterior_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - - SPLine.StringMesh = 30; - AnyParamSurfAnalytical &Surf =.DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Surf; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleViaPoint coracobrachialis_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.coracobrachialis_3; + AnyRefNode &Org = ...Seg.Scapula.O_coracobrachialis_3; + AnyRefNode &Ins = ...Seg.Humerus.I_coracobrachialis_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - -}; -//most proximal unit -AnyMuscleShortestPath deltoideus_anterior_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.deltoideus_anterior_part_4; - AnyRefNode &Org = ..Seg.Clavicula.O_deltoideus_anterior_part_4; - AnyRefNode &Ins = ..Seg.Humerus.I_deltoideus_anterior_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - SPLine.StringMesh = 30; - - AnyParamSurfAnalytical &Surf =.DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Surf; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Center), - transf3D({1.1*.Surf.Sizes[0],0,0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Center), - transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Center) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleViaPoint coracobrachialis_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.coracobrachialis_4; + AnyRefNode &Org = ...Seg.Scapula.O_coracobrachialis_4; + AnyRefNode &Ins = ...Seg.Humerus.I_coracobrachialis_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -// end of deltoid wrapping muscles -#endif + AnyMuscleViaPoint coracobrachialis_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.coracobrachialis_5; + AnyRefNode &Org = ...Seg.Scapula.O_coracobrachialis_5; + AnyRefNode &Ins = ...Seg.Humerus.I_coracobrachialis_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath infraspinatus_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.infraspinatus_1; - AnyRefNode &Org = ..Seg.Scapula.O_infraspinatus_1; - AnyRefNode &Ins = ..Seg.Humerus.I_infraspinatus_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.infraspinatus_humurus_wrap.torus; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-1*(.Surf.MajorRadius+1.4*.Surf.MinorRadius)*...Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius+0.6*.Surf.MinorRadius)*...Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius)*...Sign, 0, 1.3*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius-0.6*.Surf.MinorRadius)*...Sign, 0, 0.9*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius-1.2*.Surf.MinorRadius)*...Sign,0, 0.2*.Surf.MinorRadius}, &.Surf) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; + AnyMuscleViaPoint coracobrachialis_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.coracobrachialis_6; + AnyRefNode &Org = ...Seg.Scapula.O_coracobrachialis_6; + AnyRefNode &Ins = ...Seg.Humerus.I_coracobrachialis_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleShortestPath infraspinatus_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.infraspinatus_2; - AnyRefNode &Org = ..Seg.Scapula.O_infraspinatus_2; - AnyRefNode &Ins = ..Seg.Humerus.I_infraspinatus_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.infraspinatus_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; -}; +#if BM_ARM_DELTOID_WRAPPING == _DELTOID_WRAPPING_RAKE_ + MuscleGroup DeltoideusScapular = { + AnyMuscleShortestPath deltoideus_scapular_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_scapular_part_1; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_scapular_part_1; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia1; + //AnySurfEllipsoid &surf1= .ArtificialRake.DeltoidMuscleConnector.EllipsoidCyl.Ellipsoid ; + + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_scapular_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath infraspinatus_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.infraspinatus_3; - AnyRefNode &Org = ..Seg.Scapula.O_infraspinatus_3; - AnyRefNode &Ins = ..Seg.Humerus.I_infraspinatus_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.infraspinatus_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath deltoideus_scapular_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_scapular_part_2; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_scapular_part_2; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia2; + + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_scapular_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath infraspinatus_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.infraspinatus_4; - AnyRefNode &Org = ..Seg.Scapula.O_infraspinatus_4; - AnyRefNode &Ins = ..Seg.Humerus.I_infraspinatus_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.infraspinatus_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath deltoideus_scapular_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_scapular_part_3; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_scapular_part_3; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia3; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_scapular_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath infraspinatus_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.infraspinatus_5; - AnyRefNode &Org = ..Seg.Scapula.O_infraspinatus_5; - AnyRefNode &Ins = ..Seg.Humerus.I_infraspinatus_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnyParamSurf &Surf =..Seg.Humerus.infraspinatus_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath deltoideus_scapular_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_scapular_part_4; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_scapular_part_4; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia4; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_scapular_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath infraspinatus_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.infraspinatus_6; - AnyRefNode &Org = ..Seg.Scapula.O_infraspinatus_6; - AnyRefNode &Ins = ..Seg.Humerus.I_infraspinatus_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnyParamSurf &Surf =..Seg.Humerus.infraspinatus_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath deltoideus_scapular_part_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_scapular_part_5; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_scapular_part_5; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia5; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_scapular_part_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + SPLine.StringMesh = 40; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; + AnyMuscleShortestPath deltoideus_scapular_part_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_scapular_part_6; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_scapular_part_6; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia6; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_scapular_part_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_1; - AnyRefNode &Org = .TrunkNodeAttachement.T8Seg.O_latissimus_dorsi_1; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_1_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_1; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-.Surf1.Radius[0], 0*.Surf1.Radius[1],...Sign*0.1*.Surf1.Radius[2]}, &.Surf1), - transf3D({-.Surf1.Radius[0],0*.Surf1.Radius[1],...Sign*0.4*.Surf1.Radius[2]}, &.Surf1), - transf3D( {...Sign*1.4*.Surf4.Radius, -1.4*.Surf4.Radius, 0.85*.Surf4.Length}, &.Surf4), - transf3D({1.2*.Surf3.Sizes[0],0,0}, &..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Center), - transf3D({0, ...Sign*-3*.Surf2.Radius,0.8*.Surf2.Length}, &.Surf2) - }; - InitWrapPosVecArr = {None, &InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - -}; + MuscleGroup DeltoideusClavicular = { + AnyMuscleShortestPath deltoideus_clavicular_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_clavicular_part_1; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_clavicular_part_1; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia7; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_clavicular_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine.StringMesh = 35; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_2; - AnyRefNode &Org = .TrunkNodeAttachement.T9Seg.O_latissimus_dorsi_2; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_2_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_2; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 =.collum_hum; - AnyParamSurf &Surf2 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath deltoideus_clavicular_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_clavicular_part_2; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_clavicular_part_2; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia8; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_clavicular_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 42; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; + AnyMuscleShortestPath deltoideus_clavicular_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_clavicular_part_3; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_clavicular_part_3; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia9; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_clavicular_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine.StringMesh = 35; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_3; - AnyRefNode &Org = .TrunkNodeAttachement.T10Seg.O_latissimus_dorsi_3; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_3_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_3; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.collum_hum; - AnyParamSurf &Surf2 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; + AnyMuscleShortestPath deltoideus_clavicular_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_clavicular_part_4; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_clavicular_part_4; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia10; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_clavicular_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath deltoideus_clavicular_part_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_clavicular_part_5; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_clavicular_part_5; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia11; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_clavicular_part_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_4; - AnyRefNode &Org = .TrunkNodeAttachement.T11Seg.O_latissimus_dorsi_4; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_4_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_4; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.collum_hum; - AnyParamSurf &Surf2 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + //most proximal unit + AnyMuscleShortestPath deltoideus_clavicular_part_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_clavicular_part_6; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_clavicular_part_6; + AnyRefNode &Via = .ArtificialRake.DeltoidMuscleConnector.DeltoidVia12; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_clavicular_part_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfSphere &Surf = ..art_tub_minus_tub_majusRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0, 0.8*.Surf.Radius,0}, &.Via)}; + InitWrapPosVecArr = {&InitWrapPos,None}; + }; + }; + }; +#else + MuscleGroup DeltoideusPosterior = { + // start of BM_ARM_DELTOID_WRAPPING + AnyMuscleShortestPath deltoideus_posterior_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_posterior_part_1; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_posterior_part_1; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_posterior_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 45; + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurfAnalytical &Surf2 = ...Seg.Scapula.deltoid_cyl.cyl; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_1.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; + + AnyMuscleShortestPath deltoideus_posterior_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_posterior_part_3; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_posterior_part_3; + + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_posterior_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Surf; + AnyParamSurfAnalytical &Surf2 = ...Seg.Scapula.deltoid_cyl.cyl; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_3.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + }; -AnyMuscleShortestPath latissimus_dorsi_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_5; - AnyRefNode &Org = .TrunkNodeAttachement.T12Seg.O_latissimus_dorsi_5; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_5_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_5; - SPLine.StringMesh = 120; - AnyParamSurf &Surf1 =.collum_hum; - AnyParamSurf &Surf2 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + // an extra fibers a/b + AnyMuscleShortestPath deltoideus_posterior_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_posterior_part_2; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_posterior_part_2; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_posterior_part_2; + SPLine.StringMesh = 30; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Surf; + AnyParamSurfAnalytical &Surf2 = ...Seg.Scapula.deltoid_cyl.cyl; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_2.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_6; - AnyRefNode &Org = .TrunkNodeAttachement.L1Seg.O_latissimus_dorsi_6; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_6_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_6; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath deltoideus_posterior_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_posterior_part_4; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_posterior_part_4; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_posterior_part_4; + SPLine.StringMesh = 20; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Surf; + AnyParamSurfAnalytical &Surf2 = ...Seg.Scapula.deltoid_cyl.cyl; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingPosterior.BASE_FRAME.Wrapping_4.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; + }; + MuscleGroup DeltoideusLateral = { + AnyMuscleShortestPath deltoideus_lateral_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_lateral_part_1; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_lateral_part_1; + + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_lateral_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Surf; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_1.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_7 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_7; - AnyRefNode &Org = .TrunkNodeAttachement.L2Seg.O_latissimus_dorsi_7; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_7_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_7; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; + AnyMuscleShortestPath deltoideus_lateral_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_lateral_part_3; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_lateral_part_3; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_lateral_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Surf; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath latissimus_dorsi_8 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_8; - AnyRefNode &Org = .TrunkNodeAttachement.L3Seg.O_latissimus_dorsi_8; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_8_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_8; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath deltoideus_lateral_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_lateral_part_2; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_lateral_part_2; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_lateral_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingLateral.BASE_FRAME.Wrapping_2.Surf; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_3.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_9 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_9; - AnyRefNode &Org = .TrunkNodeAttachement.L4Seg.O_latissimus_dorsi_9; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_9_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_9; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath deltoideus_lateral_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_lateral_part_4; + AnyRefNode &Org = ...Seg.Scapula.O_deltoideus_lateral_part_4; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_lateral_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + SPLine.StringMesh = 30; + + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Surf; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingLateral.BASE_FRAME.Wrapping_4.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; + }; -AnyMuscleShortestPath latissimus_dorsi_10 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_10; - AnyRefNode &Org = .TrunkNodeAttachement.L5Seg.O_latissimus_dorsi_10; - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_10_via; - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_10; - SPLine.StringMesh = 110; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup DeltoideusAnterior = { + AnyMuscleShortestPath deltoideus_anterior_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_anterior_part_1; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_anterior_part_1; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_anterior_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Surf; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_1.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + + }; + }; -AnyMuscleShortestPath latissimus_dorsi_11 = { - AnyMuscleModel &MusMdl = ..MuscleModels.latissimus_dorsi_11; - AnyRefNode &Org = .TrunkNodeAttachement.PelvisSeg.O_latissimus_dorsi_11; - - AnyRefNode &Via = .ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_11_via; - - AnyRefNode &Ins = ..Seg.Humerus.I_latissimus_dorsi_11; - SPLine.StringMesh = 200; - AnyParamSurf &Surf1 =.ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; - AnyParamSurf &Surf2 =.collum_hum; - AnyParamSurf &Surf3 =.LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; - AnyParamSurf &Surf4 = ..Seg.Scapula.Lattisimus_wrap.cyl; - - SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath deltoideus_anterior_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_anterior_part_2; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_anterior_part_2; + + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_anterior_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Surf; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_2.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; + }; + AnyMuscleShortestPath deltoideus_anterior_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_anterior_part_3; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_anterior_part_3; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_anterior_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + + SPLine.StringMesh = 30; + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Surf; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_3.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_1; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_1; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_1; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.9*.Surf.Radius[0], 0.4*.Surf.Radius[1], ...Sign*0.7*.Surf.Radius[2]}, &.Surf) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + //most proximal unit + AnyMuscleShortestPath deltoideus_anterior_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.deltoideus_anterior_part_4; + AnyRefNode &Org = ...Seg.Clavicula.O_deltoideus_anterior_part_4; + AnyRefNode &Ins = ...Seg.Humerus.I_deltoideus_anterior_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + SPLine.StringMesh = 30; + + AnyParamSurfAnalytical &Surf = ..DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Surf; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.8*.Surf.Sizes[0],0.8*.Surf.Sizes[0 ],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Center), + transf3D({1.1*.Surf.Sizes[0],0,0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Center), + transf3D({0.8*.Surf.Sizes[0],-0.8*.Surf.Sizes[0],0}, &...DeltoidWrappingAnterior.BASE_FRAME.Wrapping_4.Center) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; + }; + // end of deltoid wrapping muscles +#endif -AnyMuscleShortestPath pectoralis_major_thoracic_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_2; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_2; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_2; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup Infraspinatus = { + AnyMuscleShortestPath infraspinatus_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.infraspinatus_1; + AnyRefNode &Org = ...Seg.Scapula.O_infraspinatus_1; + AnyRefNode &Ins = ...Seg.Humerus.I_infraspinatus_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.infraspinatus_humurus_wrap.torus; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-1*(.Surf.MajorRadius+1.4*.Surf.MinorRadius)*....Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius+0.6*.Surf.MinorRadius)*....Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius)*....Sign, 0, 1.3*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius-0.6*.Surf.MinorRadius)*....Sign, 0, 0.9*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius-1.2*.Surf.MinorRadius)*....Sign,0, 0.2*.Surf.MinorRadius}, &.Surf) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_3; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_3; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_3; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath infraspinatus_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.infraspinatus_2; + AnyRefNode &Org = ...Seg.Scapula.O_infraspinatus_2; + AnyRefNode &Ins = ...Seg.Humerus.I_infraspinatus_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.infraspinatus_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_4; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_4; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_4; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath infraspinatus_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.infraspinatus_3; + AnyRefNode &Org = ...Seg.Scapula.O_infraspinatus_3; + AnyRefNode &Ins = ...Seg.Humerus.I_infraspinatus_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.infraspinatus_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_5; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_5; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_5; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath infraspinatus_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.infraspinatus_4; + AnyRefNode &Org = ...Seg.Scapula.O_infraspinatus_4; + AnyRefNode &Ins = ...Seg.Humerus.I_infraspinatus_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.infraspinatus_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_6; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_6; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_6; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath infraspinatus_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.infraspinatus_5; + AnyRefNode &Org = ...Seg.Scapula.O_infraspinatus_5; + AnyRefNode &Ins = ...Seg.Humerus.I_infraspinatus_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnyParamSurf &Surf = ...Seg.Humerus.infraspinatus_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_7 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_7; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_7; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_7; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath infraspinatus_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.infraspinatus_6; + AnyRefNode &Org = ...Seg.Scapula.O_infraspinatus_6; + AnyRefNode &Ins = ...Seg.Humerus.I_infraspinatus_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnyParamSurf &Surf = ...Seg.Humerus.infraspinatus_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .infraspinatus_1.SPLine.InitWrapPosVecArr; + }; }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_8 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_8; - AnyRefNode &Org = .TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_8; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_8; - SPLine.StringMesh = 40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup LatissimusDorsi = { + AnyMuscleShortestPath latissimus_dorsi_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_1; + AnyRefNode &Org = ..TrunkNodeAttachement.T8Seg.O_latissimus_dorsi_1; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_1_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_1; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-.Surf1.Radius[0], 0*.Surf1.Radius[1],....Sign*0.1*.Surf1.Radius[2]}, &.Surf1), + transf3D({-.Surf1.Radius[0],0*.Surf1.Radius[1],....Sign*0.4*.Surf1.Radius[2]}, &.Surf1), + transf3D( {....Sign*1.4*.Surf4.Radius, -1.4*.Surf4.Radius, 0.85*.Surf4.Length}, &.Surf4), + transf3D({1.2*.Surf3.Sizes[0],0,0}, &...LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Center), + transf3D({0, ....Sign*-3*.Surf2.Radius,0.8*.Surf2.Length}, &.Surf2) + }; + InitWrapPosVecArr = {None, &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_9 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_9; - AnyRefNode &Org = .TrunkNodeAttachement.ManubriumSeg.O_pectoralis_major_thoracic_part_9; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_9; - SPLine.StringMesh = 70; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf1 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0, ...Sign*1.2*.Surf1.Radius,0.5*.Surf1.Length}, &.Surf1), - transf3D({1*.Surf1.Radius, ...Sign*0.5*.Surf1.Radius,0.5*.Surf1.Length}, &.Surf1), - transf3D({1.3*.Surf1.Radius, ...Sign* -0.5*.Surf1.Radius,0.5*.Surf1.Length}, &.Surf1), - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath latissimus_dorsi_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_2; + AnyRefNode &Org = ..TrunkNodeAttachement.T9Seg.O_latissimus_dorsi_2; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_2_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_2; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ..collum_hum; + AnyParamSurf &Surf2 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -}; + AnyMuscleShortestPath latissimus_dorsi_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_3; + AnyRefNode &Org = ..TrunkNodeAttachement.T10Seg.O_latissimus_dorsi_3; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_3_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_3; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..collum_hum; + AnyParamSurf &Surf2 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath pectoralis_major_thoracic_part_10 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_thoracic_part_10; - AnyRefNode &Org = .TrunkNodeAttachement.ManubriumSeg.O_pectoralis_major_thoracic_part_10; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_thoracic_part_10; - SPLine.StringMesh = 70; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf1 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_9.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath latissimus_dorsi_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_4; + AnyRefNode &Org = ..TrunkNodeAttachement.T11Seg.O_latissimus_dorsi_4; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_4_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_4; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..collum_hum; + AnyParamSurf &Surf2 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath pectoralis_major_clavicular_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_clavicular_part_1; - AnyRefNode &Org = ..Seg.Clavicula.O_pectoralis_major_clavicular_part_1; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_clavicular_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 60; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf3 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0, ...Sign*1.2*.Surf3.Radius,0.4*.Surf3.Length}, &.Surf3), - transf3D({1*.Surf3.Radius, ...Sign*0.5*.Surf3.Radius,0.5*.Surf3.Length}, &.Surf3), - transf3D({1.3*.Surf3.Radius, ...Sign* -0.5*.Surf3.Radius,0.6*.Surf3.Length}, &.Surf3), - transf3D({0,0,0.0}, &...Seg.Humerus.gh) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleShortestPath latissimus_dorsi_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_5; + AnyRefNode &Org = ..TrunkNodeAttachement.T12Seg.O_latissimus_dorsi_5; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_5_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_5; + SPLine.StringMesh = 120; + AnyParamSurf &Surf1 = ..collum_hum; + AnyParamSurf &Surf2 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath pectoralis_major_clavicular_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_clavicular_part_2; - AnyRefNode &Org = ..Seg.Clavicula.O_pectoralis_major_clavicular_part_2; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_clavicular_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 60; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf3 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath latissimus_dorsi_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_6; + AnyRefNode &Org = ..TrunkNodeAttachement.L1Seg.O_latissimus_dorsi_6; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_6_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_6; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath latissimus_dorsi_7 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_7; + AnyRefNode &Org = ..TrunkNodeAttachement.L2Seg.O_latissimus_dorsi_7; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_7_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_7; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath pectoralis_major_clavicular_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_clavicular_part_3; - AnyRefNode &Org = ..Seg.Clavicula.O_pectoralis_major_clavicular_part_3; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_clavicular_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 50; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf3 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath latissimus_dorsi_8 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_8; + AnyRefNode &Org = ..TrunkNodeAttachement.L3Seg.O_latissimus_dorsi_8; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_8_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_8; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath latissimus_dorsi_9 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_9; + AnyRefNode &Org = ..TrunkNodeAttachement.L4Seg.O_latissimus_dorsi_9; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_9_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_9; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath pectoralis_major_clavicular_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_clavicular_part_4; - AnyRefNode &Org = ..Seg.Clavicula.O_pectoralis_major_clavicular_part_4; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_clavicular_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh =40; - AnyParamSurf& Surf =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf3 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath latissimus_dorsi_10 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_10; + AnyRefNode &Org = ..TrunkNodeAttachement.L5Seg.O_latissimus_dorsi_10; + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_10_via; + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_10; + SPLine.StringMesh = 110; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath pectoralis_major_clavicular_part_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_major_clavicular_part_5; - AnyRefNode &Org = ..Seg.Clavicula.O_pectoralis_major_clavicular_part_5; - AnyRefNode &Ins = ..Seg.Humerus.I_pectoralis_major_clavicular_part_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnyParamSurf& Surf1 =.ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; - AnyParamSurf& Surf3 =.Pectoralis_minor1_cyl.Cylinder.Segment.Surf; - SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath latissimus_dorsi_11 = { + AnyMuscleModel &MusMdl = ...MuscleModels.latissimus_dorsi_11; + AnyRefNode &Org = ..TrunkNodeAttachement.PelvisSeg.O_latissimus_dorsi_11; + + AnyRefNode &Via = ..ThoraxWrappingSufaceSegRef.O_latissimus_dorsi_11_via; + + AnyRefNode &Ins = ...Seg.Humerus.I_latissimus_dorsi_11; + SPLine.StringMesh = 200; + AnyParamSurf &Surf1 = ..ThoraxWrappingSufaceSegRef.EllipsoidLatissimusOrigin.EllipsoidSurf; + AnyParamSurf &Surf2 = ..collum_hum; + AnyParamSurf &Surf3 = ..LatissimusDorsiWrapping.BASE_FRAME.Wrapping_1.Surf; + AnyParamSurf &Surf4 = ...Seg.Scapula.Lattisimus_wrap.cyl; + + SPLine.InitWrapPosVecArr = .latissimus_dorsi_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint pectoralis_minor_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_minor_1; - AnyRefNode &Org = .TrunkNodeAttachement.R3Seg.O_pectoralis_minor_1; - AnyRefNode &Ins = ..Seg.Scapula.I_pectoralis_minor_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup PectoralisMajorThoracic = { + AnyMuscleShortestPath pectoralis_major_thoracic_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_1; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_1; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_1; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.9*.Surf.Radius[0], 0.4*.Surf.Radius[1], ....Sign*0.7*.Surf.Radius[2]}, &.Surf) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyFolder Pectoralis_minor1_cyl={ - - AnyFolder& pectoralis_ref = .TrunkNodeAttachement.R3Seg.O_pectoralis_minor_1; - pectoralis_ref = { - AnyRefNode PectoralisWrapAttachement = { - ARel = RotMat(-pi/2,x)*RotMat(pi/5*....Sign, x); - }; + AnyMuscleShortestPath pectoralis_major_thoracic_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_2; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_2; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_2; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - #include "WrapperCyl.any" - Cylinder = { - LengthScale = 2.3; - ScaleFactor = ( - vnorm(...Seg.Humerus.Data.I_subscapularis_1_pos - ...Seg.Humerus.Data.I_subscapularis_5_pos) / - vnorm(...Seg.Humerus.I_subscapularis_1.sRel - ...Seg.Humerus.I_subscapularis_5.sRel) - ); - Segment.Axes0 = ..TrunkNodeAttachement.R3Seg.Axes0 * RotMat(-pi/2,x)*RotMat(pi/5*...Sign,x)*RotMat(-0.25,y); - Segment.r0 = ..TrunkNodeAttachement.R3Seg.r0 + ..TrunkNodeAttachement.R3Seg.O_pectoralis_minor_1.sRel*..TrunkNodeAttachement.R3Seg.Axes0'; - AnyRefNode &StartNode = .pectoralis_ref.PectoralisWrapAttachement; - AnyRefNode &EndNode = ...Seg.Scapula.I_pectoralis_minor_1; + + AnyMuscleShortestPath pectoralis_major_thoracic_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_3; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_3; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_3; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; -}; + AnyMuscleShortestPath pectoralis_major_thoracic_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_4; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_4; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_4; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint pectoralis_minor_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_minor_2; - AnyRefNode &Org = .TrunkNodeAttachement.R4Seg.O_pectoralis_minor_2; - AnyRefNode &Ins = ..Seg.Scapula.I_pectoralis_minor_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath pectoralis_major_thoracic_part_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_5; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_5; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_5; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath pectoralis_major_thoracic_part_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_6; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_6; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_6; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint pectoralis_minor_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.pectoralis_minor_3; - AnyRefNode &Org = .TrunkNodeAttachement.R5Seg.O_pectoralis_minor_3; - AnyRefNode &Ins = ..Seg.Scapula.I_pectoralis_minor_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath pectoralis_major_thoracic_part_7 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_7; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_7; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_7; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath pectoralis_major_thoracic_part_8 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_8; + AnyRefNode &Org = ..TrunkNodeAttachement.SternalBodySeg.O_pectoralis_major_thoracic_part_8; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_8; + SPLine.StringMesh = 40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath pectoralis_major_thoracic_part_9 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_9; + AnyRefNode &Org = ..TrunkNodeAttachement.ManubriumSeg.O_pectoralis_major_thoracic_part_9; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_9; + SPLine.StringMesh = 70; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf1 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0, ....Sign*1.2*.Surf1.Radius,0.5*.Surf1.Length}, &.Surf1), + transf3D({1*.Surf1.Radius, ....Sign*0.5*.Surf1.Radius,0.5*.Surf1.Length}, &.Surf1), + transf3D({1.3*.Surf1.Radius, ....Sign* -0.5*.Surf1.Radius,0.5*.Surf1.Length}, &.Surf1), + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -AnyMuscleViaPoint rhomboideus_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.rhomboideus_1; - AnyRefNode &Org = .TrunkNodeAttachement.C7Seg.O_rhomboideus_1; - AnyRefNode &Ins = ..Seg.Scapula.I_rhomboideus_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + }; -AnyMuscleViaPoint rhomboideus_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.rhomboideus_2; - AnyRefNode &Org = .TrunkNodeAttachement.T1Seg.O_rhomboideus_2; - AnyRefNode &Ins = ..Seg.Scapula.I_rhomboideus_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath pectoralis_major_thoracic_part_10 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_thoracic_part_10; + AnyRefNode &Org = ..TrunkNodeAttachement.ManubriumSeg.O_pectoralis_major_thoracic_part_10; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_thoracic_part_10; + SPLine.StringMesh = 70; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf1 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine.InitWrapPosVecArr = .pectoralis_major_thoracic_part_9.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint rhomboideus_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.rhomboideus_3; - AnyRefNode &Org = .TrunkNodeAttachement.T2Seg.O_rhomboideus_3; - AnyRefNode &Ins = ..Seg.Scapula.I_rhomboideus_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup PectoralisMajorClavicular = { + AnyMuscleShortestPath pectoralis_major_clavicular_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_clavicular_part_1; + AnyRefNode &Org = ...Seg.Clavicula.O_pectoralis_major_clavicular_part_1; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_clavicular_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 60; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf3 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0, ....Sign*1.2*.Surf3.Radius,0.4*.Surf3.Length}, &.Surf3), + transf3D({1*.Surf3.Radius, ....Sign*0.5*.Surf3.Radius,0.5*.Surf3.Length}, &.Surf3), + transf3D({1.3*.Surf3.Radius, ....Sign* -0.5*.Surf3.Radius,0.6*.Surf3.Length}, &.Surf3), + transf3D({0,0,0.0}, &....Seg.Humerus.gh) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleViaPoint rhomboideus_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.rhomboideus_4; - AnyRefNode &Org = .TrunkNodeAttachement.T3Seg.O_rhomboideus_4; - AnyRefNode &Ins = ..Seg.Scapula.I_rhomboideus_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath pectoralis_major_clavicular_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_clavicular_part_2; + AnyRefNode &Org = ...Seg.Clavicula.O_pectoralis_major_clavicular_part_2; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_clavicular_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 60; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf3 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleViaPoint rhomboideus_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.rhomboideus_5; - AnyRefNode &Org = .TrunkNodeAttachement.T4Seg.O_rhomboideus_5; - AnyRefNode &Ins = ..Seg.Scapula.I_rhomboideus_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint rhomboideus_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.rhomboideus_6; - AnyRefNode &Org = .TrunkNodeAttachement.T5Seg.O_rhomboideus_6; - AnyRefNode &Ins = ..Seg.Scapula.I_rhomboideus_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath pectoralis_major_clavicular_part_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_clavicular_part_3; + AnyRefNode &Org = ...Seg.Clavicula.O_pectoralis_major_clavicular_part_3; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_clavicular_part_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 50; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf3 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath serratus_anterior_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_1; - AnyRefNode &Org = .TrunkNodeAttachement.R1Seg.O_serratus_anterior_1; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; -}; -AnyMuscleShortestPath serratus_anterior_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_2; - AnyRefNode &Org = .TrunkNodeAttachement.R2Seg.O_serratus_anterior_2; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath pectoralis_major_clavicular_part_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_clavicular_part_4; + AnyRefNode &Org = ...Seg.Clavicula.O_pectoralis_major_clavicular_part_4; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_clavicular_part_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh =40; + AnyParamSurf& Surf = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf3 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath serratus_anterior_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_3; - AnyRefNode &Org = .TrunkNodeAttachement.R3Seg.O_serratus_anterior_3; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath pectoralis_major_clavicular_part_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_major_clavicular_part_5; + AnyRefNode &Org = ...Seg.Clavicula.O_pectoralis_major_clavicular_part_5; + AnyRefNode &Ins = ...Seg.Humerus.I_pectoralis_major_clavicular_part_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnyParamSurf& Surf1 = ..ThoraxWrappingSufaceSegRef.PectoralisWrappingEllipsoid; + AnyParamSurf& Surf3 = ..Pectoralis_minor1_cyl.Cylinder.Segment.Surf; + SPLine.InitWrapPosVecArr = .pectoralis_major_clavicular_part_1.SPLine.InitWrapPosVecArr; + }; }; -AnyMuscleShortestPath serratus_anterior_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_4; - AnyRefNode &Org = .TrunkNodeAttachement.R4Seg.O_serratus_anterior_4; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; -}; +MuscleGroup PectoralisMinor = { + AnyMuscleViaPoint pectoralis_minor_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_minor_1; + AnyRefNode &Org = ..TrunkNodeAttachement.R3Seg.O_pectoralis_minor_1; + AnyRefNode &Ins = ...Seg.Scapula.I_pectoralis_minor_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath serratus_anterior_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_5; - AnyRefNode &Org = .TrunkNodeAttachement.R5Seg.O_serratus_anterior_5; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 56; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; -}; + AnyMuscleViaPoint pectoralis_minor_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_minor_2; + AnyRefNode &Org = ..TrunkNodeAttachement.R4Seg.O_pectoralis_minor_2; + AnyRefNode &Ins = ...Seg.Scapula.I_pectoralis_minor_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath serratus_anterior_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_6; - AnyRefNode &Org = .TrunkNodeAttachement.R6Seg.O_serratus_anterior_6; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + AnyMuscleViaPoint pectoralis_minor_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.pectoralis_minor_3; + AnyRefNode &Org = ..TrunkNodeAttachement.R5Seg.O_pectoralis_minor_3; + AnyRefNode &Ins = ...Seg.Scapula.I_pectoralis_minor_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleShortestPath serratus_anterior_7 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_7; - AnyRefNode &Org = .TrunkNodeAttachement.R7Seg.O_serratus_anterior_7; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; -}; +MuscleGroup Rhomboideus = { + AnyMuscleViaPoint rhomboideus_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.rhomboideus_1; + AnyRefNode &Org = ..TrunkNodeAttachement.C7Seg.O_rhomboideus_1; + AnyRefNode &Ins = ...Seg.Scapula.I_rhomboideus_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath serratus_anterior_8 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_8; - AnyRefNode &Org = .TrunkNodeAttachement.R8Seg.O_serratus_anterior_8; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; - SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; -}; + AnyMuscleViaPoint rhomboideus_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.rhomboideus_2; + AnyRefNode &Org = ..TrunkNodeAttachement.T1Seg.O_rhomboideus_2; + AnyRefNode &Ins = ...Seg.Scapula.I_rhomboideus_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath serratus_anterior_9 = { - AnyMuscleModel &MusMdl = ..MuscleModels.serratus_anterior_9; - AnyRefNode &Org = .TrunkNodeAttachement.R9Seg.O_serratus_anterior_9; - AnyRefNode &Ins = ..Seg.Scapula.I_serratus_anterior_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnySurfEllipsoid& Surf =.ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.8*.Surf.Radius[0], 0.55*.Surf.Radius[1],...Sign*1.1*.Surf.Radius[2]}, &.Surf), - transf3D({-1.0*.Surf.Radius[0], 0.60*.Surf.Radius[1],...Sign*0.5*.Surf.Radius[2]}, &.Surf) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleViaPoint rhomboideus_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.rhomboideus_3; + AnyRefNode &Org = ..TrunkNodeAttachement.T2Seg.O_rhomboideus_3; + AnyRefNode &Ins = ...Seg.Scapula.I_rhomboideus_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath subscapularis_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.subscapularis_1; - AnyRefNode &Org = ..Seg.Scapula.O_subscapularis_1; - AnyRefNode &Ins = ..Seg.Humerus.I_subscapularis_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 = ..Seg.Scapula.subscapularis_torus.surface; - AnyParamSurf &Surf2 = ..Seg.Humerus.SubscapularisHumerusWrapping.cyl; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0.0,0, 0.01*...Sign}, &.Surf1), - transf3D({0.0,0,-0.01*...Sign}, &.Surf1), - transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(-30*pi/180),0,-cos(-30*pi/180)*...Sign}, &.Surf1), - transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(-0*pi/180),0,-cos(-0*pi/180)*...Sign}, &.Surf1), - transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(30*pi/180),0,-cos(30*pi/180)*...Sign}, &.Surf1), - transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(60*pi/180),0,-cos(60*pi/180)*...Sign}, &.Surf1), - transf3D({-0.01,0,0}, &...Seg.Scapula.coronoid) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleViaPoint rhomboideus_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.rhomboideus_4; + AnyRefNode &Org = ..TrunkNodeAttachement.T3Seg.O_rhomboideus_4; + AnyRefNode &Ins = ...Seg.Scapula.I_rhomboideus_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath subscapularis_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.subscapularis_2; - AnyRefNode &Org = ..Seg.Scapula.O_subscapularis_2; - AnyRefNode &Ins = ..Seg.Humerus.I_subscapularis_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 = ..Seg.Scapula.subscapularis_torus.surface; - AnyParamSurf &Surf2 = ..Seg.Humerus.SubscapularisHumerusWrapping.cyl; - SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleViaPoint rhomboideus_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.rhomboideus_5; + AnyRefNode &Org = ..TrunkNodeAttachement.T4Seg.O_rhomboideus_5; + AnyRefNode &Ins = ...Seg.Scapula.I_rhomboideus_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath subscapularis_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.subscapularis_3; - AnyRefNode &Org = ..Seg.Scapula.O_subscapularis_3; - AnyRefNode &Ins = ..Seg.Humerus.I_subscapularis_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh =100; - AnyParamSurf &Surf1 = ..Seg.Scapula.subscapularis_torus.surface; - AnyParamSurf &Surf2 = ..Seg.Humerus.SubscapularisHumerusWrapping.cyl; - SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; + AnyMuscleViaPoint rhomboideus_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.rhomboideus_6; + AnyRefNode &Org = ..TrunkNodeAttachement.T5Seg.O_rhomboideus_6; + AnyRefNode &Ins = ...Seg.Scapula.I_rhomboideus_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup SerratusAnterior = { + AnyMuscleShortestPath serratus_anterior_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_1; + AnyRefNode &Org = ..TrunkNodeAttachement.R1Seg.O_serratus_anterior_1; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath subscapularis_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.subscapularis_4; - AnyRefNode &Org = ..Seg.Scapula.O_subscapularis_4; - AnyRefNode &Ins = ..Seg.Humerus.I_subscapularis_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 = ..Seg.Scapula.subscapularis_torus.surface; - AnyParamSurf &Surf2 = ..Seg.Humerus.SubscapularisHumerusWrapping.cyl; - SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath serratus_anterior_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_2; + AnyRefNode &Org = ..TrunkNodeAttachement.R2Seg.O_serratus_anterior_2; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath subscapularis_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.subscapularis_5; - AnyRefNode &Org = ..Seg.Scapula.O_subscapularis_5; - AnyRefNode &Ins = ..Seg.Humerus.I_subscapularis_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 = ..Seg.Scapula.subscapularis_torus.surface; - AnyParamSurf &Surf2 = ..Seg.Humerus.SubscapularisHumerusWrapping.cyl; - SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath serratus_anterior_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_3; + AnyRefNode &Org = ..TrunkNodeAttachement.R3Seg.O_serratus_anterior_3; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath subscapularis_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.subscapularis_6; - AnyRefNode &Org = ..Seg.Scapula.O_subscapularis_6; - AnyRefNode &Ins = ..Seg.Humerus.I_subscapularis_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnyParamSurf &Surf1 = ..Seg.Scapula.subscapularis_torus.surface; - AnyParamSurf &Surf2 = ..Seg.Humerus.SubscapularisHumerusWrapping.cyl; - SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath serratus_anterior_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_4; + AnyRefNode &Org = ..TrunkNodeAttachement.R4Seg.O_serratus_anterior_4; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath supraspinatus_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.supraspinatus_1; - AnyRefNode &Org = ..Seg.Scapula.O_supraspinatus_1; - AnyRefNode &Ins = ..Seg.Humerus.I_supraspinatus_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfEllipsoid &Surf =.art_gh_humRef; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({0*...Sign, 0.9*.Surf.Radius[1],0.9*.Surf.Radius[2]}, &...Seg.Humerus.gh)}; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; + AnyMuscleShortestPath serratus_anterior_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_5; + AnyRefNode &Org = ..TrunkNodeAttachement.R5Seg.O_serratus_anterior_5; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 56; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_1to5; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath supraspinatus_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.supraspinatus_2; - AnyRefNode &Org = ..Seg.Scapula.O_supraspinatus_2; - AnyRefNode &Ins = ..Seg.Humerus.I_supraspinatus_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfEllipsoid &Surf =.art_gh_humRef; - SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath serratus_anterior_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_6; + AnyRefNode &Org = ..TrunkNodeAttachement.R6Seg.O_serratus_anterior_6; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath supraspinatus_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.supraspinatus_3; - AnyRefNode &Org = ..Seg.Scapula.O_supraspinatus_3; - AnyRefNode &Ins = ..Seg.Humerus.I_supraspinatus_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfEllipsoid &Surf =.art_gh_humRef; - SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath serratus_anterior_7 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_7; + AnyRefNode &Org = ..TrunkNodeAttachement.R7Seg.O_serratus_anterior_7; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath supraspinatus_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.supraspinatus_4; - AnyRefNode &Org = ..Seg.Scapula.O_supraspinatus_4; - AnyRefNode &Ins = ..Seg.Humerus.I_supraspinatus_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfEllipsoid &Surf =.art_gh_humRef; - SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath serratus_anterior_8 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_8; + AnyRefNode &Org = ..TrunkNodeAttachement.R8Seg.O_serratus_anterior_8; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; + SPLine.InitWrapPosVecArr = .serratus_anterior_9.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath supraspinatus_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.supraspinatus_5; - AnyRefNode &Org = ..Seg.Scapula.O_supraspinatus_5; - AnyRefNode &Ins = ..Seg.Humerus.I_supraspinatus_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfEllipsoid &Surf =.art_gh_humRef; - SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath serratus_anterior_9 = { + AnyMuscleModel &MusMdl = ...MuscleModels.serratus_anterior_9; + AnyRefNode &Org = ..TrunkNodeAttachement.R9Seg.O_serratus_anterior_9; + AnyRefNode &Ins = ...Seg.Scapula.I_serratus_anterior_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnySurfEllipsoid& Surf = ..ThoraxWrappingSufaceSegRef.SerratusAnteriorWrappingEllipsoid_6to9; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.8*.Surf.Radius[0], 0.55*.Surf.Radius[1],....Sign*1.1*.Surf.Radius[2]}, &.Surf), + transf3D({-1.0*.Surf.Radius[0], 0.60*.Surf.Radius[1],....Sign*0.5*.Surf.Radius[2]}, &.Surf) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; }; -AnyMuscleShortestPath supraspinatus_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.supraspinatus_6; - AnyRefNode &Org = ..Seg.Scapula.O_supraspinatus_6; - AnyRefNode &Ins = ..Seg.Humerus.I_supraspinatus_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 20; - AnySurfEllipsoid &Surf =.art_gh_humRef; - SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; -}; +MuscleGroup Subscapularis = { + AnyMuscleShortestPath subscapularis_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.subscapularis_1; + AnyRefNode &Org = ...Seg.Scapula.O_subscapularis_1; + AnyRefNode &Ins = ...Seg.Humerus.I_subscapularis_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ...Seg.Scapula.subscapularis_torus.surface; + AnyParamSurf &Surf2 = ...Seg.Humerus.SubscapularisHumerusWrapping.cyl; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0.0,0, 0.01*....Sign}, &.Surf1), + transf3D({0.0,0,-0.01*....Sign}, &.Surf1), + transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(-30*pi/180),0,-cos(-30*pi/180)*....Sign}, &.Surf1), + transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(-0*pi/180),0,-cos(-0*pi/180)*....Sign}, &.Surf1), + transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(30*pi/180),0,-cos(30*pi/180)*....Sign}, &.Surf1), + transf3D(.Surf1.MajorRadius*{-1,0,0}+1.05*.Surf1.MinorRadius*{-sin(60*pi/180),0,-cos(60*pi/180)*....Sign}, &.Surf1), + transf3D({-0.01,0,0}, &....Seg.Scapula.coronoid) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + }; -AnyMuscleShortestPath teres_major_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_major_1; - AnyRefNode &Org = ..Seg.Scapula.O_teres_major_1; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_major_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfCylinder &Surf =.collum_hum_teres_minor_major; - AnySurfCylinder &Surf2 =.teresmajor_cyl; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({0, ...Sign*-0.04, -0.04}, &...Seg.Scapula.coronoid) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleShortestPath subscapularis_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.subscapularis_2; + AnyRefNode &Org = ...Seg.Scapula.O_subscapularis_2; + AnyRefNode &Ins = ...Seg.Humerus.I_subscapularis_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ...Seg.Scapula.subscapularis_torus.surface; + AnyParamSurf &Surf2 = ...Seg.Humerus.SubscapularisHumerusWrapping.cyl; + SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleShortestPath teres_major_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_major_2; - AnyRefNode &Org = ..Seg.Scapula.O_teres_major_2; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_major_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnySurfCylinder &Surf =.collum_hum_teres_minor_major; - AnySurfCylinder &Surf2 =.teresmajor_cyl; - SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath subscapularis_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.subscapularis_3; + AnyRefNode &Org = ...Seg.Scapula.O_subscapularis_3; + AnyRefNode &Ins = ...Seg.Humerus.I_subscapularis_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh =100; + AnyParamSurf &Surf1 = ...Seg.Scapula.subscapularis_torus.surface; + AnyParamSurf &Surf2 = ...Seg.Humerus.SubscapularisHumerusWrapping.cyl; + SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_major_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_major_3; - AnyRefNode &Org = ..Seg.Scapula.O_teres_major_3; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_major_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 40; - AnySurfCylinder &Surf =.collum_hum_teres_minor_major; - AnySurfCylinder &Surf2 =.teresmajor_cyl; - SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; -}; -AnyMuscleShortestPath teres_major_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_major_4; - AnyRefNode &Org = ..Seg.Scapula.O_teres_major_4; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_major_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfCylinder &Surf =.collum_hum_teres_minor_major; - AnySurfCylinder &Surf2 =.teresmajor_cyl; - SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath subscapularis_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.subscapularis_4; + AnyRefNode &Org = ...Seg.Scapula.O_subscapularis_4; + AnyRefNode &Ins = ...Seg.Humerus.I_subscapularis_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ...Seg.Scapula.subscapularis_torus.surface; + AnyParamSurf &Surf2 = ...Seg.Humerus.SubscapularisHumerusWrapping.cyl; + SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_major_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_major_5; - AnyRefNode &Org = ..Seg.Scapula.O_teres_major_5; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_major_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - AnySurfCylinder &Surf =.collum_hum_teres_minor_major; - AnySurfCylinder &Surf2 =.teresmajor_cyl; - SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath subscapularis_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.subscapularis_5; + AnyRefNode &Org = ...Seg.Scapula.O_subscapularis_5; + AnyRefNode &Ins = ...Seg.Humerus.I_subscapularis_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ...Seg.Scapula.subscapularis_torus.surface; + AnyParamSurf &Surf2 = ...Seg.Humerus.SubscapularisHumerusWrapping.cyl; + SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_major_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_major_6; - AnyRefNode &Org = ..Seg.Scapula.O_teres_major_6; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_major_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnySurfCylinder &Surf =.collum_hum_teres_minor_major; - AnySurfCylinder &Surf2 =.teresmajor_cyl; - SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath subscapularis_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.subscapularis_6; + AnyRefNode &Org = ...Seg.Scapula.O_subscapularis_6; + AnyRefNode &Ins = ...Seg.Humerus.I_subscapularis_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnyParamSurf &Surf1 = ...Seg.Scapula.subscapularis_torus.surface; + AnyParamSurf &Surf2 = ...Seg.Humerus.SubscapularisHumerusWrapping.cyl; + SPLine.InitWrapPosVecArr = .subscapularis_1.SPLine.InitWrapPosVecArr; + }; }; -AnyMuscleShortestPath teres_minor_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_minor_1; - AnyRefNode &Org = ..Seg.Scapula.O_teres_minor_1;//Correction to make wrap work - AnyRefNode &Ins = ..Seg.Humerus.I_teres_minor_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.teres_minor_humurus_wrap.torus; - SPLine = { - - AnyMatrix InitWrapPos = { - transf3D({-1*(.Surf.MajorRadius+1.4*.Surf.MinorRadius)*...Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius+0.6*.Surf.MinorRadius)*...Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius)*...Sign, 0, 1.3*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius-0.6*.Surf.MinorRadius)*...Sign, 0, 0.9*.Surf.MinorRadius}, &.Surf), - transf3D({-1*(.Surf.MajorRadius-1.2*.Surf.MinorRadius)*...Sign,0, 0.2*.Surf.MinorRadius}, &.Surf) - }; - InitWrapPosVecArr = {&InitWrapPos}; +MuscleGroup Supraspinatus = { + AnyMuscleShortestPath supraspinatus_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.supraspinatus_1; + AnyRefNode &Org = ...Seg.Scapula.O_supraspinatus_1; + AnyRefNode &Ins = ...Seg.Humerus.I_supraspinatus_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfEllipsoid &Surf = ..art_gh_humRef; + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0*....Sign, 0.9*.Surf.Radius[1],0.9*.Surf.Radius[2]}, &....Seg.Humerus.gh)}; + InitWrapPosVecArr = {&InitWrapPos}; + }; }; -}; -AnyMuscleShortestPath teres_minor_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_minor_2; - AnyRefNode &Org = ..Seg.Scapula.O_teres_minor_2;//Correction to make wrap work - AnyRefNode &Ins = ..Seg.Humerus.I_teres_minor_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.teres_minor_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath supraspinatus_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.supraspinatus_2; + AnyRefNode &Org = ...Seg.Scapula.O_supraspinatus_2; + AnyRefNode &Ins = ...Seg.Humerus.I_supraspinatus_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfEllipsoid &Surf = ..art_gh_humRef; + SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_minor_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_minor_3; - AnyRefNode &Org = ..Seg.Scapula.O_teres_minor_3; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_minor_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.teres_minor_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath supraspinatus_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.supraspinatus_3; + AnyRefNode &Org = ...Seg.Scapula.O_supraspinatus_3; + AnyRefNode &Ins = ...Seg.Humerus.I_supraspinatus_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfEllipsoid &Surf = ..art_gh_humRef; + SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_minor_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_minor_4; - AnyRefNode &Org = ..Seg.Scapula.O_teres_minor_4; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_minor_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.teres_minor_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath supraspinatus_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.supraspinatus_4; + AnyRefNode &Org = ...Seg.Scapula.O_supraspinatus_4; + AnyRefNode &Ins = ...Seg.Humerus.I_supraspinatus_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfEllipsoid &Surf = ..art_gh_humRef; + SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_minor_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_minor_5; - AnyRefNode &Org = ..Seg.Scapula.O_teres_minor_5; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_minor_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.teres_minor_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; -}; + AnyMuscleShortestPath supraspinatus_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.supraspinatus_5; + AnyRefNode &Org = ...Seg.Scapula.O_supraspinatus_5; + AnyRefNode &Ins = ...Seg.Humerus.I_supraspinatus_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfEllipsoid &Surf = ..art_gh_humRef; + SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath teres_minor_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.teres_minor_6; - AnyRefNode &Org = ..Seg.Scapula.O_teres_minor_6; - AnyRefNode &Ins = ..Seg.Humerus.I_teres_minor_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 30; - AnyParamSurf &Surf =..Seg.Humerus.teres_minor_humurus_wrap.torus; - SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath supraspinatus_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.supraspinatus_6; + AnyRefNode &Org = ...Seg.Scapula.O_supraspinatus_6; + AnyRefNode &Ins = ...Seg.Humerus.I_supraspinatus_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 20; + AnySurfEllipsoid &Surf = ..art_gh_humRef; + SPLine.InitWrapPosVecArr = .supraspinatus_1.SPLine.InitWrapPosVecArr; + }; }; -// ***************************************************** -// Muscles in the forearm -// ***************************************************** - -AnySurfCylinder &oleacron =.Seg.Ulna.oleacranon.oleacranon; -AnySurfCylinder &pronatorterescyl =.Seg.Radius.PronatorTeresCyl.cyl; -AnySurfCylinder &supinatorcyl =.Seg.Radius.SupinatorCyl.cyl; - -AnyMuscleShortestPath Brachialis_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Brachialis_1; - AnyRefNode &Org = ..Seg.Humerus.O_Brachialis_1; - AnyRefNode &Ins = ..Seg.Ulna.I_Brachialis_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.condylus_hum; - SPLine.StringMesh = 30; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*-1.1* .Surf1.Radius,0.5* .Surf1.Radius, 0.46*.Surf1.Length }, &.Surf1) - }; - InitWrapPosVecArr = { &InitWrapPos }; - +MuscleGroup TeresMajor = { + AnyMuscleShortestPath teres_major_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_major_1; + AnyRefNode &Org = ...Seg.Scapula.O_teres_major_1; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_major_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfCylinder &Surf = ..collum_hum_teres_minor_major; + AnySurfCylinder &Surf2 = ..teresmajor_cyl; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0, ....Sign*-0.04, -0.04}, &....Seg.Scapula.coronoid) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; }; - -}; + AnyMuscleShortestPath teres_major_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_major_2; + AnyRefNode &Org = ...Seg.Scapula.O_teres_major_2; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_major_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnySurfCylinder &Surf = ..collum_hum_teres_minor_major; + AnySurfCylinder &Surf2 = ..teresmajor_cyl; + SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; + }; -AnyMuscleShortestPath Brachialis_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Brachialis_2; - AnyRefNode &Org = ..Seg.Humerus.O_Brachialis_2; - AnyRefNode &Ins = ..Seg.Ulna.I_Brachialis_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.condylus_hum; - SPLine.StringMesh = 30; - SPLine = { - InitWrapPosVecArr = { &..Brachialis_1.SPLine.InitWrapPos }; + AnyMuscleShortestPath teres_major_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_major_3; + AnyRefNode &Org = ...Seg.Scapula.O_teres_major_3; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_major_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 40; + AnySurfCylinder &Surf = ..collum_hum_teres_minor_major; + AnySurfCylinder &Surf2 = ..teresmajor_cyl; + SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleShortestPath Triceps_LH_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Triceps_LH_1; - AnyRefNode &Org = ..Seg.Scapula.O_Triceps_LH_1; - AnyRefNode &Via = ..Seg.Humerus.Via_Triceps_LH_1; - AnyRefNode &Ins = ..Seg.Ulna.I_Triceps_LH_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 70; - AnySurfCylinder &Surf1 =.oleacron; - AnyParamSurf &Surf2 = .TricepsLHWrapping.BASE_FRAME.Wrapping_1.Surf; - SPLine = { - AnyMatrix InitWrapPosProximal = { - transf3D({1.1*.Surf2.Radius[0], 0, ...Sign* 0}, &.Surf2) - }; - AnyMatrix InitWrapPosDistal = { - transf3D({0, ...Sign*1.1*.Surf1.Radius, 0.5*.Surf1.Length}, &.Surf1), - transf3D({0.35*.Surf1.Radius,...Sign*1.05*.Surf1.Radius, 0.5* .Surf1.Length}, &.Surf1), - transf3D({0.8*.Surf1.Radius,...Sign*0.8*.Surf1.Radius, 0.5* .Surf1.Length}, &.Surf1) - }; - InitWrapPosVecArr = { &InitWrapPosProximal, &InitWrapPosDistal }; + AnyMuscleShortestPath teres_major_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_major_4; + AnyRefNode &Org = ...Seg.Scapula.O_teres_major_4; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_major_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfCylinder &Surf = ..collum_hum_teres_minor_major; + AnySurfCylinder &Surf2 = ..teresmajor_cyl; + SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleShortestPath Triceps_LH_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Triceps_LH_2; - AnyRefNode &Org =..Seg.Scapula.O_Triceps_LH_2; - AnyRefNode &Via = ..Seg.Humerus.Via_Triceps_LH_2; - AnyRefNode &Ins = ..Seg.Ulna.I_Triceps_LH_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 70; - AnySurfCylinder &Surf1 =.oleacron; - AnyParamSurf &Surf2 = .TricepsLHWrapping.BASE_FRAME.Wrapping_1.Surf; - SPLine = { - InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosProximal, &..Triceps_LH_1.SPLine.InitWrapPosDistal}; + AnyMuscleShortestPath teres_major_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_major_5; + AnyRefNode &Org = ...Seg.Scapula.O_teres_major_5; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_major_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + AnySurfCylinder &Surf = ..collum_hum_teres_minor_major; + AnySurfCylinder &Surf2 = ..teresmajor_cyl; + SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleShortestPath Triceps_ME_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Triceps_ME_1; - AnyRefNode &Org = ..Seg.Humerus.O_Triceps_ME_1; - AnyRefNode &Ins = ..Seg.Ulna.I_Triceps_ME_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf1 =.oleacron; - SPLine = { - InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; + AnyMuscleShortestPath teres_major_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_major_6; + AnyRefNode &Org = ...Seg.Scapula.O_teres_major_6; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_major_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnySurfCylinder &Surf = ..collum_hum_teres_minor_major; + AnySurfCylinder &Surf2 = ..teresmajor_cyl; + SPLine.InitWrapPosVecArr = .teres_major_1.SPLine.InitWrapPosVecArr; }; }; -AnyMuscleShortestPath Triceps_ME_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Triceps_ME_2; - AnyRefNode &Org = ..Seg.Humerus.O_Triceps_ME_2; - AnyRefNode &Ins = ..Seg.Ulna.I_Triceps_ME_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 90; - AnySurfCylinder &Surf1 =.oleacron; - SPLine = { - InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; +MuscleGroup TeresMinor = { + AnyMuscleShortestPath teres_minor_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_minor_1; + AnyRefNode &Org = ...Seg.Scapula.O_teres_minor_1;//Correction to make wrap work + AnyRefNode &Ins = ...Seg.Humerus.I_teres_minor_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.teres_minor_humurus_wrap.torus; + SPLine = { + + AnyMatrix InitWrapPos = { + transf3D({-1*(.Surf.MajorRadius+1.4*.Surf.MinorRadius)*....Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius+0.6*.Surf.MinorRadius)*....Sign, 0, 1.2*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius)*....Sign, 0, 1.3*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius-0.6*.Surf.MinorRadius)*....Sign, 0, 0.9*.Surf.MinorRadius}, &.Surf), + transf3D({-1*(.Surf.MajorRadius-1.2*.Surf.MinorRadius)*....Sign,0, 0.2*.Surf.MinorRadius}, &.Surf) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; }; -}; -AnyMuscleShortestPath Triceps_LA_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Triceps_LA_1; - AnyRefNode &Org = ..Seg.Humerus.O_Triceps_LA_1; - AnyRefNode &Ins = ..Seg.Ulna.I_Triceps_LA_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.oleacron; - SPLine.StringMesh = 90; - SPLine = { - InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; + AnyMuscleShortestPath teres_minor_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_minor_2; + AnyRefNode &Org = ...Seg.Scapula.O_teres_minor_2;//Correction to make wrap work + AnyRefNode &Ins = ...Seg.Humerus.I_teres_minor_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.teres_minor_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleShortestPath Triceps_LA_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Triceps_LA_2; - AnyRefNode &Org = ..Seg.Humerus.O_Triceps_LA_2; - AnyRefNode &Ins = ..Seg.Ulna.I_Triceps_LA_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.oleacron; - SPLine.StringMesh = 90; - SPLine = { - InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; + AnyMuscleShortestPath teres_minor_3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_minor_3; + AnyRefNode &Org = ...Seg.Scapula.O_teres_minor_3; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_minor_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.teres_minor_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleShortestPath Brach_rad_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Brach_rad_1; - AnyRefNode &Org = ..Seg.Humerus.O_Brach_rad_1; - AnyRefNode &Ins = ..Seg.Radius.I_Brach_rad_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.condylus_hum; - - SPLine.StringMesh = 50; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*-1.1* .Surf1.Radius,0, 0.47*.Surf1.Length }, &.Surf1) - }; - InitWrapPosVecArr = { &InitWrapPos }; + AnyMuscleShortestPath teres_minor_4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_minor_4; + AnyRefNode &Org = ...Seg.Scapula.O_teres_minor_4; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_minor_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.teres_minor_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; }; - -}; -AnyMuscleShortestPath Brach_rad_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Brach_rad_2; - AnyRefNode &Org = ..Seg.Humerus.O_Brach_rad_2; - AnyRefNode &Ins = ..Seg.Radius.I_Brach_rad_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.condylus_hum; - SPLine.StringMesh = 50; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*-1.1* .Surf1.Radius,0, 0.5*.Surf1.Length }, &.Surf1) - }; - InitWrapPosVecArr = { &InitWrapPos }; + AnyMuscleShortestPath teres_minor_5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_minor_5; + AnyRefNode &Org = ...Seg.Scapula.O_teres_minor_5; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_minor_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.teres_minor_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; }; -}; -AnyMuscleViaPoint Anconeus_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Anconeus_1; - AnyRefNode &Org = ..Seg.Humerus.O_Anconeus_1; - AnyRefNode &Ins = ..Seg.Ulna.I_Anconeus_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath teres_minor_6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.teres_minor_6; + AnyRefNode &Org = ...Seg.Scapula.O_teres_minor_6; + AnyRefNode &Ins = ...Seg.Humerus.I_teres_minor_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 30; + AnyParamSurf &Surf = ...Seg.Humerus.teres_minor_humurus_wrap.torus; + SPLine.InitWrapPosVecArr = .teres_minor_1.SPLine.InitWrapPosVecArr; + }; }; -AnyMuscleViaPoint Anconeus_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Anconeus_2; - AnyRefNode &Org = ..Seg.Humerus.O_Anconeus_2; - AnyRefNode &Ins = ..Seg.Ulna.I_Anconeus_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup Brachialis = { + AnyMuscleShortestPath Brachialis_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Brachialis_1; + AnyRefNode &Org = ...Seg.Humerus.O_Brachialis_1; + AnyRefNode &Ins = ...Seg.Ulna.I_Brachialis_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..condylus_hum; + SPLine.StringMesh = 30; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*-1.1* .Surf1.Radius,0.5* .Surf1.Radius, 0.46*.Surf1.Length }, &.Surf1) + }; + InitWrapPosVecArr = { &InitWrapPos }; + }; + }; -AnyMuscleShortestPath Pronator_teres_caput_humeral_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pronator_teres_caput_humeral_1; - AnyRefNode &Org = ..Seg.Humerus.O_Pronator_teres_caput_humeral_1; - AnyRefNode &Ins = ..Seg.Radius.I_Pronator_teres_caput_humeral_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.pronatorterescyl; - SPLine.StringMesh = 45; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D(0.01*{4,...Sign*2,-1.8}, &.Ins), - transf3D(0.01*{2,...Sign*0.5,-1.3}, &.Ins) + AnyMuscleShortestPath Brachialis_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Brachialis_2; + AnyRefNode &Org = ...Seg.Humerus.O_Brachialis_2; + AnyRefNode &Ins = ...Seg.Ulna.I_Brachialis_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..condylus_hum; + SPLine.StringMesh = 30; + SPLine = { + InitWrapPosVecArr = { &..Brachialis_1.SPLine.InitWrapPos }; }; - InitWrapPosVecArr = { &InitWrapPos }; }; }; - -AnyMuscleShortestPath Pronator_teres_caput_humeral_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pronator_teres_caput_humeral_2; - AnyRefNode &Org = ..Seg.Humerus.O_Pronator_teres_caput_humeral_2; - AnyRefNode &Ins = ..Seg.Radius.I_Pronator_teres_caput_humeral_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.pronatorterescyl; - SPLine.StringMesh = 45; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D(0.01*{4,...Sign*2,-1.8}, &.Ins), - transf3D(0.01*{2,...Sign*0.5,-1.3}, &.Ins) +MuscleGroup Triceps = { + AnyMuscleShortestPath Triceps_LH_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Triceps_LH_1; + AnyRefNode &Org = ...Seg.Scapula.O_Triceps_LH_1; + AnyRefNode &Via = ...Seg.Humerus.Via_Triceps_LH_1; + AnyRefNode &Ins = ...Seg.Ulna.I_Triceps_LH_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 70; + AnySurfCylinder &Surf1 = ..oleacron; + AnyParamSurf &Surf2 = ..TricepsLHWrapping.BASE_FRAME.Wrapping_1.Surf; + SPLine = { + AnyMatrix InitWrapPosProximal = { + transf3D({1.1*.Surf2.Radius[0], 0, ....Sign* 0}, &.Surf2) + }; + AnyMatrix InitWrapPosDistal = { + transf3D({0, ....Sign*1.1*.Surf1.Radius, 0.5*.Surf1.Length}, &.Surf1), + transf3D({0.35*.Surf1.Radius,....Sign*1.05*.Surf1.Radius, 0.5* .Surf1.Length}, &.Surf1), + transf3D({0.8*.Surf1.Radius,....Sign*0.8*.Surf1.Radius, 0.5* .Surf1.Length}, &.Surf1) + }; + InitWrapPosVecArr = { &InitWrapPosProximal, &InitWrapPosDistal }; }; - InitWrapPosVecArr = { &InitWrapPos }; }; - -}; - -AnyMuscleShortestPath Pronator_teres_caput_ulnare_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pronator_teres_caput_ulnare; - AnyRefNode &Org =..Seg.Ulna.O_Pronator_teres_caput_ulnare_1; - AnyRefNode &Ins = ..Seg.Radius.I_Pronator_teres_caput_ulnare_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - AnySurfCylinder &Surf1 =.pronatorterescyl; - SPLine.StringMesh = 35; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D(0.01*{4,...Sign*2,-1.8}, &.Ins), - transf3D(0.01*{2,...Sign*0.5,-1.3}, &.Ins) + AnyMuscleShortestPath Triceps_LH_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Triceps_LH_2; + AnyRefNode &Org = ...Seg.Scapula.O_Triceps_LH_2; + AnyRefNode &Via = ...Seg.Humerus.Via_Triceps_LH_2; + AnyRefNode &Ins = ...Seg.Ulna.I_Triceps_LH_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 70; + AnySurfCylinder &Surf1 = ..oleacron; + AnyParamSurf &Surf2 = ..TricepsLHWrapping.BASE_FRAME.Wrapping_1.Surf; + SPLine = { + InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosProximal, &..Triceps_LH_1.SPLine.InitWrapPosDistal}; }; - InitWrapPosVecArr = { &InitWrapPos }; }; -}; - + AnyMuscleShortestPath Triceps_ME_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Triceps_ME_1; + AnyRefNode &Org = ...Seg.Humerus.O_Triceps_ME_1; + AnyRefNode &Ins = ...Seg.Ulna.I_Triceps_ME_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 100; + AnySurfCylinder &Surf1 = ..oleacron; + SPLine = { + InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; + }; + }; + AnyMuscleShortestPath Triceps_ME_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Triceps_ME_2; + AnyRefNode &Org = ...Seg.Humerus.O_Triceps_ME_2; + AnyRefNode &Ins = ...Seg.Ulna.I_Triceps_ME_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 90; + AnySurfCylinder &Surf1 = ..oleacron; + SPLine = { + InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; + }; + }; -AnyMuscleShortestPath Supinator_humerus_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Supinator_humerus_part_1; - AnyRefNode &Org = ..Seg.Humerus.O_Supinator_humerus_part_1; - AnyRefNode &Ins =..Seg.Radius.I_Supinator_humerus_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.supinatorcyl; - SPLine.StringMesh = 25; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({1*.Surf1.Radius,...Sign*-1*.Surf1.Radius, 1*.Surf1.Radius},&.Ins) + AnyMuscleShortestPath Triceps_LA_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Triceps_LA_1; + AnyRefNode &Org = ...Seg.Humerus.O_Triceps_LA_1; + AnyRefNode &Ins = ...Seg.Ulna.I_Triceps_LA_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..oleacron; + SPLine.StringMesh = 90; + SPLine = { + InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; }; - InitWrapPosVecArr = { &InitWrapPos }; }; -}; -AnyMuscleShortestPath Supinator_humerus_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Supinator_humerus_part_2; - AnyRefNode &Org = ..Seg.Humerus.O_Supinator_humerus_part_2; - AnyRefNode &Ins = ..Seg.Radius.I_Supinator_humerus_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.supinatorcyl; - SPLine.StringMesh = 30; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*1*.Surf1.Radius,...Sign*-1*.Surf1.Radius, 1*.Surf1.Radius},&.Ins) + AnyMuscleShortestPath Triceps_LA_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Triceps_LA_2; + AnyRefNode &Org = ...Seg.Humerus.O_Triceps_LA_2; + AnyRefNode &Ins = ...Seg.Ulna.I_Triceps_LA_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..oleacron; + SPLine.StringMesh = 90; + SPLine = { + InitWrapPosVecArr = { &..Triceps_LH_1.SPLine.InitWrapPosDistal }; }; - InitWrapPosVecArr = { &InitWrapPos }; }; }; -AnyMuscleShortestPath Supinator_ulna_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Supinator_ulna_part_1; - AnyRefNode &Org = ..Seg.Ulna.O_Supinator_ulna_part_1; - AnyRefNode &Ins = ..Seg.Radius.I_Supinator_ulna_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.supinatorcyl; - - SPLine.StringMesh = 35; - SPLine.RelTol=0.0000001; - SPLine = { - AnyMatrix InitWrapPos = transf3D(.Surf1.Radius* - {{5,...Sign*2.8, 1}, - {4,...Sign*2.2, 2}, - {3,...Sign*1.5, 2.5}, - {2,...Sign*0, 2.5}, - {1,...Sign*-1, 1}}, - &.Ins); - InitWrapPosVecArr = { &InitWrapPos }; +MuscleGroup Brachioradialis = { + AnyMuscleShortestPath Brach_rad_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Brach_rad_1; + AnyRefNode &Org = ...Seg.Humerus.O_Brach_rad_1; + AnyRefNode &Ins = ...Seg.Radius.I_Brach_rad_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..condylus_hum; + SPLine.StringMesh = 50; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*-1.1* .Surf1.Radius,0, 0.47*.Surf1.Length }, &.Surf1) + }; + InitWrapPosVecArr = { &InitWrapPos }; + }; }; -}; -AnyMuscleShortestPath Supinator_ulna_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Supinator_ulna_part_2; - AnyRefNode &Org = ..Seg.Ulna.O_Supinator_ulna_part_2; - AnyRefNode &Ins = ..Seg.Radius.I_Supinator_ulna_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf1 =.supinatorcyl; - SPLine.StringMesh = 25; - SPLine = { - AnyMatrix InitWrapPos = transf3D(.Surf1.Radius* - {{5,...Sign*3.2,0.5}, - {4,...Sign*2.7, 1.5}, - {3,...Sign*2, 2}, - {2,...Sign*0.5, 2}, - {1,...Sign*-0.5, 0.5}}, - &.Ins); - InitWrapPosVecArr = { &InitWrapPos }; + AnyMuscleShortestPath Brach_rad_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Brach_rad_2; + AnyRefNode &Org = ...Seg.Humerus.O_Brach_rad_2; + AnyRefNode &Ins = ...Seg.Radius.I_Brach_rad_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..condylus_hum; + SPLine.StringMesh = 50; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*-1.1* .Surf1.Radius,0, 0.5*.Surf1.Length }, &.Surf1) + }; + InitWrapPosVecArr = { &InitWrapPos }; + }; }; }; -AnyMuscleViaPoint Pron_quadr_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pron_quadr_1; - AnyRefNode &Org = ..Seg.Ulna.O_Pron_quadr_1; - AnyRefNode &Ins = ..Seg.Radius.I_Pron_quadr_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup Anconeus = { + AnyMuscleViaPoint Anconeus_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Anconeus_1; + AnyRefNode &Org = ...Seg.Humerus.O_Anconeus_1; + AnyRefNode &Ins = ...Seg.Ulna.I_Anconeus_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint Pron_quadr_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pron_quadr_2; - AnyRefNode &Org = ..Seg.Ulna.O_Pron_quadr_2; - AnyRefNode &Ins = ..Seg.Radius.I_Pron_quadr_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint Anconeus_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Anconeus_2; + AnyRefNode &Org = ...Seg.Humerus.O_Anconeus_2; + AnyRefNode &Ins = ...Seg.Ulna.I_Anconeus_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleShortestPath Extensor_Indicis ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Indicis; - AnyRefNode &Org = ..Seg.Ulna.O_Extensor_Indicis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Extensor_Indicis; - AnyRefNode &Via2 = ..Seg.Hand.Finger2MetaRef.Via1_Extensor_Indicis; - AnyRefNode &Ins = ..Seg.Hand.Finger2MetaRef.I_Extensor_Indicis; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ...Sign*0.9*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ...Sign*0.9*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup PronatorTeres = { + AnyMuscleShortestPath Pronator_teres_caput_humeral_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pronator_teres_caput_humeral_1; + AnyRefNode &Org = ...Seg.Humerus.O_Pronator_teres_caput_humeral_1; + AnyRefNode &Ins = ...Seg.Radius.I_Pronator_teres_caput_humeral_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..pronatorterescyl; + SPLine.StringMesh = 45; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D(0.01*{4,....Sign*2,-1.8}, &.Ins), + transf3D(0.01*{2,....Sign*0.5,-1.3}, &.Ins) + }; + InitWrapPosVecArr = { &InitWrapPos }; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - SPLine.StringMesh = 25; - SPLine.RelTol=0.0000001; -}; - -AnyMuscleViaPoint Abductor_Pollicis_Longus ={ - - AnyMuscleModel &MusMdl = ..MuscleModels.Abductor_Pollicis_Longus; - AnyRefNode &Ins = ..Seg.Hand.Finger1MetaRef.I_Abductor_Pollicis_Longus; - //AnyRefNode &Via1 = ..Seg.Hand.Via1_Abductor_Pollicis_Longus; - - AnyRefNode &Via2 = ..Seg.Radius.Via_Abductor_Pollicis_Longus; - - AnyRefNode &Org = ..Seg.Ulna.O_Abductor_Pollicis_Longus; - - //AnySurfCylinder &Surf1 =..Seg.Hand.FlexorMuscleCyl.cyl; -// AnySurfCylinder &Surf2 =..Seg.Radius.MedialExtensorCyl.cyl; - - // AnySurfCylinder &Surf2 =..Seg.Radius.RadiusMuscleCyl.cyl; - // AnySurfCylinder &Surf3 =..Seg.Ulna.UlnaMuscleCyl.cyl; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - -// SPLine.StringMesh = 45; -// SPLine.RelTol=0.0000001; -// SPLine.InitWrapPosVectors = { -// {0,0,..Sign*0.1}, {0,..Sign*0,0} -// }; -}; - - + AnyMuscleShortestPath Pronator_teres_caput_humeral_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pronator_teres_caput_humeral_2; + AnyRefNode &Org = ...Seg.Humerus.O_Pronator_teres_caput_humeral_2; + AnyRefNode &Ins = ...Seg.Radius.I_Pronator_teres_caput_humeral_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..pronatorterescyl; + SPLine.StringMesh = 45; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D(0.01*{4,....Sign*2,-1.8}, &.Ins), + transf3D(0.01*{2,....Sign*0.5,-1.3}, &.Ins) + }; + InitWrapPosVecArr = { &InitWrapPos }; + }; + }; -AnyMuscleShortestPath Extensor_Pollicis_Brevis ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Pollicis_Brevis; - - AnyRefNode &Ins = ..Seg.Hand.Finger1MetaRef.I_Extensor_Pollicis_Brevis; - AnyRefNode &Via2 = ..Seg.Hand.Finger1MetaRef.Via1_Extensor_Pollicis_Brevis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Extensor_Pollicis_Longus; - AnyRefNode &Org = ..Seg.Radius.O_Extensor_Pollicis_Brevis; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf2 =..Seg.Radius.MedialExtensorCyl.cyl; - SPLine.StringMesh = 30; - SPLine.RelTol=0.0000001; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*1*.Surf2.Radius, 1.1*.Surf2.Radius, 0.3*.Surf2.Length }, &.Surf2) + AnyMuscleShortestPath Pronator_teres_caput_ulnare_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pronator_teres_caput_ulnare; + AnyRefNode &Org = ...Seg.Ulna.O_Pronator_teres_caput_ulnare_1; + AnyRefNode &Ins = ...Seg.Radius.I_Pronator_teres_caput_ulnare_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + AnySurfCylinder &Surf1 = ..pronatorterescyl; + SPLine.StringMesh = 35; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D(0.01*{4,....Sign*2,-1.8}, &.Ins), + transf3D(0.01*{2,....Sign*0.5,-1.3}, &.Ins) + }; + InitWrapPosVecArr = { &InitWrapPos }; }; - InitWrapPosVecArr = {None, &InitWrapPos, None }; }; }; - -AnyMuscleShortestPath Extensor_Pollicis_Longus ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Pollicis_Longus; - AnyRefNode &Org = ..Seg.Ulna.O_Extensor_Pollicis_Longus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Extensor_Pollicis_Longus; - AnyRefNode &Via2 = ..Seg.Hand.Finger1MetaRef.Via1_Extensor_Pollicis_Longus; - AnyRefNode &Ins = ..Seg.Hand.Finger1MetaRef.I_Extensor_Pollicis_Longus; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf2 =..Seg.Radius.MedialExtensorCyl.cyl; - - SPLine.StringMesh = 45; - SPLine.RelTol=0.0000001; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*1*.Surf2.Radius, 1.1*.Surf2.Radius, 0.3*.Surf2.Length }, &.Surf2) +MuscleGroup Supinator = { + AnyMuscleShortestPath Supinator_humerus_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Supinator_humerus_part_1; + AnyRefNode &Org = ...Seg.Humerus.O_Supinator_humerus_part_1; + AnyRefNode &Ins = ...Seg.Radius.I_Supinator_humerus_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..supinatorcyl; + SPLine.StringMesh = 25; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({1*.Surf1.Radius,....Sign*-1*.Surf1.Radius, 1*.Surf1.Radius},&.Ins) + }; + InitWrapPosVecArr = { &InitWrapPos }; }; - InitWrapPosVecArr = {None, &InitWrapPos, None}; }; -}; -AnyMuscleShortestPath Extensor_Carpi_Radialis_Longus ={ - AnySurfCylinder &Surf1 =..Seg.Radius.MedialExtensorCyl.cyl; - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Carpi_Radialis_Longus; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Carpi_Radialis_Longus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Extensor_Carpi_Radialis_Longus; - AnyRefNode &Ins = ..Seg.Hand.Finger2MetaRef.I_Extensor_Carpi_Radialis_Longus; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 45; - SPLine.AbsTol=1e-6; - SPLine.RelTol=1e-7; - SPLine = { - AnyMatrix InitWrapPos = transf3D({{...Sign*1*.Surf1.Radius, 1.1*.Surf1.Radius, 0.3*.Surf1.Length }}, &.Surf1); - InitWrapPosVecArr = { None,&InitWrapPos }; + AnyMuscleShortestPath Supinator_humerus_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Supinator_humerus_part_2; + AnyRefNode &Org = ...Seg.Humerus.O_Supinator_humerus_part_2; + AnyRefNode &Ins = ...Seg.Radius.I_Supinator_humerus_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..supinatorcyl; + SPLine.StringMesh = 30; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*1*.Surf1.Radius,....Sign*-1*.Surf1.Radius, 1*.Surf1.Radius},&.Ins) + }; + InitWrapPosVecArr = { &InitWrapPos }; + }; }; -}; + AnyMuscleShortestPath Supinator_ulna_part_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Supinator_ulna_part_1; + AnyRefNode &Org = ...Seg.Ulna.O_Supinator_ulna_part_1; + AnyRefNode &Ins = ...Seg.Radius.I_Supinator_ulna_part_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..supinatorcyl; + + SPLine.StringMesh = 35; + SPLine.RelTol=0.0000001; + SPLine = { + AnyMatrix InitWrapPos = transf3D(.Surf1.Radius* + {{5,....Sign*2.8, 1}, + {4,....Sign*2.2, 2}, + {3,....Sign*1.5, 2.5}, + {2,....Sign*0, 2.5}, + {1,....Sign*-1, 1}}, + &.Ins); + InitWrapPosVecArr = { &InitWrapPos }; + }; + }; -AnyMuscleShortestPath Extensor_Carpi_Radialis_Brevis ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Carpi_Radialis_Brevis; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Carpi_Radialis_Brevis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Extensor_Carpi_Radialis_Brevis; - AnyRefNode &Via2 = ..Seg.Hand.Finger3MetaRef.Via_Extensor_Carpi_Radialis_Brevis; - AnyRefNode &Ins = ..Seg.Hand.Finger3MetaRef.I_Extensor_Carpi_Radialis_Brevis; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.6*.Surf1.Radius[1], ...Sign*0.9*.Surf1.Radius[2] }, &.Surf1 ), - transf3D({-0.8*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ...Sign*0.8*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Supinator_ulna_part_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Supinator_ulna_part_2; + AnyRefNode &Org = ...Seg.Ulna.O_Supinator_ulna_part_2; + AnyRefNode &Ins = ...Seg.Radius.I_Supinator_ulna_part_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf1 = ..supinatorcyl; + SPLine.StringMesh = 25; + SPLine = { + AnyMatrix InitWrapPos = transf3D(.Surf1.Radius* + {{5,....Sign*3.2,0.5}, + {4,....Sign*2.7, 1.5}, + {3,....Sign*2, 2}, + {2,....Sign*0.5, 2}, + {1,....Sign*-0.5, 0.5}}, + &.Ins); + InitWrapPosVecArr = { &InitWrapPos }; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - SPLine.StringMesh = 60; - SPLine.RelTol=10e-6; - SPLine.AbsTol=10e-6; }; +MuscleGroup PronatorQuadratus = { + AnyMuscleViaPoint Pron_quadr_1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pron_quadr_1; + AnyRefNode &Org = ...Seg.Ulna.O_Pron_quadr_1; + AnyRefNode &Ins = ...Seg.Radius.I_Pron_quadr_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath Extensor_Carpi_Ulnaris ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Carpi_Ulnaris; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Carpi_Ulnaris; - AnyRefNode &Via1 = ..Seg.Ulna.Via1_Extensor_Carpi_Ulnaris; -// AnyRefNode &Via2 = ..Seg.Ulna.Via2_Extensor_Carpi_Ulnaris; - AnyRefNode &Via2 = ..Seg.Radius.Via_Extensor_Carpi_Ulnaris; - AnyRefNode &Ins = ..Seg.Hand.Finger5MetaRef.I_Extensor_Carpi_Ulnaris; - AnySurfCylinder &Surf2 =..Seg.Radius.MedialExtensorCyl.cyl; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 35; - SPLine.RelTol=0.0000001; - SPLine = { - AnyMatrix InitWrapPos = {transf3D({...Sign*-0.4*.Surf2.Radius, 1.1*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2), - transf3D({...Sign*1.3*.Surf2.Radius, 0.5*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2)}; - InitWrapPosVecArr = { None, None, &InitWrapPos}; + AnyMuscleViaPoint Pron_quadr_2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pron_quadr_2; + AnyRefNode &Org = ...Seg.Ulna.O_Pron_quadr_2; + AnyRefNode &Ins = ...Seg.Radius.I_Pron_quadr_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; }; -AnyMuscleShortestPath Flexor_Carpi_Ulnaris ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Carpi_Ulnaris; - AnyRefNode &Org = ..Seg.Humerus.O_Flexor_Carpi_Ulnaris; - AnyRefNode &Via1 = ..Seg.Ulna.Via1_Flexor_Carpi_Ulnaris; - AnyRefNode &Via2 = ..Seg.Radius.Via_Flexor_Carpi_Ulnaris; - AnyRefNode &Ins = ..Seg.Hand.Finger5MetaRef.I_Flexor_Carpi_Ulnaris; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - AnySurfCylinder &Surf2 =..Seg.Radius.FlexorMuscleCyl.cyl; - SPLine.StringMesh = 30; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({...Sign*-0.8*.Surf2.Radius, 1.2*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2 ) , - transf3D({...Sign*0.1*.Surf2.Radius, 1.2*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2 ) +MuscleGroup ExtensorIndicis = { + AnyMuscleShortestPath Extensor_Indicis ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Indicis; + AnyRefNode &Org = ...Seg.Ulna.O_Extensor_Indicis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Extensor_Indicis; + AnyRefNode &Via2 = ...Seg.Hand.Finger2MetaRef.Via1_Extensor_Indicis; + AnyRefNode &Ins = ...Seg.Hand.Finger2MetaRef.I_Extensor_Indicis; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ....Sign*0.9*.Surf1.Radius[2] }, &.Surf1 ), + transf3D({-0.8*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ....Sign*0.9*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None, None ,&InitWrapPos}; + SPLine.StringMesh = 25; + SPLine.RelTol=0.0000001; }; - }; +MuscleGroup AbductorPollicis = { + AnyMuscleViaPoint Abductor_Pollicis_Longus ={ + + AnyMuscleModel &MusMdl = ...MuscleModels.Abductor_Pollicis_Longus; + AnyRefNode &Ins = ...Seg.Hand.Finger1MetaRef.I_Abductor_Pollicis_Longus; + //AnyRefNode &Via1 = ...Seg.Hand.Via1_Abductor_Pollicis_Longus; + + AnyRefNode &Via2 = ...Seg.Radius.Via_Abductor_Pollicis_Longus; + + AnyRefNode &Org = ...Seg.Ulna.O_Abductor_Pollicis_Longus; + + //AnySurfCylinder &Surf1 = ...Seg.Hand.FlexorMuscleCyl.cyl; + // AnySurfCylinder &Surf2 = ...Seg.Radius.MedialExtensorCyl.cyl; + + // AnySurfCylinder &Surf2 = ...Seg.Radius.RadiusMuscleCyl.cyl; + // AnySurfCylinder &Surf3 = ...Seg.Ulna.UlnaMuscleCyl.cyl; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + // SPLine.StringMesh = 45; + // SPLine.RelTol=0.0000001; + // SPLine.InitWrapPosVectors = { + // {0,0,..Sign*0.1}, {0,..Sign*0,0} + // }; + }; +}; -AnyMuscleShortestPath Flexor_Carpi_Radialis ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Carpi_Radialis; - AnyRefNode &Org = ..Seg.Humerus.O_Flexor_Carpi_Radialis; - AnyRefNode &Via2 = ..Seg.Radius.Via_Flexor_Carpi_Radialis; - AnyRefNode &Ins = ..Seg.Hand.Finger2MetaRef.I_Flexor_Carpi_Radialis; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ...Sign*-0.8*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ...Sign*-0.7*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup ExtensorPollicis = { + AnyMuscleShortestPath Extensor_Pollicis_Brevis ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Pollicis_Brevis; + + AnyRefNode &Ins = ...Seg.Hand.Finger1MetaRef.I_Extensor_Pollicis_Brevis; + AnyRefNode &Via2 = ...Seg.Hand.Finger1MetaRef.Via1_Extensor_Pollicis_Brevis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Extensor_Pollicis_Longus; + AnyRefNode &Org = ...Seg.Radius.O_Extensor_Pollicis_Brevis; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf2 = ...Seg.Radius.MedialExtensorCyl.cyl; + SPLine.StringMesh = 30; + SPLine.RelTol=0.0000001; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*1*.Surf2.Radius, 1.1*.Surf2.Radius, 0.3*.Surf2.Length }, &.Surf2) + }; + InitWrapPosVecArr = {None, &InitWrapPos, None }; }; - InitWrapPosVecArr = {None,&InitWrapPos}; }; - SPLine.StringMesh = 25; - SPLine.RelTol=0.0000001; -}; -AnyMuscleShortestPath Palmaris_Longus ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Palmaris_Longus; - AnyRefNode &Org = ..Seg.Humerus.O_Palmaris_Longus; - AnyRefNode &Via2 = ..Seg.Radius.Via_Palmaris_Longus; - AnyRefNode &Ins = ..Seg.Hand.Finger4MetaRef.I_Palmaris_Longus; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],0.1*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],0.1*.Surf1.Radius[1], ...Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Extensor_Pollicis_Longus ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Pollicis_Longus; + AnyRefNode &Org = ...Seg.Ulna.O_Extensor_Pollicis_Longus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Extensor_Pollicis_Longus; + AnyRefNode &Via2 = ...Seg.Hand.Finger1MetaRef.Via1_Extensor_Pollicis_Longus; + AnyRefNode &Ins = ...Seg.Hand.Finger1MetaRef.I_Extensor_Pollicis_Longus; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf2 = ...Seg.Radius.MedialExtensorCyl.cyl; + + SPLine.StringMesh = 45; + SPLine.RelTol=0.0000001; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*1*.Surf2.Radius, 1.1*.Surf2.Radius, 0.3*.Surf2.Length }, &.Surf2) + }; + InitWrapPosVecArr = {None, &InitWrapPos, None}; }; - InitWrapPosVecArr = {None,&InitWrapPos}; }; - SPLine.StringMesh = 25; - SPLine.RelTol=0.0000001; }; +MuscleGroup ExtensorCarpiRadialis = { + AnyMuscleShortestPath Extensor_Carpi_Radialis_Longus ={ + AnySurfCylinder &Surf1 = ...Seg.Radius.MedialExtensorCyl.cyl; + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Carpi_Radialis_Longus; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Carpi_Radialis_Longus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Extensor_Carpi_Radialis_Longus; + AnyRefNode &Ins = ...Seg.Hand.Finger2MetaRef.I_Extensor_Carpi_Radialis_Longus; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 45; + SPLine.AbsTol=1e-6; + SPLine.RelTol=1e-7; + SPLine = { + AnyMatrix InitWrapPos = transf3D({{....Sign*1*.Surf1.Radius, 1.1*.Surf1.Radius, 0.3*.Surf1.Length }}, &.Surf1); + InitWrapPosVecArr = { None,&InitWrapPos }; + }; + }; -AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit5 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Superficialis_Digit5; - AnyRefNode &Org = ..Seg.Humerus.O_Flexor_Digitorum_Superficialis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit5; - AnyRefNode &Via2 = ..Seg.Hand.Finger5MetaRef.Via_Flexor_Digitorum_Superficialis_Digit5; - AnyRefNode &Ins = ..Seg.Hand.Finger5MetaRef.I_Flexor_Digitorum_Superficialis_Digit5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ...Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Extensor_Carpi_Radialis_Brevis ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Carpi_Radialis_Brevis; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Carpi_Radialis_Brevis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Extensor_Carpi_Radialis_Brevis; + AnyRefNode &Via2 = ...Seg.Hand.Finger3MetaRef.Via_Extensor_Carpi_Radialis_Brevis; + AnyRefNode &Ins = ...Seg.Hand.Finger3MetaRef.I_Extensor_Carpi_Radialis_Brevis; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.6*.Surf1.Radius[1], ....Sign*0.9*.Surf1.Radius[2] }, &.Surf1 ), + transf3D({-0.8*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ....Sign*0.8*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 60; + SPLine.RelTol=10e-6; + SPLine.AbsTol=10e-6; }; - SPLine.StringMesh = 25; - SPLine.RelTol=0.0000001; }; -AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit4 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Superficialis_Digit4; - AnyRefNode &Org = ..Seg.Humerus.O_Flexor_Digitorum_Superficialis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit4; - AnyRefNode &Via2 = ..Seg.Hand.Finger4MetaRef.Via_Flexor_Digitorum_Superficialis_Digit4; - AnyRefNode &Ins = ..Seg.Hand.Finger4MetaRef.I_Flexor_Digitorum_Superficialis_Digit4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ...Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup ExtensorCarpiUlnaris = { + AnyMuscleShortestPath Extensor_Carpi_Ulnaris ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Carpi_Ulnaris; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Carpi_Ulnaris; + AnyRefNode &Via1 = ...Seg.Ulna.Via1_Extensor_Carpi_Ulnaris; + // AnyRefNode &Via2 = ...Seg.Ulna.Via2_Extensor_Carpi_Ulnaris; + AnyRefNode &Via2 = ...Seg.Radius.Via_Extensor_Carpi_Ulnaris; + AnyRefNode &Ins = ...Seg.Hand.Finger5MetaRef.I_Extensor_Carpi_Ulnaris; + AnySurfCylinder &Surf2 = ...Seg.Radius.MedialExtensorCyl.cyl; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + SPLine.StringMesh = 35; + SPLine.RelTol=0.0000001; + SPLine = { + AnyMatrix InitWrapPos = {transf3D({....Sign*-0.4*.Surf2.Radius, 1.1*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2), + transf3D({....Sign*1.3*.Surf2.Radius, 0.5*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2)}; + InitWrapPosVecArr = { None, None, &InitWrapPos}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - SPLine.StringMesh = 25; - SPLine.RelTol=0.0000001; }; -AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit3 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Superficialis_Digit3; - AnyRefNode &Org = ..Seg.Humerus.O_Flexor_Digitorum_Superficialis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit3; - AnyRefNode &Via2 = ..Seg.Hand.Finger3MetaRef.Via_Flexor_Digitorum_Superficialis_Digit3; - AnyRefNode &Ins = ..Seg.Hand.Finger3MetaRef.I_Flexor_Digitorum_Superficialis_Digit3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ...Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup FlexorCarpiUlnaris = { + AnyMuscleShortestPath Flexor_Carpi_Ulnaris ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Carpi_Ulnaris; + AnyRefNode &Org = ...Seg.Humerus.O_Flexor_Carpi_Ulnaris; + AnyRefNode &Via1 = ...Seg.Ulna.Via1_Flexor_Carpi_Ulnaris; + AnyRefNode &Via2 = ...Seg.Radius.Via_Flexor_Carpi_Ulnaris; + AnyRefNode &Ins = ...Seg.Hand.Finger5MetaRef.I_Flexor_Carpi_Ulnaris; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnySurfCylinder &Surf2 = ...Seg.Radius.FlexorMuscleCyl.cyl; + SPLine.StringMesh = 30; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({....Sign*-0.8*.Surf2.Radius, 1.2*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2 ) , + transf3D({....Sign*0.1*.Surf2.Radius, 1.2*.Surf2.Radius, 0.8*.Surf2.Length }, &.Surf2 ) + }; + InitWrapPosVecArr = {None, None ,&InitWrapPos}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - SPLine.StringMesh = 25; - SPLine.RelTol=0.0000001; -}; -AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit2 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Superficialis_Digit2; - AnyRefNode &Org = ..Seg.Humerus.O_Flexor_Digitorum_Superficialis; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit2; - AnyRefNode &Via2 = ..Seg.Hand.Finger2MetaRef.Via_Flexor_Digitorum_Superficialis_Digit2; - AnyRefNode &Ins = ..Seg.Hand.Finger2MetaRef.I_Flexor_Digitorum_Superficialis_Digit2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ...Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) - }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; - }; - SPLine.StringMesh = 30; }; - -AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit5 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Profundus_Digit5; - AnyRefNode &Org = ..Seg.Ulna.O_Flexor_Digitorum_Profundus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit5; - AnyRefNode &Via2 = ..Seg.Hand.Finger5MetaRef.Via_Flexor_Digitorum_Profundus_Digit5; - AnyRefNode &Ins = ..Seg.Hand.Finger5MetaRef.I_Flexor_Digitorum_Profundus_Digit5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.1*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.1*.Surf1.Radius[1], ...Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup FlexorCarpiRadialis = { + AnyMuscleShortestPath Flexor_Carpi_Radialis ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Carpi_Radialis; + AnyRefNode &Org = ...Seg.Humerus.O_Flexor_Carpi_Radialis; + AnyRefNode &Via2 = ...Seg.Radius.Via_Flexor_Carpi_Radialis; + AnyRefNode &Ins = ...Seg.Hand.Finger2MetaRef.I_Flexor_Carpi_Radialis; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ....Sign*-0.8*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ....Sign*-0.7*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 25; + SPLine.RelTol=0.0000001; }; - SPLine.StringMesh = 35; }; - -AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit4 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Profundus_Digit4; - AnyRefNode &Org = ..Seg.Ulna.O_Flexor_Digitorum_Profundus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit4; - AnyRefNode &Via2 = ..Seg.Hand.Finger4MetaRef.Via_Flexor_Digitorum_Profundus_Digit4; - AnyRefNode &Ins = ..Seg.Hand.Finger4MetaRef.I_Flexor_Digitorum_Profundus_Digit4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ...Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup PalmarisLongus = { + AnyMuscleShortestPath Palmaris_Longus ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Palmaris_Longus; + AnyRefNode &Org = ...Seg.Humerus.O_Palmaris_Longus; + AnyRefNode &Via2 = ...Seg.Radius.Via_Palmaris_Longus; + AnyRefNode &Ins = ...Seg.Hand.Finger4MetaRef.I_Palmaris_Longus; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],0.1*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],0.1*.Surf1.Radius[1], ....Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 25; + SPLine.RelTol=0.0000001; }; - SPLine.StringMesh = 35; }; +MuscleGroup FlexorDigitorumSuperficialis = { + AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit5 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Superficialis_Digit5; + AnyRefNode &Org = ...Seg.Humerus.O_Flexor_Digitorum_Superficialis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit5; + AnyRefNode &Via2 = ...Seg.Hand.Finger5MetaRef.Via_Flexor_Digitorum_Superficialis_Digit5; + AnyRefNode &Ins = ...Seg.Hand.Finger5MetaRef.I_Flexor_Digitorum_Superficialis_Digit5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ....Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 25; + SPLine.RelTol=0.0000001; + }; -AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit3 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Profundus_Digit3; - AnyRefNode &Org = ..Seg.Ulna.O_Flexor_Digitorum_Profundus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit3; - AnyRefNode &Via2 = ..Seg.Hand.Finger3MetaRef.Via_Flexor_Digitorum_Profundus_Digit3; - AnyRefNode &Ins = ..Seg.Hand.Finger3MetaRef.I_Flexor_Digitorum_Profundus_Digit3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit4 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Superficialis_Digit4; + AnyRefNode &Org = ...Seg.Humerus.O_Flexor_Digitorum_Superficialis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit4; + AnyRefNode &Via2 = ...Seg.Hand.Finger4MetaRef.Via_Flexor_Digitorum_Superficialis_Digit4; + AnyRefNode &Ins = ...Seg.Hand.Finger4MetaRef.I_Flexor_Digitorum_Superficialis_Digit4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ....Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 25; + SPLine.RelTol=0.0000001; + }; - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ...Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit3 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Superficialis_Digit3; + AnyRefNode &Org = ...Seg.Humerus.O_Flexor_Digitorum_Superficialis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit3; + AnyRefNode &Via2 = ...Seg.Hand.Finger3MetaRef.Via_Flexor_Digitorum_Superficialis_Digit3; + AnyRefNode &Ins = ...Seg.Hand.Finger3MetaRef.I_Flexor_Digitorum_Superficialis_Digit3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ....Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 25; + SPLine.RelTol=0.0000001; + }; + AnyMuscleShortestPath Flexor_Digitorum_Superficialis__Digit2 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Superficialis_Digit2; + AnyRefNode &Org = ...Seg.Humerus.O_Flexor_Digitorum_Superficialis; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Superficialis_Digit2; + AnyRefNode &Via2 = ...Seg.Hand.Finger2MetaRef.Via_Flexor_Digitorum_Superficialis_Digit2; + AnyRefNode &Ins = ...Seg.Hand.Finger2MetaRef.I_Flexor_Digitorum_Superficialis_Digit2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ....Sign*-1.1*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.5*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 30; }; - SPLine.StringMesh = 35; }; +MuscleGroup FlexorDigitorumProfundus = { + AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit5 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Profundus_Digit5; + AnyRefNode &Org = ...Seg.Ulna.O_Flexor_Digitorum_Profundus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit5; + AnyRefNode &Via2 = ...Seg.Hand.Finger5MetaRef.Via_Flexor_Digitorum_Profundus_Digit5; + AnyRefNode &Ins = ...Seg.Hand.Finger5MetaRef.I_Flexor_Digitorum_Profundus_Digit5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.1*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.1*.Surf1.Radius[1], ....Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 35; + }; + AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit4 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Profundus_Digit4; + AnyRefNode &Org = ...Seg.Ulna.O_Flexor_Digitorum_Profundus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit4; + AnyRefNode &Via2 = ...Seg.Hand.Finger4MetaRef.Via_Flexor_Digitorum_Profundus_Digit4; + AnyRefNode &Ins = ...Seg.Hand.Finger4MetaRef.I_Flexor_Digitorum_Profundus_Digit4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ....Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 35; + }; -AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit2 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Digitorum_Profundus_Digit2; - AnyRefNode &Org = ..Seg.Ulna.O_Flexor_Digitorum_Profundus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit2; - AnyRefNode &Via2 = ..Seg.Hand.Finger2MetaRef.Via_Flexor_Digitorum_Profundus_Digit2; - AnyRefNode &Ins = ..Seg.Hand.Finger2MetaRef.I_Flexor_Digitorum_Profundus_Digit2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ...Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ...Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit3 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Profundus_Digit3; + AnyRefNode &Org = ...Seg.Ulna.O_Flexor_Digitorum_Profundus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit3; + AnyRefNode &Via2 = ...Seg.Hand.Finger3MetaRef.Via_Flexor_Digitorum_Profundus_Digit3; + AnyRefNode &Ins = ...Seg.Hand.Finger3MetaRef.I_Flexor_Digitorum_Profundus_Digit3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ....Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 35; }; - SPLine.StringMesh = 35; -}; -AnyMuscleShortestPath Extensor_Digitorum__Digit5 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Digitorum_Digit5; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Digitorum; - - AnyRefNode &Via2 = ..Seg.Radius.Via_Extensor_Digitorum_Digit5; - AnyRefNode &Via1 = ..Seg.Hand.Finger5MetaRef.Via_Extensor_Digitorum_Digit5; - - AnyRefNode &Ins = ..Seg.Hand.Finger5MetaRef.I_Extensor_Digitorum_Digit5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.1*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.05*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Flexor_Digitorum_Profundus__Digit2 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Digitorum_Profundus_Digit2; + AnyRefNode &Org = ...Seg.Ulna.O_Flexor_Digitorum_Profundus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Digitorum_Profundus_Digit2; + AnyRefNode &Via2 = ...Seg.Hand.Finger2MetaRef.Via_Flexor_Digitorum_Profundus_Digit2; + AnyRefNode &Ins = ...Seg.Hand.Finger2MetaRef.I_Flexor_Digitorum_Profundus_Digit2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ....Sign*-1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ....Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 35; }; - SPLine.StringMesh = 50; - SPLine.RelTol=1e-7; - SPLine.AbsTol=1e-5; }; +MuscleGroup ExtensorDigitorum ={ + AnyMuscleShortestPath Extensor_Digitorum__Digit5 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Digitorum_Digit5; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Digitorum; + + AnyRefNode &Via2 = ...Seg.Radius.Via_Extensor_Digitorum_Digit5; + AnyRefNode &Via1 = ...Seg.Hand.Finger5MetaRef.Via_Extensor_Digitorum_Digit5; + + AnyRefNode &Ins = ...Seg.Hand.Finger5MetaRef.I_Extensor_Digitorum_Digit5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.1*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.05*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 50; + SPLine.RelTol=1e-7; + SPLine.AbsTol=1e-5; + }; -AnyMuscleShortestPath Extensor_Digitorum__Digit4 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Digitorum_Digit4; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Digitorum; - AnyRefNode &Via2 = ..Seg.Radius.Via_Extensor_Digitorum_Digit4; - AnyRefNode &Via1 = ..Seg.Hand.Finger4MetaRef.Via_Extensor_Digitorum_Digit4; - AnyRefNode &Ins = ..Seg.Hand.Finger4MetaRef.I_Extensor_Digitorum_Digit4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.15*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Extensor_Digitorum__Digit4 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Digitorum_Digit4; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Digitorum; + AnyRefNode &Via2 = ...Seg.Radius.Via_Extensor_Digitorum_Digit4; + AnyRefNode &Via1 = ...Seg.Hand.Finger4MetaRef.Via_Extensor_Digitorum_Digit4; + AnyRefNode &Ins = ...Seg.Hand.Finger4MetaRef.I_Extensor_Digitorum_Digit4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.2*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.15*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 50; + SPLine.RelTol=1e-7; + SPLine.AbsTol=1e-5; }; - SPLine.StringMesh = 50; - SPLine.RelTol=1e-7; - SPLine.AbsTol=1e-5; -}; + AnyMuscleShortestPath Extensor_Digitorum__Digit3 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Digitorum_Digit3; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Digitorum; + AnyRefNode &Via2 = ...Seg.Radius.Via_Extensor_Digitorum_Digit3; + AnyRefNode &Via1 = ...Seg.Hand.Finger3MetaRef.Via_Extensor_Digitorum_Digit3; + AnyRefNode &Ins = ...Seg.Hand.Finger3MetaRef.I_Extensor_Digitorum_Digit3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.25*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; + }; + SPLine.StringMesh = 50; + SPLine.RelTol=1e-7; + SPLine.AbsTol=1e-5; + }; -AnyMuscleShortestPath Extensor_Digitorum__Digit3 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Digitorum_Digit3; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Digitorum; - AnyRefNode &Via2 = ..Seg.Radius.Via_Extensor_Digitorum_Digit3; - AnyRefNode &Via1 = ..Seg.Hand.Finger3MetaRef.Via_Extensor_Digitorum_Digit3; - AnyRefNode &Ins = ..Seg.Hand.Finger3MetaRef.I_Extensor_Digitorum_Digit3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.3*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.25*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + AnyMuscleShortestPath Extensor_Digitorum__Digit2 ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Digitorum_Digit2; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Digitorum; + AnyRefNode &Via2 = ...Seg.Radius.Via_Extensor_Digitorum_Digit2; + AnyRefNode &Via1 = ...Seg.Hand.Finger2MetaRef.Via_Extensor_Digitorum_Digit2; + AnyRefNode &Ins = ...Seg.Hand.Finger2MetaRef.I_Extensor_Digitorum_Digit2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.35*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 50; }; - SPLine.StringMesh = 50; - SPLine.RelTol=1e-7; - SPLine.AbsTol=1e-5; }; - -AnyMuscleShortestPath Extensor_Digitorum__Digit2 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Digitorum_Digit2; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Digitorum; - AnyRefNode &Via2 = ..Seg.Radius.Via_Extensor_Digitorum_Digit2; - AnyRefNode &Via1 = ..Seg.Hand.Finger2MetaRef.Via_Extensor_Digitorum_Digit2; - AnyRefNode &Ins = ..Seg.Hand.Finger2MetaRef.I_Extensor_Digitorum_Digit2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.4*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.35*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup ExtensorDigitiMinimi = { + AnyMuscleShortestPath Extensor_Digiti_Minimi ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Extensor_Digiti_Minimi; + AnyRefNode &Org = ...Seg.Humerus.O_Extensor_Digiti_Minimi; + AnyRefNode &Via1 = ...Seg.Radius.Via_Extensor_Digiti_Minimi; + AnyRefNode &Via2 = ...Seg.Hand.Finger5MetaRef.Via_Extensor_Digiti_Minimi; + AnyRefNode &Ins = ...Seg.Hand.Finger5MetaRef.I_Extensor_Digiti_Minimi; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.05*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],0.05*.Surf1.Radius[1], ....Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 30; + SPLine.RelTol=1e-7; + SPLine.AbsTol=1e-5; }; - SPLine.StringMesh = 50; }; - - -AnyMuscleShortestPath Extensor_Digiti_Minimi ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Extensor_Digiti_Minimi; - AnyRefNode &Org = ..Seg.Humerus.O_Extensor_Digiti_Minimi; - AnyRefNode &Via1 = ..Seg.Radius.Via_Extensor_Digiti_Minimi; - AnyRefNode &Via2 = ..Seg.Hand.Finger5MetaRef.Via_Extensor_Digiti_Minimi; - AnyRefNode &Ins = ..Seg.Hand.Finger5MetaRef.I_Extensor_Digiti_Minimi; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - - AnySurfEllipsoid &Surf1 = ..Seg.Radius.ExtensorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.05*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],0.05*.Surf1.Radius[1], ...Sign*1.0*.Surf1.Radius[2] }, &.Surf1 ) +MuscleGroup FlexorPollicisLongus = { + AnyMuscleShortestPath Flexor_Pollicis_Longus ={ + AnyMuscleModel &MusMdl = ...MuscleModels.Flexor_Pollicis_Longus; + AnyRefNode &Org = ...Seg.Radius.O_Flexor_Pollicis_Longus; + AnyRefNode &Via1 = ...Seg.Radius.Via_Flexor_Pollicis_Longus; + AnyRefNode &Via2 = ...Seg.Hand.Finger1MetaRef.Via_Flexor_Pollicis_Longus; + AnyRefNode &Ins = ...Seg.Hand.Finger1MetaRef.I_Flexor_Pollicis_Longus; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + + AnySurfEllipsoid &Surf1 = ...Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.Surf1.Radius[0],-0.6*.Surf1.Radius[1], ....Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) , + transf3D({-0.8*.Surf1.Radius[0],-0.6*.Surf1.Radius[1], ....Sign*-0.8*.Surf1.Radius[2] }, &.Surf1 ) + }; + InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; + SPLine.StringMesh = 25; + SPLine.RelTol=1e-7; + SPLine.AbsTol=1e-5; }; - SPLine.StringMesh = 30; - SPLine.RelTol=1e-7; - SPLine.AbsTol=1e-5; }; -AnyMuscleShortestPath Flexor_Pollicis_Longus ={ - AnyMuscleModel &MusMdl = ..MuscleModels.Flexor_Pollicis_Longus; - AnyRefNode &Org = ..Seg.Radius.O_Flexor_Pollicis_Longus; - AnyRefNode &Via1 = ..Seg.Radius.Via_Flexor_Pollicis_Longus; - AnyRefNode &Via2 = ..Seg.Hand.Finger1MetaRef.Via_Flexor_Pollicis_Longus; - AnyRefNode &Ins = ..Seg.Hand.Finger1MetaRef.I_Flexor_Pollicis_Longus; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; +AnyFolder Pectoralis_minor1_cyl={ - AnySurfEllipsoid &Surf1 = ..Seg.Radius.FlexorMuscleEllipsoid.ellipsoid; - SPLine = { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.Surf1.Radius[0],-0.6*.Surf1.Radius[1], ...Sign*-0.9*.Surf1.Radius[2] }, &.Surf1 ) , - transf3D({-0.8*.Surf1.Radius[0],-0.6*.Surf1.Radius[1], ...Sign*-0.8*.Surf1.Radius[2] }, &.Surf1 ) + AnyFolder& pectoralis_ref = .TrunkNodeAttachement.R3Seg.O_pectoralis_minor_1; + pectoralis_ref = { + AnyRefNode PectoralisWrapAttachement = { + ARel = RotMat(-pi/2,x)*RotMat(pi/5*....Sign, x); }; - InitWrapPosVecArr = {None,&InitWrapPos,None}; }; - SPLine.StringMesh = 25; - SPLine.RelTol=1e-7; - SPLine.AbsTol=1e-5; + #include "WrapperCyl.any" + Cylinder = { + LengthScale = 2.3; + ScaleFactor = ( + vnorm(...Seg.Humerus.Data.I_subscapularis_1_pos - ...Seg.Humerus.Data.I_subscapularis_5_pos) / + vnorm(...Seg.Humerus.I_subscapularis_1.sRel - ...Seg.Humerus.I_subscapularis_5.sRel) + ); + Segment.Axes0 = ..TrunkNodeAttachement.R3Seg.Axes0 * RotMat(-pi/2,x)*RotMat(pi/5*...Sign,x)*RotMat(-0.25,y); + Segment.r0 = ..TrunkNodeAttachement.R3Seg.r0 + ..TrunkNodeAttachement.R3Seg.O_pectoralis_minor_1.sRel*..TrunkNodeAttachement.R3Seg.Axes0'; + AnyRefNode &StartNode = .pectoralis_ref.PectoralisWrapAttachement; + AnyRefNode &EndNode = ...Seg.Scapula.I_pectoralis_minor_1; + }; }; + +AnySurfCylinder &oleacron = .Seg.Ulna.oleacranon.oleacranon; +AnySurfCylinder &pronatorterescyl = .Seg.Radius.PronatorTeresCyl.cyl; +AnySurfCylinder &supinatorcyl = .Seg.Radius.SupinatorCyl.cyl; +AnySurfSphere &art_tub_minus_tub_majusRef = .Seg.Humerus.art_tub_minus_tub_majus.art_tub_minus_tub_majusSurf; +AnySurfCylinder &bicepscyl = .Seg.Radius.BicepsCyl.cyl; +AnySurfEllipsoid &art_gh_humRef = .Seg.Humerus.art_gh_hum.art_gh_humSurf; +AnySurfCylinder &collum_hum = .Seg.Humerus.collum_hum.collum_hum; +AnySurfCylinder &collum_hum_teres_minor_major = .Seg.Humerus.collum_hum_teres_minor_major.cyl; +AnyParamSurf &tricpes_gh_sphere = .Seg.Humerus.tricpes_gh_sphere.surf; +AnySurfCylinder &condylus_hum = .Seg.Humerus.condylus_hum.cyl; +AnySurfCylinder &condylus_humT = .Seg.Humerus.condylus_humT.condylus_humT; +AnySurfCylinder &margo_medialis = .Seg.Scapula.margo_medialis.cyl; +AnySurfCylinder &deltoid_cyl = .Seg.Scapula.deltoid_cyl.cyl; +AnySurfCylinder &acromion_cyl = .Seg.Scapula.acromion_cyl.cyl; +AnySurfCylinder &coracoid_cyl = .Seg.Scapula.coracoid_cyl.cyl; +AnySurfCylinder &teresmajor_cyl = .Seg.Scapula.teres_major_cyl.cyl; + +#include "ThoraxWrappingSurfaces.any" \ No newline at end of file diff --git a/Body/AAUHuman/Arm/RightArmMusclesSelectedOutput.any b/Body/AAUHuman/Arm/RightArmMusclesSelectedOutput.any index a64337133..fd10f65cc 100644 --- a/Body/AAUHuman/Arm/RightArmMusclesSelectedOutput.any +++ b/Body/AAUHuman/Arm/RightArmMusclesSelectedOutput.any @@ -122,7 +122,7 @@ SelectedOutput.Right = { #if BM_ARM_MUSCLES_RIGHT == OFF ".....Right.ShoulderArm.JointMuscles.*.*.dof0.Muscle.*.Activity"; #else - ".....Right.ShoulderArm.Mus.*.Activity"; + ".....Right.ShoulderArm.Mus.*.*.Activity"; #endif }; diff --git a/Body/AAUHuman/Arm/ShoulderArmModel.root.any b/Body/AAUHuman/Arm/ShoulderArmModel.root.any index e3a3f6523..3d15bf87d 100644 --- a/Body/AAUHuman/Arm/ShoulderArmModel.root.any +++ b/Body/AAUHuman/Arm/ShoulderArmModel.root.any @@ -204,10 +204,6 @@ AnyFolder Seg={ #else AnyFolder Hand = { - AnyComponentDefinition CDef = { - SubGroupRegexSearch = "^(Finger\d{1})\.([_[:alnum:]]+)\.([_[:alnum:]]+).*?"; - SubGroupRegexReplace = "$1/$3"; - }; // temporarily needed references for detailed hand AnyFolder &GScaling = ..Scaling; AnyFolder &MassScaling = ..MassScaling; @@ -240,6 +236,27 @@ AnyFolder Jnt ={ }; //End Jnt +//Muscles for the arm +#if (_LEFT_RIGHT_ == "Right" & BM_ARM_RIGHT == ON & (BM_ARM_MUSCLES_RIGHT > OFF )) | (_LEFT_RIGHT_ == "Left" & BM_ARM_LEFT == ON & (BM_ARM_MUSCLES_LEFT > OFF)) +Mus ={ + #include "Muscle.any" +}; //End Mus + + +//Muscle strength paramters +MuscleModels = { + #if (_LEFT_RIGHT_ == "Right" & BM_ARM_RIGHT == ON & (BM_ARM_MUSCLES_RIGHT == _MUSCLES_SIMPLE_ )) | (_LEFT_RIGHT_ == "Left" & BM_ARM_LEFT == ON & (BM_ARM_MUSCLES_LEFT == _MUSCLES_SIMPLE_)) + //This the parameters if a simple muscle model are being used, contains only F0 + #include "Muscle-parameters-shoulder-simple.any" + #else + //This block contains the muscle parameters for the 3 element muscle model + #include "Muscle-parameters-shoulder.any" + #endif + +};//End MuscleModels + +#endif + Mus = { //These files contains wrapping geometries and attachement nodes for the muscles //This way of structuring makes it possible to have models using the same kinematics but @@ -264,28 +281,6 @@ Mus = { #include "TricepsLHWrap.any" }; - -//Muscles for the arm -#if (_LEFT_RIGHT_ == "Right" & BM_ARM_RIGHT == ON & (BM_ARM_MUSCLES_RIGHT > OFF )) | (_LEFT_RIGHT_ == "Left" & BM_ARM_LEFT == ON & (BM_ARM_MUSCLES_LEFT > OFF)) -Mus ={ - #include "Muscle.any" -}; //End Mus - - -//Muscle strength paramters -MuscleModels = { - #if (_LEFT_RIGHT_ == "Right" & BM_ARM_RIGHT == ON & (BM_ARM_MUSCLES_RIGHT == _MUSCLES_SIMPLE_ )) | (_LEFT_RIGHT_ == "Left" & BM_ARM_LEFT == ON & (BM_ARM_MUSCLES_LEFT == _MUSCLES_SIMPLE_)) - //This the parameters if a simple muscle model are being used, contains only F0 - #include "Muscle-parameters-shoulder-simple.any" - #else - //This block contains the muscle parameters for the 3 element muscle model - #include "Muscle-parameters-shoulder.any" - #endif - -};//End MuscleModels - -#endif - //Summation of masses in the arm AnyFolder MassSummation={ AnyVar Mass=.Seg.Scapula.Mass+.Seg.Clavicula.Mass+.Seg.Ulna.Mass+.Seg.Humerus.Mass+.Seg.Radius.Mass+.Seg.Hand.Mass; diff --git a/Body/AAUHuman/Arm/ThoraxWrappingSurfaces.any b/Body/AAUHuman/Arm/ThoraxWrappingSurfaces.any index 7d23aba20..b0f90b98a 100644 --- a/Body/AAUHuman/Arm/ThoraxWrappingSurfaces.any +++ b/Body/AAUHuman/Arm/ThoraxWrappingSurfaces.any @@ -11,10 +11,10 @@ ThoraxWrappingSufaceSegRef = { AnySurfEllipsoid PectoralisWrappingEllipsoid = { // Use pectoralis origins to define the main axis of the ellip - ARel = RotMat({0,0,0}, {0,0,1}, ..pectoralis_major_thoracic_part_4.Org.sRel-..pectoralis_major_thoracic_part_9.Org.sRel)*{{0,0,1},{0,-1,0},{1,0,0}}; - sRel = 0.5*..pectoralis_major_thoracic_part_6.Org.sRel + 0.5*.....Trunk.Segments.T7Seg.T6T7JntNode.sRel; + ARel = RotMat({0,0,0}, {0,0,1}, ..PectoralisMajorThoracic.pectoralis_major_thoracic_part_4.Org.sRel-..PectoralisMajorThoracic.pectoralis_major_thoracic_part_9.Org.sRel)*{{0,0,1},{0,-1,0},{1,0,0}}; + sRel = 0.5*..PectoralisMajorThoracic.pectoralis_major_thoracic_part_6.Org.sRel + 0.5*.....Trunk.Segments.T7Seg.T6T7JntNode.sRel; Radius = { - 0.98*(..pectoralis_major_thoracic_part_6.Org.sRel-sRel)*ARel'[0]', + 0.98*(..PectoralisMajorThoracic.pectoralis_major_thoracic_part_6.Org.sRel-sRel)*ARel'[0]', (.....Trunk.Segments.T1Seg.T1C7JntNode.sRel-sRel)*ARel'[1]', #if _SIDE_==Right 1.04*(.....Trunk.Segments.Right.R5Seg.IC_R5_Ant_R_Ins.sRel-sRel)*ARel'[2]', @@ -28,10 +28,10 @@ ThoraxWrappingSufaceSegRef = { // Ellipsoids which are used for wrapping of serratus anterior. AnySurfEllipsoid SerratusAnteriorWrappingEllipsoid_1to5 = { - ARel = RotMat({0,0,0}, {0,0,1}, ..serratus_anterior_5.Org.sRel-..serratus_anterior_1.Org.sRel)*{{0,0,1},{0,-1,0},{1,0,0}}; + ARel = RotMat({0,0,0}, {0,0,1}, ..SerratusAnterior.serratus_anterior_5.Org.sRel-..SerratusAnterior.serratus_anterior_1.Org.sRel)*{{0,0,1},{0,-1,0},{1,0,0}}; sRel = { - 0.5*..serratus_anterior_5.Org.sRel[0] + 0.5*.....Trunk.Segments.T6Seg.T5T6JntNode.sRel[0], - ..serratus_anterior_5.Org.sRel[1], + 0.5*..SerratusAnterior.serratus_anterior_5.Org.sRel[0] + 0.5*.....Trunk.Segments.T6Seg.T5T6JntNode.sRel[0], + ..SerratusAnterior.serratus_anterior_5.Org.sRel[1], 0 }; Radius = abs({ @@ -41,15 +41,15 @@ ThoraxWrappingSufaceSegRef = { 0.98*(.....Trunk.Segments.Left.R7Seg.ILptC7CINodeL.sRel-sRel)*ARel'[0]', #endif 1.05*(.....Trunk.Segments.T1Seg.T1C7JntNode.sRel-sRel)*ARel'[1]', - 1.0*(..serratus_anterior_5.Org.sRel-sRel)*ARel'[2]', + 1.0*(..SerratusAnterior.serratus_anterior_5.Org.sRel-sRel)*ARel'[2]', }); }; AnySurfEllipsoid SerratusAnteriorWrappingEllipsoid_6to9 = { - ARel = RotMat({0,0,0}, {0,0,1}, ..serratus_anterior_7.Org.sRel-..serratus_anterior_1.Org.sRel)*{{0,0,1},{0,-1,0},{1,0,0}}; + ARel = RotMat({0,0,0}, {0,0,1}, ..SerratusAnterior.serratus_anterior_7.Org.sRel-..SerratusAnterior.serratus_anterior_1.Org.sRel)*{{0,0,1},{0,-1,0},{1,0,0}}; sRel = { - 0.5*..serratus_anterior_6.Org.sRel[0] + 0.5*.....Trunk.Segments.T7Seg.T6T7JntNode.sRel[0], - ..serratus_anterior_6.Org.sRel[1], + 0.5*..SerratusAnterior.serratus_anterior_6.Org.sRel[0] + 0.5*.....Trunk.Segments.T7Seg.T6T7JntNode.sRel[0], + ..SerratusAnterior.serratus_anterior_6.Org.sRel[1], 0 }; Radius = abs({ @@ -59,7 +59,7 @@ ThoraxWrappingSufaceSegRef = { 1.2*(.....Trunk.Segments.Left.R7Seg.ILptC7CINodeL.sRel-sRel)*ARel'[0]', #endif 0.90*(.....Trunk.Segments.T1Seg.T1C7JntNode.sRel-sRel)*ARel'[1]', - 1*(..serratus_anterior_8.Org.sRel-sRel)*ARel'[2]', + 1*(..SerratusAnterior.serratus_anterior_8.Org.sRel-sRel)*ARel'[2]', }); }; diff --git a/Body/AAUHuman/Arm/ammr_3.0_compatibility_structure.any b/Body/AAUHuman/Arm/ammr_3.0_compatibility_structure.any new file mode 100644 index 000000000..de567e404 --- /dev/null +++ b/Body/AAUHuman/Arm/ammr_3.0_compatibility_structure.any @@ -0,0 +1,184 @@ + +// References to recreate structure for ammr 3.0 +AnyFolder &levator_scapulae_1 = LevatorScapulae.levator_scapulae_1; +AnyFolder &levator_scapulae_2 = LevatorScapulae.levator_scapulae_2; +AnyFolder &levator_scapulae_3 = LevatorScapulae.levator_scapulae_3; +AnyFolder &levator_scapulae_4 = LevatorScapulae.levator_scapulae_4; +AnyFolder &Sternocleidomastoid_caput_clavicular = Sternocleidomastoid.Sternocleidomastoid_caput_clavicular; +AnyFolder &Sternocleidomastoid_caput_Sternum = Sternocleidomastoid.Sternocleidomastoid_caput_Sternum; +AnyFolder &trapezius_scapular_part_1 = TrapeziusScapular.trapezius_scapular_part_1; +AnyFolder &trapezius_scapular_part_2 = TrapeziusScapular.trapezius_scapular_part_2; +AnyFolder &trapezius_scapular_part_3 = TrapeziusScapular.trapezius_scapular_part_3; +AnyFolder &trapezius_scapular_part_4 = TrapeziusScapular.trapezius_scapular_part_4; +AnyFolder &trapezius_scapular_part_5 = TrapeziusScapular.trapezius_scapular_part_5; +AnyFolder &trapezius_scapular_part_6 = TrapeziusScapular.trapezius_scapular_part_6; +AnyFolder &trapezius_scapular_part_7 = TrapeziusScapular.trapezius_scapular_part_7; +AnyFolder &trapezius_scapular_part_8 = TrapeziusScapular.trapezius_scapular_part_8; +AnyFolder &trapezius_scapular_part_9 = TrapeziusScapular.trapezius_scapular_part_9; +AnyFolder &trapezius_scapular_part_10 = TrapeziusScapular.trapezius_scapular_part_10; +AnyFolder &trapezius_scapular_part_11 = TrapeziusScapular.trapezius_scapular_part_11; +AnyFolder &trapezius_scapular_part_12 = TrapeziusScapular.trapezius_scapular_part_12; +AnyFolder &trapezius_scapular_part_13 = TrapeziusScapular.trapezius_scapular_part_13; +AnyFolder &trapezius_scapular_part_14 = TrapeziusScapular.trapezius_scapular_part_14; +AnyFolder &trapezius_clavicular_part_1 = TrapeziusClavicular.trapezius_clavicular_part_1; +AnyFolder &trapezius_clavicular_part_2 = TrapeziusClavicular.trapezius_clavicular_part_2; +AnyFolder &trapezius_clavicular_part_3 = TrapeziusClavicular.trapezius_clavicular_part_3; +AnyFolder &trapezius_clavicular_part_4 = TrapeziusClavicular.trapezius_clavicular_part_4; +AnyFolder &trapezius_clavicular_part_5 = TrapeziusClavicular.trapezius_clavicular_part_5; +AnyFolder &trapezius_clavicular_part_6 = TrapeziusClavicular.trapezius_clavicular_part_6; +AnyFolder &biceps_brachii_caput_breve = BicepsBrachii.biceps_brachii_caput_breve; +AnyFolder &biceps_brachii_caput_longum = BicepsBrachii.biceps_brachii_caput_longum; +AnyFolder &coracobrachialis_1 = Coracobrachialis.coracobrachialis_1; +AnyFolder &coracobrachialis_2 = Coracobrachialis.coracobrachialis_2; +AnyFolder &coracobrachialis_3 = Coracobrachialis.coracobrachialis_3; +AnyFolder &coracobrachialis_4 = Coracobrachialis.coracobrachialis_4; +AnyFolder &coracobrachialis_5 = Coracobrachialis.coracobrachialis_5; +AnyFolder &coracobrachialis_6 = Coracobrachialis.coracobrachialis_6; + +#if BM_ARM_DELTOID_WRAPPING == _DELTOID_WRAPPING_RAKE_ + AnyFolder &deltoideus_scapular_part_1 = DeltoideusScapular.deltoideus_scapular_part_1; + AnyFolder &deltoideus_scapular_part_2 = DeltoideusScapular.deltoideus_scapular_part_2; + AnyFolder &deltoideus_scapular_part_3 = DeltoideusScapular.deltoideus_scapular_part_3; + AnyFolder &deltoideus_scapular_part_4 = DeltoideusScapular.deltoideus_scapular_part_4; + AnyFolder &deltoideus_scapular_part_5 = DeltoideusScapular.deltoideus_scapular_part_5; + AnyFolder &deltoideus_scapular_part_6 = DeltoideusScapular.deltoideus_scapular_part_6; + AnyFolder &deltoideus_clavicular_part_1 = DeltoideusClavicular.deltoideus_clavicular_part_1; + AnyFolder &deltoideus_clavicular_part_2 = DeltoideusClavicular.deltoideus_clavicular_part_2; + AnyFolder &deltoideus_clavicular_part_3 = DeltoideusClavicular.deltoideus_clavicular_part_3; + AnyFolder &deltoideus_clavicular_part_4 = DeltoideusClavicular.deltoideus_clavicular_part_4; + AnyFolder &deltoideus_clavicular_part_5 = DeltoideusClavicular.deltoideus_clavicular_part_5; + AnyFolder &deltoideus_clavicular_part_6 = DeltoideusClavicular.deltoideus_clavicular_part_6; +#else + AnyFolder &deltoideus_posterior_part_1 = DeltoideusPosterior.deltoideus_posterior_part_1; + AnyFolder &deltoideus_posterior_part_3 = DeltoideusPosterior.deltoideus_posterior_part_3; + AnyFolder &deltoideus_posterior_part_2 = DeltoideusPosterior.deltoideus_posterior_part_2; + AnyFolder &deltoideus_posterior_part_4 = DeltoideusPosterior.deltoideus_posterior_part_4; + AnyFolder &deltoideus_lateral_part_1 = DeltoideusLateral.deltoideus_lateral_part_1; + AnyFolder &deltoideus_lateral_part_3 = DeltoideusLateral.deltoideus_lateral_part_3; + AnyFolder &deltoideus_lateral_part_2 = DeltoideusLateral.deltoideus_lateral_part_2; + AnyFolder &deltoideus_lateral_part_4 = DeltoideusLateral.deltoideus_lateral_part_4; + AnyFolder &deltoideus_anterior_part_1 = DeltoideusAnterior.deltoideus_anterior_part_1; + AnyFolder &deltoideus_anterior_part_2 = DeltoideusAnterior.deltoideus_anterior_part_2; + AnyFolder &deltoideus_anterior_part_3 = DeltoideusAnterior.deltoideus_anterior_part_3; + AnyFolder &deltoideus_anterior_part_4 = DeltoideusAnterior.deltoideus_anterior_part_4; +#endif + +AnyFolder &infraspinatus_1 = Infraspinatus.infraspinatus_1; +AnyFolder &infraspinatus_2 = Infraspinatus.infraspinatus_2; +AnyFolder &infraspinatus_3 = Infraspinatus.infraspinatus_3; +AnyFolder &infraspinatus_4 = Infraspinatus.infraspinatus_4; +AnyFolder &infraspinatus_5 = Infraspinatus.infraspinatus_5; +AnyFolder &infraspinatus_6 = Infraspinatus.infraspinatus_6; +AnyFolder &latissimus_dorsi_1 = LatissimusDorsi.latissimus_dorsi_1; +AnyFolder &latissimus_dorsi_2 = LatissimusDorsi.latissimus_dorsi_2; +AnyFolder &latissimus_dorsi_3 = LatissimusDorsi.latissimus_dorsi_3; +AnyFolder &latissimus_dorsi_4 = LatissimusDorsi.latissimus_dorsi_4; +AnyFolder &latissimus_dorsi_5 = LatissimusDorsi.latissimus_dorsi_5; +AnyFolder &latissimus_dorsi_6 = LatissimusDorsi.latissimus_dorsi_6; +AnyFolder &latissimus_dorsi_7 = LatissimusDorsi.latissimus_dorsi_7; +AnyFolder &latissimus_dorsi_8 = LatissimusDorsi.latissimus_dorsi_8; +AnyFolder &latissimus_dorsi_9 = LatissimusDorsi.latissimus_dorsi_9; +AnyFolder &latissimus_dorsi_10 = LatissimusDorsi.latissimus_dorsi_10; +AnyFolder &latissimus_dorsi_11 = LatissimusDorsi.latissimus_dorsi_11; +AnyFolder &pectoralis_major_thoracic_part_1 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_1; +AnyFolder &pectoralis_major_thoracic_part_2 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_2; +AnyFolder &pectoralis_major_thoracic_part_3 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_3; +AnyFolder &pectoralis_major_thoracic_part_4 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_4; +AnyFolder &pectoralis_major_thoracic_part_5 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_5; +AnyFolder &pectoralis_major_thoracic_part_6 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_6; +AnyFolder &pectoralis_major_thoracic_part_7 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_7; +AnyFolder &pectoralis_major_thoracic_part_8 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_8; +AnyFolder &pectoralis_major_thoracic_part_9 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_9; +AnyFolder &pectoralis_major_thoracic_part_10 = PectoralisMajorThoracic.pectoralis_major_thoracic_part_10; +AnyFolder &pectoralis_major_clavicular_part_1 = PectoralisMajorClavicular.pectoralis_major_clavicular_part_1; +AnyFolder &pectoralis_major_clavicular_part_2 = PectoralisMajorClavicular.pectoralis_major_clavicular_part_2; +AnyFolder &pectoralis_major_clavicular_part_3 = PectoralisMajorClavicular.pectoralis_major_clavicular_part_3; +AnyFolder &pectoralis_major_clavicular_part_4 = PectoralisMajorClavicular.pectoralis_major_clavicular_part_4; +AnyFolder &pectoralis_major_clavicular_part_5 = PectoralisMajorClavicular.pectoralis_major_clavicular_part_5; +AnyFolder &pectoralis_minor_1 = PectoralisMinor.pectoralis_minor_1; +AnyFolder &pectoralis_minor_2 = PectoralisMinor.pectoralis_minor_2; +AnyFolder &pectoralis_minor_3 = PectoralisMinor.pectoralis_minor_3; +AnyFolder &rhomboideus_1 = Rhomboideus.rhomboideus_1; +AnyFolder &rhomboideus_2 = Rhomboideus.rhomboideus_2; +AnyFolder &rhomboideus_3 = Rhomboideus.rhomboideus_3; +AnyFolder &rhomboideus_4 = Rhomboideus.rhomboideus_4; +AnyFolder &rhomboideus_5 = Rhomboideus.rhomboideus_5; +AnyFolder &rhomboideus_6 = Rhomboideus.rhomboideus_6; +AnyFolder &serratus_anterior_1 = SerratusAnterior.serratus_anterior_1; +AnyFolder &serratus_anterior_2 = SerratusAnterior.serratus_anterior_2; +AnyFolder &serratus_anterior_3 = SerratusAnterior.serratus_anterior_3; +AnyFolder &serratus_anterior_4 = SerratusAnterior.serratus_anterior_4; +AnyFolder &serratus_anterior_5 = SerratusAnterior.serratus_anterior_5; +AnyFolder &serratus_anterior_6 = SerratusAnterior.serratus_anterior_6; +AnyFolder &serratus_anterior_7 = SerratusAnterior.serratus_anterior_7; +AnyFolder &serratus_anterior_8 = SerratusAnterior.serratus_anterior_8; +AnyFolder &serratus_anterior_9 = SerratusAnterior.serratus_anterior_9; +AnyFolder &subscapularis_1 = Subscapularis.subscapularis_1; +AnyFolder &subscapularis_2 = Subscapularis.subscapularis_2; +AnyFolder &subscapularis_3 = Subscapularis.subscapularis_3; +AnyFolder &subscapularis_4 = Subscapularis.subscapularis_4; +AnyFolder &subscapularis_5 = Subscapularis.subscapularis_5; +AnyFolder &subscapularis_6 = Subscapularis.subscapularis_6; +AnyFolder &supraspinatus_1 = Supraspinatus.supraspinatus_1; +AnyFolder &supraspinatus_2 = Supraspinatus.supraspinatus_2; +AnyFolder &supraspinatus_3 = Supraspinatus.supraspinatus_3; +AnyFolder &supraspinatus_4 = Supraspinatus.supraspinatus_4; +AnyFolder &supraspinatus_5 = Supraspinatus.supraspinatus_5; +AnyFolder &supraspinatus_6 = Supraspinatus.supraspinatus_6; +AnyFolder &teres_major_1 = TeresMajor.teres_major_1; +AnyFolder &teres_major_2 = TeresMajor.teres_major_2; +AnyFolder &teres_major_3 = TeresMajor.teres_major_3; +AnyFolder &teres_major_4 = TeresMajor.teres_major_4; +AnyFolder &teres_major_5 = TeresMajor.teres_major_5; +AnyFolder &teres_major_6 = TeresMajor.teres_major_6; +AnyFolder &teres_minor_1 = TeresMinor.teres_minor_1; +AnyFolder &teres_minor_2 = TeresMinor.teres_minor_2; +AnyFolder &teres_minor_3 = TeresMinor.teres_minor_3; +AnyFolder &teres_minor_4 = TeresMinor.teres_minor_4; +AnyFolder &teres_minor_5 = TeresMinor.teres_minor_5; +AnyFolder &teres_minor_6 = TeresMinor.teres_minor_6; +AnyFolder &Brachialis_1 = Brachialis.Brachialis_1; +AnyFolder &Brachialis_2 = Brachialis.Brachialis_2; +AnyFolder &Triceps_LH_1 = Triceps.Triceps_LH_1; +AnyFolder &Triceps_LH_2 = Triceps.Triceps_LH_2; +AnyFolder &Triceps_ME_1 = Triceps.Triceps_ME_1; +AnyFolder &Triceps_ME_2 = Triceps.Triceps_ME_2; +AnyFolder &Triceps_LA_1 = Triceps.Triceps_LA_1; +AnyFolder &Triceps_LA_2 = Triceps.Triceps_LA_2; +AnyFolder &Brach_rad_1 = Brachioradialis.Brach_rad_1; +AnyFolder &Brach_rad_2 = Brachioradialis.Brach_rad_2; +AnyFolder &Anconeus_1 = Anconeus.Anconeus_1; +AnyFolder &Anconeus_2 = Anconeus.Anconeus_2; +AnyFolder &Pronator_teres_caput_humeral_1 = PronatorTeres.Pronator_teres_caput_humeral_1; +AnyFolder &Pronator_teres_caput_humeral_2 = PronatorTeres.Pronator_teres_caput_humeral_2; +AnyFolder &Pronator_teres_caput_ulnare_1 = PronatorTeres.Pronator_teres_caput_ulnare_1; +AnyFolder &Supinator_humerus_part_1 = Supinator.Supinator_humerus_part_1; +AnyFolder &Supinator_humerus_part_2 = Supinator.Supinator_humerus_part_2; +AnyFolder &Supinator_ulna_part_1 = Supinator.Supinator_ulna_part_1; +AnyFolder &Supinator_ulna_part_2 = Supinator.Supinator_ulna_part_2; +AnyFolder &Pron_quadr_1 = PronatorQuadratus.Pron_quadr_1; +AnyFolder &Pron_quadr_2 = PronatorQuadratus.Pron_quadr_2; +AnyFolder &Extensor_Indicis = ExtensorIndicis.Extensor_Indicis; +AnyFolder &Abductor_Pollicis_Longus = AbductorPollicis.Abductor_Pollicis_Longus; +AnyFolder &Extensor_Pollicis_Brevis = ExtensorPollicis.Extensor_Pollicis_Brevis; +AnyFolder &Extensor_Pollicis_Longus = ExtensorPollicis.Extensor_Pollicis_Longus; +AnyFolder &Extensor_Carpi_Radialis_Brevis = ExtensorCarpiRadialis.Extensor_Carpi_Radialis_Brevis; +AnyFolder &Extensor_Carpi_Radialis_Longus = ExtensorCarpiRadialis.Extensor_Carpi_Radialis_Longus; +AnyFolder &Extensor_Carpi_Ulnaris = ExtensorCarpiUlnaris.Extensor_Carpi_Ulnaris; +AnyFolder &Flexor_Carpi_Ulnaris = FlexorCarpiUlnaris.Flexor_Carpi_Ulnaris; +AnyFolder &Flexor_Carpi_Radialis = FlexorCarpiRadialis.Flexor_Carpi_Radialis; +AnyFolder &Palmaris_Longus = PalmarisLongus.Palmaris_Longus; +AnyFolder &Flexor_Digitorum_Superficialis__Digit5 = FlexorDigitorumSuperficialis.Flexor_Digitorum_Superficialis__Digit5; +AnyFolder &Flexor_Digitorum_Superficialis__Digit4 = FlexorDigitorumSuperficialis.Flexor_Digitorum_Superficialis__Digit4; +AnyFolder &Flexor_Digitorum_Superficialis__Digit3 = FlexorDigitorumSuperficialis.Flexor_Digitorum_Superficialis__Digit3; +AnyFolder &Flexor_Digitorum_Superficialis__Digit2 = FlexorDigitorumSuperficialis.Flexor_Digitorum_Superficialis__Digit2; +AnyFolder &Flexor_Digitorum_Profundus__Digit5 = FlexorDigitorumProfundus.Flexor_Digitorum_Profundus__Digit5; +AnyFolder &Flexor_Digitorum_Profundus__Digit4 = FlexorDigitorumProfundus.Flexor_Digitorum_Profundus__Digit4; +AnyFolder &Flexor_Digitorum_Profundus__Digit3 = FlexorDigitorumProfundus.Flexor_Digitorum_Profundus__Digit3; +AnyFolder &Flexor_Digitorum_Profundus__Digit2 = FlexorDigitorumProfundus.Flexor_Digitorum_Profundus__Digit2; +AnyFolder &Extensor_Digitorum__Digit5 = ExtensorDigitorum.Extensor_Digitorum__Digit5; +AnyFolder &Extensor_Digitorum__Digit4 = ExtensorDigitorum.Extensor_Digitorum__Digit4; +AnyFolder &Extensor_Digitorum__Digit3 = ExtensorDigitorum.Extensor_Digitorum__Digit3; +AnyFolder &Extensor_Digitorum__Digit2 = ExtensorDigitorum.Extensor_Digitorum__Digit2; +AnyFolder &Extensor_Digiti_Minimi = ExtensorDigitiMinimi.Extensor_Digiti_Minimi; +AnyFolder &Flexor_Pollicis_Longus = FlexorPollicisLongus.Flexor_Pollicis_Longus; \ No newline at end of file diff --git a/Body/AAUHuman/Arm/armmuscles_for_output.any b/Body/AAUHuman/Arm/armmuscles_for_output.any index e6968134b..aaa478cf5 100644 --- a/Body/AAUHuman/Arm/armmuscles_for_output.any +++ b/Body/AAUHuman/Arm/armmuscles_for_output.any @@ -1,180 +1,180 @@ -_CODE_MACRO_(Extensor_Indicis) -_CODE_MACRO_(Abductor_Pollicis_Longus) -_CODE_MACRO_(Extensor_Pollicis_Brevis) -_CODE_MACRO_(Extensor_Pollicis_Longus) -_CODE_MACRO_(Extensor_Carpi_Radialis_Longus) -_CODE_MACRO_(Extensor_Carpi_Radialis_Brevis) -_CODE_MACRO_(Extensor_Carpi_Ulnaris) -_CODE_MACRO_(Flexor_Carpi_Ulnaris) -_CODE_MACRO_(Flexor_Carpi_Radialis) -_CODE_MACRO_(Palmaris_Longus) -_CODE_MACRO_(Flexor_Digitorum_Superficialis__Digit5) -_CODE_MACRO_(Flexor_Digitorum_Superficialis__Digit4) -_CODE_MACRO_(Flexor_Digitorum_Superficialis__Digit3) -_CODE_MACRO_(Flexor_Digitorum_Superficialis__Digit2) -_CODE_MACRO_(Flexor_Digitorum_Profundus__Digit5) -_CODE_MACRO_(Flexor_Digitorum_Profundus__Digit4) -_CODE_MACRO_(Flexor_Digitorum_Profundus__Digit3) -_CODE_MACRO_(Flexor_Digitorum_Profundus__Digit2) -_CODE_MACRO_(Extensor_Digitorum__Digit5) -_CODE_MACRO_(Extensor_Digitorum__Digit4) -_CODE_MACRO_(Extensor_Digitorum__Digit3) -_CODE_MACRO_(Extensor_Digitorum__Digit2) -_CODE_MACRO_(Extensor_Digiti_Minimi) -_CODE_MACRO_(Flexor_Pollicis_Longus) -_CODE_MACRO_(biceps_brachii_caput_breve) -_CODE_MACRO_(biceps_brachii_caput_longum) -_CODE_MACRO_(Brach_rad_1) -_CODE_MACRO_(Brach_rad_2) -_CODE_MACRO_(Pronator_teres_caput_humeral_1) -_CODE_MACRO_(Pronator_teres_caput_humeral_2) -_CODE_MACRO_(Pronator_teres_caput_ulnare_1) -_CODE_MACRO_(Supinator_humerus_part_1) -_CODE_MACRO_(Supinator_humerus_part_2) -_CODE_MACRO_(Supinator_ulna_part_1) -_CODE_MACRO_(Supinator_ulna_part_2) -_CODE_MACRO_(Pron_quadr_1) -_CODE_MACRO_(Pron_quadr_2) -_CODE_MACRO_(Brachialis_1) -_CODE_MACRO_(Brachialis_2) -_CODE_MACRO_(Triceps_LH_1) -_CODE_MACRO_(Triceps_LH_2) -_CODE_MACRO_(Triceps_ME_1) -_CODE_MACRO_(Triceps_ME_2) -_CODE_MACRO_(Triceps_LA_1) -_CODE_MACRO_(Triceps_LA_2) -_CODE_MACRO_(Anconeus_1) -_CODE_MACRO_(Anconeus_2) -_CODE_MACRO_(coracobrachialis_1) -_CODE_MACRO_(coracobrachialis_2) -_CODE_MACRO_(coracobrachialis_3) -_CODE_MACRO_(coracobrachialis_4) -_CODE_MACRO_(coracobrachialis_5) -_CODE_MACRO_(coracobrachialis_6) +_CODE_MACRO_(ExtensorIndicis,Extensor_Indicis) +_CODE_MACRO_(AbductorPollicis,Abductor_Pollicis_Longus) +_CODE_MACRO_(ExtensorPollicis,Extensor_Pollicis_Brevis) +_CODE_MACRO_(ExtensorPollicis,Extensor_Pollicis_Longus) +_CODE_MACRO_(ExtensorCarpiRadialis,Extensor_Carpi_Radialis_Longus) +_CODE_MACRO_(ExtensorCarpiRadialis,Extensor_Carpi_Radialis_Brevis) +_CODE_MACRO_(ExtensorCarpiUlnaris,Extensor_Carpi_Ulnaris) +_CODE_MACRO_(FlexorCarpiUlnaris,Flexor_Carpi_Ulnaris) +_CODE_MACRO_(FlexorCarpiRadialis,Flexor_Carpi_Radialis) +_CODE_MACRO_(PalmarisLongus,Palmaris_Longus) +_CODE_MACRO_(FlexorDigitorumSuperficialis,Flexor_Digitorum_Superficialis__Digit5) +_CODE_MACRO_(FlexorDigitorumSuperficialis,Flexor_Digitorum_Superficialis__Digit4) +_CODE_MACRO_(FlexorDigitorumSuperficialis,Flexor_Digitorum_Superficialis__Digit3) +_CODE_MACRO_(FlexorDigitorumSuperficialis,Flexor_Digitorum_Superficialis__Digit2) +_CODE_MACRO_(FlexorDigitorumProfundus,Flexor_Digitorum_Profundus__Digit5) +_CODE_MACRO_(FlexorDigitorumProfundus,Flexor_Digitorum_Profundus__Digit4) +_CODE_MACRO_(FlexorDigitorumProfundus,Flexor_Digitorum_Profundus__Digit3) +_CODE_MACRO_(FlexorDigitorumProfundus,Flexor_Digitorum_Profundus__Digit2) +_CODE_MACRO_(ExtensorDigitorum,Extensor_Digitorum__Digit5) +_CODE_MACRO_(ExtensorDigitorum,Extensor_Digitorum__Digit4) +_CODE_MACRO_(ExtensorDigitorum,Extensor_Digitorum__Digit3) +_CODE_MACRO_(ExtensorDigitorum,Extensor_Digitorum__Digit2) +_CODE_MACRO_(ExtensorDigitiMinimi,Extensor_Digiti_Minimi) +_CODE_MACRO_(FlexorPollicisLongus,Flexor_Pollicis_Longus) +_CODE_MACRO_(BicepsBrachii,biceps_brachii_caput_breve) +_CODE_MACRO_(BicepsBrachii,biceps_brachii_caput_longum) +_CODE_MACRO_(Brachioradialis,Brach_rad_1) +_CODE_MACRO_(Brachioradialis,Brach_rad_2) +_CODE_MACRO_(PronatorTeres,Pronator_teres_caput_humeral_1) +_CODE_MACRO_(PronatorTeres,Pronator_teres_caput_humeral_2) +_CODE_MACRO_(PronatorTeres,Pronator_teres_caput_ulnare_1) +_CODE_MACRO_(Supinator,Supinator_humerus_part_1) +_CODE_MACRO_(Supinator,Supinator_humerus_part_2) +_CODE_MACRO_(Supinator,Supinator_ulna_part_1) +_CODE_MACRO_(Supinator,Supinator_ulna_part_2) +_CODE_MACRO_(PronatorQuadratus,Pron_quadr_1) +_CODE_MACRO_(PronatorQuadratus,Pron_quadr_2) +_CODE_MACRO_(Brachialis,Brachialis_1) +_CODE_MACRO_(Brachialis,Brachialis_2) +_CODE_MACRO_(Triceps,Triceps_LH_1) +_CODE_MACRO_(Triceps,Triceps_LH_2) +_CODE_MACRO_(Triceps,Triceps_ME_1) +_CODE_MACRO_(Triceps,Triceps_ME_2) +_CODE_MACRO_(Triceps,Triceps_LA_1) +_CODE_MACRO_(Triceps,Triceps_LA_2) +_CODE_MACRO_(Anconeus,Anconeus_1) +_CODE_MACRO_(Anconeus,Anconeus_2) +_CODE_MACRO_(Coracobrachialis,coracobrachialis_1) +_CODE_MACRO_(Coracobrachialis,coracobrachialis_2) +_CODE_MACRO_(Coracobrachialis,coracobrachialis_3) +_CODE_MACRO_(Coracobrachialis,coracobrachialis_4) +_CODE_MACRO_(Coracobrachialis,coracobrachialis_5) +_CODE_MACRO_(Coracobrachialis,coracobrachialis_6) #if BM_ARM_DELTOID_WRAPPING == _DELTOID_WRAPPING_RAKE_ -_CODE_MACRO_(deltoideus_scapular_part_1) -_CODE_MACRO_(deltoideus_scapular_part_2) -_CODE_MACRO_(deltoideus_scapular_part_3) -_CODE_MACRO_(deltoideus_scapular_part_4) -_CODE_MACRO_(deltoideus_scapular_part_5) -_CODE_MACRO_(deltoideus_scapular_part_6) -_CODE_MACRO_(deltoideus_clavicular_part_1) -_CODE_MACRO_(deltoideus_clavicular_part_2) -_CODE_MACRO_(deltoideus_clavicular_part_3) -_CODE_MACRO_(deltoideus_clavicular_part_4) -_CODE_MACRO_(deltoideus_clavicular_part_5) -_CODE_MACRO_(deltoideus_clavicular_part_6) +_CODE_MACRO_(DeltoideusScapular,deltoideus_scapular_part_1) +_CODE_MACRO_(DeltoideusScapular,deltoideus_scapular_part_2) +_CODE_MACRO_(DeltoideusScapular,deltoideus_scapular_part_3) +_CODE_MACRO_(DeltoideusScapular,deltoideus_scapular_part_4) +_CODE_MACRO_(DeltoideusScapular,deltoideus_scapular_part_5) +_CODE_MACRO_(DeltoideusScapular,deltoideus_scapular_part_6) +_CODE_MACRO_(DeltoideusClavicular,deltoideus_clavicular_part_1) +_CODE_MACRO_(DeltoideusClavicular,deltoideus_clavicular_part_2) +_CODE_MACRO_(DeltoideusClavicular,deltoideus_clavicular_part_3) +_CODE_MACRO_(DeltoideusClavicular,deltoideus_clavicular_part_4) +_CODE_MACRO_(DeltoideusClavicular,deltoideus_clavicular_part_5) +_CODE_MACRO_(DeltoideusClavicular,deltoideus_clavicular_part_6) #else -_CODE_MACRO_(deltoideus_posterior_part_1) -_CODE_MACRO_(deltoideus_posterior_part_2) -_CODE_MACRO_(deltoideus_posterior_part_3) -_CODE_MACRO_(deltoideus_posterior_part_4) -_CODE_MACRO_(deltoideus_lateral_part_1) -_CODE_MACRO_(deltoideus_lateral_part_2) -_CODE_MACRO_(deltoideus_lateral_part_3) -_CODE_MACRO_(deltoideus_lateral_part_4) -_CODE_MACRO_(deltoideus_anterior_part_1) -_CODE_MACRO_(deltoideus_anterior_part_2) -_CODE_MACRO_(deltoideus_anterior_part_3) -_CODE_MACRO_(deltoideus_anterior_part_4) +_CODE_MACRO_(DeltoideusPosterior,deltoideus_posterior_part_1) +_CODE_MACRO_(DeltoideusPosterior,deltoideus_posterior_part_2) +_CODE_MACRO_(DeltoideusPosterior,deltoideus_posterior_part_3) +_CODE_MACRO_(DeltoideusPosterior,deltoideus_posterior_part_4) +_CODE_MACRO_(DeltoideusLateral,deltoideus_lateral_part_1) +_CODE_MACRO_(DeltoideusLateral,deltoideus_lateral_part_2) +_CODE_MACRO_(DeltoideusLateral,deltoideus_lateral_part_3) +_CODE_MACRO_(DeltoideusLateral,deltoideus_lateral_part_4) +_CODE_MACRO_(DeltoideusAnterior,deltoideus_anterior_part_1) +_CODE_MACRO_(DeltoideusAnterior,deltoideus_anterior_part_2) +_CODE_MACRO_(DeltoideusAnterior,deltoideus_anterior_part_3) +_CODE_MACRO_(DeltoideusAnterior,deltoideus_anterior_part_4) #endif -_CODE_MACRO_(infraspinatus_1) -_CODE_MACRO_(infraspinatus_2) -_CODE_MACRO_(infraspinatus_3) -_CODE_MACRO_(infraspinatus_4) -_CODE_MACRO_(infraspinatus_5) -_CODE_MACRO_(infraspinatus_6) -_CODE_MACRO_(latissimus_dorsi_1) -_CODE_MACRO_(latissimus_dorsi_2) -_CODE_MACRO_(latissimus_dorsi_3) -_CODE_MACRO_(latissimus_dorsi_4) -_CODE_MACRO_(latissimus_dorsi_5) -_CODE_MACRO_(latissimus_dorsi_6) -_CODE_MACRO_(latissimus_dorsi_7) -_CODE_MACRO_(latissimus_dorsi_8) -_CODE_MACRO_(latissimus_dorsi_9) -_CODE_MACRO_(latissimus_dorsi_10) -_CODE_MACRO_(latissimus_dorsi_11) -_CODE_MACRO_(pectoralis_major_thoracic_part_1) -_CODE_MACRO_(pectoralis_major_thoracic_part_2) -_CODE_MACRO_(pectoralis_major_thoracic_part_3) -_CODE_MACRO_(pectoralis_major_thoracic_part_4) -_CODE_MACRO_(pectoralis_major_thoracic_part_5) -_CODE_MACRO_(pectoralis_major_thoracic_part_6) -_CODE_MACRO_(pectoralis_major_thoracic_part_7) -_CODE_MACRO_(pectoralis_major_thoracic_part_8) -_CODE_MACRO_(pectoralis_major_thoracic_part_9) -_CODE_MACRO_(pectoralis_major_thoracic_part_10) -_CODE_MACRO_(pectoralis_major_clavicular_part_1) -_CODE_MACRO_(pectoralis_major_clavicular_part_2) -_CODE_MACRO_(pectoralis_major_clavicular_part_3) -_CODE_MACRO_(pectoralis_major_clavicular_part_4) -_CODE_MACRO_(pectoralis_major_clavicular_part_5) -_CODE_MACRO_(subscapularis_1) -_CODE_MACRO_(subscapularis_2) -_CODE_MACRO_(subscapularis_3) -_CODE_MACRO_(subscapularis_4) -_CODE_MACRO_(subscapularis_5) -_CODE_MACRO_(subscapularis_6) -_CODE_MACRO_(supraspinatus_1) -_CODE_MACRO_(supraspinatus_2) -_CODE_MACRO_(supraspinatus_3) -_CODE_MACRO_(supraspinatus_4) -_CODE_MACRO_(supraspinatus_5) -_CODE_MACRO_(supraspinatus_6) -_CODE_MACRO_(teres_major_1) -_CODE_MACRO_(teres_major_2) -_CODE_MACRO_(teres_major_3) -_CODE_MACRO_(teres_major_4) -_CODE_MACRO_(teres_major_5) -_CODE_MACRO_(teres_major_6) -_CODE_MACRO_(teres_minor_1) -_CODE_MACRO_(teres_minor_2) -_CODE_MACRO_(teres_minor_3) -_CODE_MACRO_(teres_minor_4) -_CODE_MACRO_(teres_minor_5) -_CODE_MACRO_(teres_minor_6) -_CODE_MACRO_(levator_scapulae_1) -_CODE_MACRO_(levator_scapulae_2) -_CODE_MACRO_(levator_scapulae_3) -_CODE_MACRO_(levator_scapulae_4) -_CODE_MACRO_(pectoralis_minor_1) -_CODE_MACRO_(pectoralis_minor_2) -_CODE_MACRO_(pectoralis_minor_3) -_CODE_MACRO_(rhomboideus_1) -_CODE_MACRO_(rhomboideus_2) -_CODE_MACRO_(rhomboideus_3) -_CODE_MACRO_(rhomboideus_4) -_CODE_MACRO_(rhomboideus_5) -_CODE_MACRO_(rhomboideus_6) -_CODE_MACRO_(serratus_anterior_1) -_CODE_MACRO_(serratus_anterior_2) -_CODE_MACRO_(serratus_anterior_3) -_CODE_MACRO_(serratus_anterior_4) -_CODE_MACRO_(serratus_anterior_5) -_CODE_MACRO_(serratus_anterior_6) -_CODE_MACRO_(serratus_anterior_7) -_CODE_MACRO_(serratus_anterior_8) -_CODE_MACRO_(serratus_anterior_9) -_CODE_MACRO_(trapezius_scapular_part_1) -_CODE_MACRO_(trapezius_scapular_part_2) -_CODE_MACRO_(trapezius_scapular_part_3) -_CODE_MACRO_(trapezius_scapular_part_4) -_CODE_MACRO_(trapezius_scapular_part_5) -_CODE_MACRO_(trapezius_scapular_part_6) -_CODE_MACRO_(trapezius_scapular_part_7) -_CODE_MACRO_(trapezius_scapular_part_8) -_CODE_MACRO_(trapezius_scapular_part_9) -_CODE_MACRO_(trapezius_scapular_part_10) -_CODE_MACRO_(trapezius_scapular_part_11) -_CODE_MACRO_(trapezius_scapular_part_12) -_CODE_MACRO_(trapezius_scapular_part_13) -_CODE_MACRO_(trapezius_scapular_part_14) -_CODE_MACRO_(Sternocleidomastoid_caput_clavicular) -_CODE_MACRO_(Sternocleidomastoid_caput_Sternum) -_CODE_MACRO_(trapezius_clavicular_part_1) -_CODE_MACRO_(trapezius_clavicular_part_2) -_CODE_MACRO_(trapezius_clavicular_part_3) -_CODE_MACRO_(trapezius_clavicular_part_4) -_CODE_MACRO_(trapezius_clavicular_part_5) -_CODE_MACRO_(trapezius_clavicular_part_6) +_CODE_MACRO_(Infraspinatus,infraspinatus_1) +_CODE_MACRO_(Infraspinatus,infraspinatus_2) +_CODE_MACRO_(Infraspinatus,infraspinatus_3) +_CODE_MACRO_(Infraspinatus,infraspinatus_4) +_CODE_MACRO_(Infraspinatus,infraspinatus_5) +_CODE_MACRO_(Infraspinatus,infraspinatus_6) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_1) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_2) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_3) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_4) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_5) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_6) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_7) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_8) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_9) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_10) +_CODE_MACRO_(LatissimusDorsi,latissimus_dorsi_11) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_1) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_2) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_3) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_4) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_5) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_6) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_7) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_8) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_9) +_CODE_MACRO_(PectoralisMajorThoracic,pectoralis_major_thoracic_part_10) +_CODE_MACRO_(PectoralisMajorClavicular,pectoralis_major_clavicular_part_1) +_CODE_MACRO_(PectoralisMajorClavicular,pectoralis_major_clavicular_part_2) +_CODE_MACRO_(PectoralisMajorClavicular,pectoralis_major_clavicular_part_3) +_CODE_MACRO_(PectoralisMajorClavicular,pectoralis_major_clavicular_part_4) +_CODE_MACRO_(PectoralisMajorClavicular,pectoralis_major_clavicular_part_5) +_CODE_MACRO_(Subscapularis,subscapularis_1) +_CODE_MACRO_(Subscapularis,subscapularis_2) +_CODE_MACRO_(Subscapularis,subscapularis_3) +_CODE_MACRO_(Subscapularis,subscapularis_4) +_CODE_MACRO_(Subscapularis,subscapularis_5) +_CODE_MACRO_(Subscapularis,subscapularis_6) +_CODE_MACRO_(Supraspinatus,supraspinatus_1) +_CODE_MACRO_(Supraspinatus,supraspinatus_2) +_CODE_MACRO_(Supraspinatus,supraspinatus_3) +_CODE_MACRO_(Supraspinatus,supraspinatus_4) +_CODE_MACRO_(Supraspinatus,supraspinatus_5) +_CODE_MACRO_(Supraspinatus,supraspinatus_6) +_CODE_MACRO_(TeresMajor,teres_major_1) +_CODE_MACRO_(TeresMajor,teres_major_2) +_CODE_MACRO_(TeresMajor,teres_major_3) +_CODE_MACRO_(TeresMajor,teres_major_4) +_CODE_MACRO_(TeresMajor,teres_major_5) +_CODE_MACRO_(TeresMajor,teres_major_6) +_CODE_MACRO_(TeresMinor,teres_minor_1) +_CODE_MACRO_(TeresMinor,teres_minor_2) +_CODE_MACRO_(TeresMinor,teres_minor_3) +_CODE_MACRO_(TeresMinor,teres_minor_4) +_CODE_MACRO_(TeresMinor,teres_minor_5) +_CODE_MACRO_(TeresMinor,teres_minor_6) +_CODE_MACRO_(LevatorScapulae,levator_scapulae_1) +_CODE_MACRO_(LevatorScapulae,levator_scapulae_2) +_CODE_MACRO_(LevatorScapulae,levator_scapulae_3) +_CODE_MACRO_(LevatorScapulae,levator_scapulae_4) +_CODE_MACRO_(PectoralisMinor,pectoralis_minor_1) +_CODE_MACRO_(PectoralisMinor,pectoralis_minor_2) +_CODE_MACRO_(PectoralisMinor,pectoralis_minor_3) +_CODE_MACRO_(Rhomboideus,rhomboideus_1) +_CODE_MACRO_(Rhomboideus,rhomboideus_2) +_CODE_MACRO_(Rhomboideus,rhomboideus_3) +_CODE_MACRO_(Rhomboideus,rhomboideus_4) +_CODE_MACRO_(Rhomboideus,rhomboideus_5) +_CODE_MACRO_(Rhomboideus,rhomboideus_6) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_1) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_2) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_3) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_4) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_5) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_6) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_7) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_8) +_CODE_MACRO_(SerratusAnterior,serratus_anterior_9) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_1) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_2) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_3) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_4) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_5) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_6) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_7) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_8) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_9) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_10) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_11) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_12) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_13) +_CODE_MACRO_(TrapeziusScapular,trapezius_scapular_part_14) +_CODE_MACRO_(Sternocleidomastoid,Sternocleidomastoid_caput_clavicular) +_CODE_MACRO_(Sternocleidomastoid,Sternocleidomastoid_caput_Sternum) +_CODE_MACRO_(TrapeziusClavicular,trapezius_clavicular_part_1) + _CODE_MACRO_(TrapeziusClavicular,trapezius_clavicular_part_2) + _CODE_MACRO_(TrapeziusClavicular,trapezius_clavicular_part_3) + _CODE_MACRO_(TrapeziusClavicular,trapezius_clavicular_part_4) + _CODE_MACRO_(TrapeziusClavicular,trapezius_clavicular_part_5) + _CODE_MACRO_(TrapeziusClavicular,trapezius_clavicular_part_6) diff --git a/Body/AAUHuman/Arm/levator_scapulae.any b/Body/AAUHuman/Arm/levator_scapulae.any deleted file mode 100644 index 37ae768a8..000000000 --- a/Body/AAUHuman/Arm/levator_scapulae.any +++ /dev/null @@ -1,27 +0,0 @@ -AnyMuscleViaPoint levator_scapulae_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.levator_scapulae_1; - AnyRefNode &Org = .TrunkNodeAttachement.C1Seg.O_levator_scapulae_1; - AnyRefNode &Ins = ..Seg.Scapula.I_levator_scapulae_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint levator_scapulae_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.levator_scapulae_2; - AnyRefNode &Org = .TrunkNodeAttachement.C2Seg.O_levator_scapulae_2; - AnyRefNode &Ins = ..Seg.Scapula.I_levator_scapulae_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint levator_scapulae_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.levator_scapulae_3; - AnyRefNode &Org = .TrunkNodeAttachement.C3Seg.O_levator_scapulae_3; - AnyRefNode &Ins = ..Seg.Scapula.I_levator_scapulae_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint levator_scapulae_4 ={ - AnyMuscleModel &MusMdl = ..MuscleModels.levator_scapulae_4; - AnyRefNode &Org = .TrunkNodeAttachement.C4Seg.O_levator_scapulae_4 ; - AnyRefNode &Ins = ..Seg.Scapula.I_levator_scapulae_4 ; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; diff --git a/Body/AAUHuman/Arm/sternocleidomastoid.any b/Body/AAUHuman/Arm/sternocleidomastoid.any deleted file mode 100644 index 85d02cd1b..000000000 --- a/Body/AAUHuman/Arm/sternocleidomastoid.any +++ /dev/null @@ -1,14 +0,0 @@ - -AnyMuscleViaPoint Sternocleidomastoid_caput_clavicular = { - AnyMuscleModel &MusMdl = ..MuscleModels.Sternocleidomastoid_1; - AnyRefNode &Ins2 = ..Seg.Clavicula.SternocleidomastoidNode; - AnyRefNode &Org = .TrunkNodeAttachement.SkullSeg.SternocleidomastoidNode; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - -AnyMuscleViaPoint Sternocleidomastoid_caput_Sternum = { - AnyMuscleModel &MusMdl = ..MuscleModels.Sternocleidomastoid_2; - AnyRefNode &Ins = .TrunkNodeAttachement.ManubriumSeg.SternocleidomastoidNode; - AnyRefNode &Org = .TrunkNodeAttachement.SkullSeg.SternocleidomastoidNode; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; \ No newline at end of file diff --git a/Body/AAUHuman/Arm/trapezius_clavicular.any b/Body/AAUHuman/Arm/trapezius_clavicular.any deleted file mode 100644 index 752c926a6..000000000 --- a/Body/AAUHuman/Arm/trapezius_clavicular.any +++ /dev/null @@ -1,41 +0,0 @@ -AnyMuscleViaPoint trapezius_clavicular_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_clavicular_part_1; - AnyRefNode &Org = .TrunkNodeAttachement.C5Seg.O_trapezius_clavicular_part_1; - AnyRefNode &Ins = ..Seg.Clavicula.I_trapezius_clavicular_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_clavicular_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_clavicular_part_2; - AnyRefNode &Org = .TrunkNodeAttachement.C4Seg.O_trapezius_clavicular_part_2; - AnyRefNode &Ins = ..Seg.Clavicula.I_trapezius_clavicular_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_clavicular_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_clavicular_part_3; - AnyRefNode &Org = .TrunkNodeAttachement.C3Seg.O_trapezius_clavicular_part_3; - AnyRefNode &Ins = ..Seg.Clavicula.I_trapezius_clavicular_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_clavicular_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_clavicular_part_4; - AnyRefNode &Org = .TrunkNodeAttachement.C2Seg.O_trapezius_clavicular_part_4; - AnyRefNode &Ins = ..Seg.Clavicula.I_trapezius_clavicular_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_clavicular_part_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_clavicular_part_5; - AnyRefNode &Org = .TrunkNodeAttachement.C1Seg.O_trapezius_clavicular_part_5; - AnyRefNode &Ins = ..Seg.Clavicula.I_trapezius_clavicular_part_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_clavicular_part_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_clavicular_part_6; - AnyRefNode &Org = .TrunkNodeAttachement.SkullSeg.O_trapezius_clavicular_part_6; - AnyRefNode &Ins = ..Seg.Clavicula.I_trapezius_clavicular_part_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; diff --git a/Body/AAUHuman/Arm/trapezius_scapular.any b/Body/AAUHuman/Arm/trapezius_scapular.any deleted file mode 100644 index f7348e532..000000000 --- a/Body/AAUHuman/Arm/trapezius_scapular.any +++ /dev/null @@ -1,131 +0,0 @@ -AnyMuscleShortestPath trapezius_scapular_part_1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_1; - AnyRefNode &Org = .TrunkNodeAttachement.T12Seg.O_trapezius_scapular_part_1; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({1.3*.Surf.Radius, 0,0.5*.Surf.Length}, &.Surf)}; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; - -AnyMuscleShortestPath trapezius_scapular_part_2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_2; - AnyRefNode &Org = .TrunkNodeAttachement.T11Seg.O_trapezius_scapular_part_2; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine = { - AnyMatrix InitWrapPos = { transf3D({1.3*.Surf.Radius, 0,0.5*.Surf.Length}, &.Surf)}; - InitWrapPosVecArr = {&InitWrapPos}; - }; -}; - -AnyMuscleShortestPath trapezius_scapular_part_3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_3; - AnyRefNode &Org = .TrunkNodeAttachement.T10Seg.O_trapezius_scapular_part_3; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleShortestPath trapezius_scapular_part_4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_4; - AnyRefNode &Org = .TrunkNodeAttachement.T9Seg.O_trapezius_scapular_part_4; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleShortestPath trapezius_scapular_part_5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_5; - AnyRefNode &Org = .TrunkNodeAttachement.T8Seg.O_trapezius_scapular_part_5; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleShortestPath trapezius_scapular_part_6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_6; - AnyRefNode &Org = .TrunkNodeAttachement.T7Seg.O_trapezius_scapular_part_6; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleShortestPath trapezius_scapular_part_7 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_7; - AnyRefNode &Org = .TrunkNodeAttachement.T6Seg.O_trapezius_scapular_part_7; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleShortestPath trapezius_scapular_part_8 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_8; - AnyRefNode &Org = .TrunkNodeAttachement.T5Seg.O_trapezius_scapular_part_8; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleShortestPath trapezius_scapular_part_9 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_9; - AnyRefNode &Org = .TrunkNodeAttachement.T4Seg.O_trapezius_scapular_part_9; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - SPLine.StringMesh = 100; - AnySurfCylinder &Surf =.margo_medialis; - SPLine.InitWrapPosVecArr = .trapezius_scapular_part_1.SPLine.InitWrapPosVecArr; -}; - -AnyMuscleViaPoint trapezius_scapular_part_10 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_10; - AnyRefNode &Org = .TrunkNodeAttachement.T3Seg.O_trapezius_scapular_part_10; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_10; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_scapular_part_11 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_11; - AnyRefNode &Org = .TrunkNodeAttachement.T2Seg.O_trapezius_scapular_part_11; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_11; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_scapular_part_12 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_12; - AnyRefNode &Org = .TrunkNodeAttachement.T1Seg.O_trapezius_scapular_part_12; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_12; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - -AnyMuscleViaPoint trapezius_scapular_part_13 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_13; - AnyRefNode &Org = .TrunkNodeAttachement.C7Seg.O_trapezius_scapular_part_13; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_13; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint trapezius_scapular_part_14 = { - AnyMuscleModel &MusMdl = ..MuscleModels.trapezius_scapular_part_14; - AnyRefNode &Org = .TrunkNodeAttachement.C6Seg.O_trapezius_scapular_part_14; - AnyRefNode &Ins = ..Seg.Scapula.I_trapezius_scapular_part_14; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.any b/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.any index 6899307b4..5a2ff91e6 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.any @@ -1,12 +1,17 @@ AnyFolder BodyModel = { #if (ANYBODY_V1 > 7)|(ANYBODY_V1 == 7 & ANYBODY_V2 > 1) - #include "\ComponentTreeConfig.any" + #if (ANYBODY_V1 > 8)|(ANYBODY_V1 == 8 & ANYBODY_V2 >= 2) + // Use newest component definitions + #include "\ComponentDefinitions.any" + #else + // Use old component definitions + #include "\ComponentTreeConfig.any" + #endif #endif // The folder containing the selected human model output. AnyFolder SelectedOutput = { - AnyFolder Trunk = {}; }; @@ -106,8 +111,6 @@ AnyFolder BodyModel = { #endif - - #if BM_LEG_LEFT & (BM_LEG_MODEL == _LEG_MODEL_LEG_) #include "LeftLegModel.any" @@ -122,7 +125,6 @@ AnyFolder BodyModel = { #endif - #if BM_LEG_RIGHT & BM_LEG_MODEL_IS_TLEM #include "RightLegTDModel.any" diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.config_info.any b/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.config_info.any index 4c5b2d7ed..ff142c44a 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.config_info.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.config_info.any @@ -602,6 +602,11 @@ AnyMessage msg_BM_GLOBAL_REFERENCE_FRAME_SWITCH = { TriggerPreProcess = On; Type AnyMessage msg_BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF = { TriggerPreProcess = On; Type = MSG_Message; Message = strval(BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF);}; #endif +#ifdef BM_COMPATIBILITY_MUSCLE_STRUCTURE +// A compatability switch to include the muscle structure from AMMR 3.0 +AnyMessage msg_BM_COMPATIBILITY_MUSCLE_STRUCTURE = { TriggerPreProcess = On; Type = MSG_Message; Message = strval(BM_COMPATIBILITY_MUSCLE_STRUCTURE);}; +#endif + }; // AnyFolder Messages #endif @@ -1204,6 +1209,11 @@ AnyIntVar value_BM_GLOBAL_REFERENCE_FRAME_SWITCH=BM_GLOBAL_REFERENCE_FRAME_SWITC AnyIntVar value_BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF=BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF; #endif +#ifdef BM_COMPATIBILITY_MUSCLE_STRUCTURE +// A compatability switch to include the muscle structure from AMMR 3.0 +AnyIntVar value_BM_COMPATIBILITY_MUSCLE_STRUCTURE=BM_COMPATIBILITY_MUSCLE_STRUCTURE; +#endif + };// AnyFolder Values #endif diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.defaults.any b/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.defaults.any index bacb3656a..d01201b91 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.defaults.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/BodyModel.defaults.any @@ -636,3 +636,8 @@ #ifndef BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF #define BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF OFF #endif + +// A compatability switch to use the new AMMR 4.0 model structure for muscles inside the arms and legs +#ifndef BM_COMPATIBILITY_MUSCLE_STRUCTURE +#define BM_COMPATIBILITY_MUSCLE_STRUCTURE OFF +#endif \ No newline at end of file diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentAndGroupDefinitions.ClassTemplate.any b/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentAndGroupDefinitions.ClassTemplate.any new file mode 100644 index 000000000..922eca52c --- /dev/null +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentAndGroupDefinitions.ClassTemplate.any @@ -0,0 +1,33 @@ +/* +Class templates to create either regular folder objects in AMS versions before 8.2 or new +Component/Group objects +*/ +#if (ANYBODY_V1 > 8)|(ANYBODY_V1 == 8 & ANYBODY_V2 >= 2) + + + // Define some variables that are useful for muscle groups + #define MUSCLE_GRP_VARS \ + AnyVar MaxActivity = max(Obj2Num( ObjGetMember(Objects,"Activity"))); \ + AnyVar AvgActivity = mean(Obj2Num( ObjGetMember(Objects,"Activity"))); + + + /* + Template for a muscle group. By default collects all muscle objects in the folder. The + searchString argument can specify a subset of muscles from outside the folder + */ + #class_template MuscleGroup(__CLASS__ = AnyComponentGroup, searchString = "") { + #if searchString == "" + Objects = ObjSearch("*", Class); + #else + Objects = ObjSearch(searchString, Class); + #endif + Class = "AnyMuscle"; + MUSCLE_GRP_VARS + }; + +#else + + // By default all these templates create AnyFolder objects + #class_template MuscleGroup(__CLASS__ = AnyFolder, searchString = "") {}; + +#endif diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentDefinitions.any b/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentDefinitions.any new file mode 100644 index 000000000..5ab929027 --- /dev/null +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentDefinitions.any @@ -0,0 +1,106 @@ + +//component definitions to support component tree view + +/// Top level Component Definition for the BodyModel +AnyComponentDefinition CDef = { + Name = "Body"; +}; + +SelectedOutput = { + AnyComponentDefinition CDef = { + Name = "SelectedOutput"; + }; +}; + +#if BM_ARM_RIGHT == ON + Right.ShoulderArm = { + AnyComponentDefinition CDef = { + Name = "Arm"; + }; + + // Only define a component for the detailed hand + #if ((BM_ARM_DETAILED_HAND == ON)) + Seg.Hand = { + AnyComponentDefinition CDef = { + Name = "Hand"; + }; + }; + #endif + }; +#endif + +#if BM_ARM_LEFT == ON + Left.ShoulderArm = { + AnyComponentDefinition CDef = { + Name = "Arm"; + }; + + // Only define a component for the detailed hand + #if ((BM_ARM_DETAILED_HAND == ON)) + Seg.Hand = { + AnyComponentDefinition CDef = { + Name = "Hand"; + }; + }; + #endif + }; +#endif + +Trunk = { + AnyComponentDefinition CDef = { + Name = "Spine"; + }; + + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ + Abdominal = { + AnyComponentDefinition CDef = { + Name = "Abdominal"; + }; + }; + #else + Buckle = { + AnyComponentDefinition CDef = { + Name = "Buckle"; + }; + }; + #endif + + #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ + ThoracicCavity = { + AnyComponentDefinition CDef = { + Name = "Ribcage"; + }; + }; + #endif + + #if BM_TRUNK_MUSCLES == OFF + JointMuscles = { + AnyComponentDefinition CDef = { + Name = "JointMuscles"; + }; + }; + #endif + + Joints = { + AnyComponentDefinition CDef = { + Name = "Joints"; + }; + }; +}; + + +#if BM_LEG_RIGHT == ON + Right.Leg = { + AnyComponentDefinition CDef = { + Name = "Leg"; + }; + }; +#endif + +#if BM_LEG_LEFT == ON + Left.Leg = { + AnyComponentDefinition CDef = { + Name = "Leg"; + }; + }; +#endif diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentTreeConfig.any b/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentTreeConfig.any index e3e51d465..898441375 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentTreeConfig.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/ComponentTreeConfig.any @@ -50,9 +50,11 @@ Trunk={ }; #endif - JointMuscles = { - AnyComponentDefinition CDef = {}; - }; + #if BM_TRUNK_MUSCLES == OFF + JointMuscles = { + AnyComponentDefinition CDef = {}; + }; + #endif // segments Segments = { @@ -107,6 +109,16 @@ Trunk={ #if BM_ARM_RIGHT == ON Right.ShoulderArm = { AnyComponentDefinition CDef = {}; + + #if BM_ARM_DETAILED_HAND == ON + Seg.Hand = { + AnyComponentDefinition CDef = { + SubGroupRegexSearch = "^(Finger\d{1})\.([_[:alnum:]]+)\.([_[:alnum:]]+).*?"; + SubGroupRegexReplace = "$1/$3"; + }; + }; + #endif + Jnt = { AnyComponentDefinition CDef = {}; }; @@ -119,6 +131,15 @@ Right.ShoulderArm = { #if BM_ARM_LEFT == ON Left.ShoulderArm = { AnyComponentDefinition CDef = {}; + + #if BM_ARM_DETAILED_HAND == ON + Seg.Hand = { + AnyComponentDefinition CDef = { + SubGroupRegexSearch = "^(Finger\d{1})\.([_[:alnum:]]+)\.([_[:alnum:]]+).*?"; + SubGroupRegexReplace = "$1/$3"; + }; + }; + #endif Jnt = {AnyComponentDefinition CDef = {};}; #if BM_ARM_MUSCLES_LEFT == OFF JointMuscles = {AnyComponentDefinition CDef = {};}; diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/Ifdef_BM_param.any b/Body/AAUHuman/BodyModels/GenericBodyModel/Ifdef_BM_param.any index 3d1649eb6..3bb5ceb05 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/Ifdef_BM_param.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/Ifdef_BM_param.any @@ -801,3 +801,9 @@ #define _BM_PARAM_DEFINED_ #endif #endif + +#ifdef BM_COMPATIBILITY_MUSCLE_STRUCTURE +#ifndef _BM_PARAM_DEFINED_ +#define _BM_PARAM_DEFINED_ +#endif +#endif diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/ammr-beta.any b/Body/AAUHuman/BodyModels/GenericBodyModel/ammr-beta.any index 4ae618cf9..42c991569 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/ammr-beta.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/ammr-beta.any @@ -1,8 +1,14 @@ AnyDoc _AMMR_BETA_INFO_ = { - Hidden = On; - AnyString GitInfo ??= {"unknown","unknown"}; + +#if (ANYBODY_V1 > 8)|(ANYBODY_V1 == 8 & ANYBODY_V2 >= 2) + // 'Hidden' member is deprecated in newer verison +#else + Hidden = On; +#endif + + AnyString GitInfo ??= {"unknown","unknown"}; #if AMMR_IS_GIT_REPOSITORY #if ANYBODY_PYTHON_AVAILABLE diff --git a/Body/AAUHuman/BodyModels/GenericBodyModel/undef_BM_params.any b/Body/AAUHuman/BodyModels/GenericBodyModel/undef_BM_params.any index d59711a05..16ee484d5 100644 --- a/Body/AAUHuman/BodyModels/GenericBodyModel/undef_BM_params.any +++ b/Body/AAUHuman/BodyModels/GenericBodyModel/undef_BM_params.any @@ -506,6 +506,10 @@ #ifdef BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF #undef BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF #endif + + #ifdef BM_COMPATIBILITY_MUSCLE_STRUCTURE + #undef BM_COMPATIBILITY_MUSCLE_STRUCTURE + #endif #ifdef _BM_PELVIS_DISPLAY_ #undef _BM_PELVIS_DISPLAY_ diff --git a/Body/AAUHuman/HumanModel.defs.any b/Body/AAUHuman/HumanModel.defs.any index 9eef015b7..82373a25b 100644 --- a/Body/AAUHuman/HumanModel.defs.any +++ b/Body/AAUHuman/HumanModel.defs.any @@ -13,6 +13,7 @@ #include "/WrappingSurfaces/Torus3PointOuterFit.any" #include "/Video/VideoLookAtCamera.any" #include "BodyModels/GenericBodyModel/RigidBodyAverageMeasure.ClassTemplate.any" +#include "BodyModels/GenericBodyModel/ComponentAndGroupDefinitions.ClassTemplate.any" #ifndef ANYBODY_PATH_TOOLBOX // Deprecated #path ANYBODY_PATH_TOOLBOX "" diff --git a/Body/AAUHuman/LegTLEM/EvaluateJointStrengthStudy.any b/Body/AAUHuman/LegTLEM/EvaluateJointStrengthStudy.any index 2a76d665c..e3ce1b5d3 100644 --- a/Body/AAUHuman/LegTLEM/EvaluateJointStrengthStudy.any +++ b/Body/AAUHuman/LegTLEM/EvaluateJointStrengthStudy.any @@ -109,7 +109,7 @@ AnyBodyStudy Study = { AnyVar JointAngle = not(not(..Model.Drivers.LegDriver.DriverVel))*..Model.Drivers.LegMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( .Model.MusRef.LegMuscles.name.Strength * .Model.MusRef.LegMuscles.name.Activity); +#define _CODE_MACRO_(muscle, branch) AnyVar branch = ( .Model.MusRef.LegMuscles.muscle.branch.Strength * .Model.MusRef.LegMuscles.muscle.branch.Activity); #include "legmuscles_for_output.any" #undef _CODE_MACRO_ }; diff --git a/Body/AAUHuman/LegTLEM/EvaluateMomentArmsStudy.any b/Body/AAUHuman/LegTLEM/EvaluateMomentArmsStudy.any index a8946dd3e..3ef76ccc2 100644 --- a/Body/AAUHuman/LegTLEM/EvaluateMomentArmsStudy.any +++ b/Body/AAUHuman/LegTLEM/EvaluateMomentArmsStudy.any @@ -74,7 +74,7 @@ AnyKinStudy Study = { AnyFolder Abscissa = { AnyVar JointAngle = not(not(..Model.Drivers.LegDriver.DriverVel))*..Model.Drivers.LegMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( .Model.LegMusRef.name.Strength); +#define _CODE_MACRO_(muscle, branch) AnyVar branch = ( .Model.LegMusRef.muscle.branch.Strength); #include "legmuscles_for_output.any" #undef _CODE_MACRO_ }; @@ -83,14 +83,14 @@ AnyKinStudy Study = { AnyFolder Abscissa = { AnyVar JointAngle = not(not(..Model.Drivers.LegDriver.DriverVel))*..Model.Drivers.LegMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( .Model.LegMusRef.name.PennationAngle * 180 / pi); +#define _CODE_MACRO_(muscle, branch) AnyVar branch = ( .Model.LegMusRef.muscle.branch.PennationAngle * 180 / pi); #include "legmuscles_for_output.any" #undef _CODE_MACRO_ }; AnyFolder MuscleReferences = { -#define _CODE_MACRO_(name) AnyMuscle& name = .Model.LegMusRef.name; +#define _CODE_MACRO_(muscle, branch) AnyMuscle& branch = .Model.LegMusRef.muscle.branch; #include "legmuscles_for_output.any" #undef _CODE_MACRO_ }; @@ -99,7 +99,7 @@ AnyKinStudy Study = { AnyFolder Abscissa = { AnyVar JointAngle = not(not(..Model.Drivers.LegDriver.DriverVel))*..Model.Drivers.LegMeasure.Pos'*180/pi ; }; -#define _CODE_MACRO_(name) AnyVar name = ( -1*.Model.LegMusRef.name.LmtDot/.Model.Drivers.AngularVelocity); +#define _CODE_MACRO_(muscle, branch) AnyVar branch = ( -1*.Model.LegMusRef.muscle.branch.LmtDot/.Model.Drivers.AngularVelocity); #include "legmuscles_for_output.any" #undef _CODE_MACRO_ }; diff --git a/Body/AAUHuman/LegTLEM/LeftLegSelectedOutput.any b/Body/AAUHuman/LegTLEM/LeftLegSelectedOutput.any index a5120d9b9..7375cb1bb 100644 --- a/Body/AAUHuman/LegTLEM/LeftLegSelectedOutput.any +++ b/Body/AAUHuman/LegTLEM/LeftLegSelectedOutput.any @@ -114,7 +114,9 @@ SelectedOutput.Left = { #if (BM_LEG_MUSCLES_LEFT == OFF) Search = ".....Left.Leg.JointMuscles.*.*.dof0.Muscle.*.Activity"; #else - Search = ".....Left.Leg.Mus.*.Activity"; + // Note: first search string finds muscles inside group defs, + // second search string handles when muscles are created w. templates - those have addtional level + Search = {".....Left.Leg.Mus.*.*.Activity", ".....Left.Leg.Mus.*.*.*.Activity"}; #endif }; @@ -133,29 +135,29 @@ SelectedOutput.Left = { AnySearchFun GluteusMaxActivityList = { - Search = "......Left.Leg.Mus.GluteusMax*.Activity"; + Search = "......Left.Leg.Mus.GluteusMax*.*.Activity"; }; // GlutMed AnySearchFun GlutMedActivityList = { - Search = "......Left.Leg.Mus.GluteusMed*.Activity"; + Search = "......Left.Leg.Mus.GluteusMed*.*.Activity"; }; // GlutMin AnySearchFun GlutMinActivityList = { - Search = "......Left.Leg.Mus.GluteusMin*.Activity"; + Search = "......Left.Leg.Mus.GluteusMin*.*.Activity"; }; // Sartorius AnySearchFun SartoriusActivityList = { - Search = "......Left.Leg.Mus.Sartorius*.Activity"; + Search = "......Left.Leg.Mus.Sartorius.*.Activity"; }; // Tensor Fasciae Latae AnySearchFun TensorFasciaeActivityList = { - Search = "......Left.Leg.Mus.TensorFasciae*.Activity"; + Search = "......Left.Leg.Mus.TensorFasciae*.*.Activity"; }; @@ -170,37 +172,37 @@ SelectedOutput.Left = { // }; AnySearchFun IliacusActivityList = { - Search = "......Left.Leg.Mus.Iliac*.Activity"; + Search = "......Left.Leg.Mus.Iliac*.*.Activity"; }; AnySearchFun VastusActivityList = { - Search = "......Left.Leg.Mus.Vastus*.Activity"; + Search = "......Left.Leg.Mus.Vastus*.*.Activity"; }; AnySearchFun RectusFemorisActivityList = { - Search = "......Left.Leg.Mus.RectusF*.Activity"; + Search = "......Left.Leg.Mus.RectusF*.*.Activity"; }; AnySearchFun PectineusActivityList = { - Search = "......Left.Leg.Mus.Pect*.Activity"; + Search = "......Left.Leg.Mus.Pect*.*.Activity"; }; AnySearchFun GracilisActivityList = { - Search = "......Left.Leg.Mus.Gracili*.Activity"; + Search = "......Left.Leg.Mus.Gracili*.*.Activity"; }; AnySearchFun AdductorLongusActivityList = { - Search = "......Left.Leg.Mus.AdductorLongus*.Activity"; + Search = "......Left.Leg.Mus.AdductorLongus.*.Activity"; }; AnySearchFun AdductorBrevisActivityList = { - Search = "......Left.Leg.Mus.AdductorBr*.Activity"; + Search = "......Left.Leg.Mus.AdductorBr*.*.Activity"; }; AnySearchFun AdductorMagnusActivityList = { - Search = "......Left.Leg.Mus.AdductorMag*.Activity"; + Search = "......Left.Leg.Mus.AdductorMag*.*.Activity"; }; // AnySearchFun AdductorMinimusActivityList = { @@ -209,7 +211,7 @@ SelectedOutput.Left = { AnySearchFun ObturatorExtActivityList = { - Search = "......Left.Leg.Mus.ObturatorExt*.Activity"; + Search = "......Left.Leg.Mus.ObturatorExt*.*.Activity"; }; @@ -217,38 +219,38 @@ SelectedOutput.Left = { AnySearchFun SemimembranosusActivityList = { - Search = "......Left.Leg.Mus.Semimembr*.Activity"; + Search = "......Left.Leg.Mus.Semimembr*.*.Activity"; }; AnySearchFun SemimemtendinosusActivityList = { - Search = "......Left.Leg.Mus.Semitend*.Activity"; + Search = "......Left.Leg.Mus.Semitend*.*.Activity"; }; AnySearchFun BicepsFemorisCaputBreveActivityList = { - Search = "......Left.Leg.Mus.BicepsFemorisCaputBreve*.Activity"; + Search = "......Left.Leg.Mus.BicepsFemorisCaputBreve.*.Activity"; }; AnySearchFun BicepsFemorisCaputLongActivityList = { - Search = "......Left.Leg.Mus.BicepsFemorisCaputL*.Activity"; + Search = "......Left.Leg.Mus.BicepsFemorisCaputL*.*.Activity"; }; AnySearchFun GastrocActivityList = { - Search = "......Left.Leg.Mus.Gastroc*.Activity"; + Search = "......Left.Leg.Mus.Gastroc*.*.Activity"; }; AnySearchFun TibPostActivityList = { - Search = "......Left.Leg.Mus.TibialisPost*.Activity"; + Search = "......Left.Leg.Mus.TibialisPost*.*.Activity"; }; AnySearchFun TibAntActivityList = { - Search = "......Left.Leg.Mus.TibialisAnt*.Activity"; + Search = "......Left.Leg.Mus.TibialisAnt*.*.Activity"; }; AnySearchFun SoleusActivityList = { - Search = "......Left.Leg.Mus.Soleus*.Activity"; + Search = "......Left.Leg.Mus.Soleus*.*.Activity"; }; @@ -376,7 +378,7 @@ SelectedOutput.Left = { AnySearchFun GluteusMaxForceList = { - Search = "......Left.Leg.Mus.GluteusMax*.Fout"; + Search = "......Left.Leg.Mus.GluteusMax*.*.Fout"; }; @@ -384,22 +386,22 @@ SelectedOutput.Left = { // GlutMed AnySearchFun GlutMedForceList = { - Search = "......Left.Leg.Mus.GluteusMed*.Fout"; + Search = "......Left.Leg.Mus.GluteusMed*.*.Fout"; }; // GlutMin AnySearchFun GlutMinForceList = { - Search = "......Left.Leg.Mus.GluteusMin*.Fout"; + Search = "......Left.Leg.Mus.GluteusMin*.*.Fout"; }; // Sartorius AnySearchFun SartoriusForceList = { - Search = "......Left.Leg.Mus.Sartorius*.Fout"; + Search = "......Left.Leg.Mus.Sartorius.*.Fout"; }; // Tensor Fasciae Latae AnySearchFun TensorFasciaeForceList = { - Search = "......Left.Leg.Mus.TensorFasciae*.Fout"; + Search = "......Left.Leg.Mus.TensorFasciae*.*.Fout"; }; @@ -415,32 +417,32 @@ SelectedOutput.Left = { // }; AnySearchFun IliacusForceList = { - Search = "......Left.Leg.Mus.Iliac*.Fout"; + Search = "......Left.Leg.Mus.Iliac*.*.Fout"; }; AnySearchFun RectusFemorisForceList = { - Search = "......Left.Leg.Mus.RectusF*.Fout"; + Search = "......Left.Leg.Mus.RectusF*.*.Fout"; }; AnySearchFun PectineusForceList = { - Search = "......Left.Leg.Mus.Pect*.Fout"; + Search = "......Left.Leg.Mus.Pect*.*.Fout"; }; AnySearchFun GracilisForceList = { - Search = "......Left.Leg.Mus.Gracili*.Fout"; + Search = "......Left.Leg.Mus.Gracili*.*.Fout"; }; AnySearchFun AdductorLongusForceList = { - Search = "......Left.Leg.Mus.AdductorLongus*.Fout"; + Search = "......Left.Leg.Mus.AdductorLongus.*.Fout"; }; AnySearchFun AdductorBrevisForceList = { - Search = "......Left.Leg.Mus.AdductorBr*.Fout"; + Search = "......Left.Leg.Mus.AdductorBr*.*.Fout"; }; AnySearchFun AdductorMagnusForceList = { - Search = "......Left.Leg.Mus.AdductorMag*.Fout"; + Search = "......Left.Leg.Mus.AdductorMag*.*.Fout"; }; // AnySearchFun AdductorMinimusForceList = { @@ -449,49 +451,49 @@ SelectedOutput.Left = { AnySearchFun ObturatorExtForceList = { - Search = "......Left.Leg.Mus.ObturatorExt*.Fout"; + Search = "......Left.Leg.Mus.ObturatorExt*.*.Fout"; }; AnySearchFun SemimembranosusForceList = { - Search = "......Left.Leg.Mus.Semimembr*.Fout"; + Search = "......Left.Leg.Mus.Semimembr*.*.Fout"; }; AnySearchFun SemimemtendinosusForceList = { - Search = "......Left.Leg.Mus.Semitend*.Fout"; + Search = "......Left.Leg.Mus.Semitend*.*.Fout"; }; AnySearchFun BicepsFemorisCaputBreveForceList = { - Search = "......Left.Leg.Mus.BicepsFemorisCaputBreve*.Fout"; + Search = "......Left.Leg.Mus.BicepsFemorisCaputBreve.*.Fout"; }; AnySearchFun BicepsFemorisCaputLongForceList = { - Search = "......Left.Leg.Mus.BicepsFemorisCaputL*.Fout"; + Search = "......Left.Leg.Mus.BicepsFemorisCaputL*.*.Fout"; }; AnySearchFun GastrocForceList = { - Search = "......Left.Leg.Mus.Gastroc*.Fout"; + Search = "......Left.Leg.Mus.Gastroc*.*.Fout"; }; AnySearchFun TibPostForceList = { - Search = "......Left.Leg.Mus.TibialisPost*.Fout"; + Search = "......Left.Leg.Mus.TibialisPost*.*.Fout"; }; AnySearchFun TibAntForceList = { - Search = "......Left.Leg.Mus.TibialisAnt*.Fout"; + Search = "......Left.Leg.Mus.TibialisAnt*.*.Fout"; }; AnySearchFun SoleusForceList = { - Search = "......Left.Leg.Mus.Soleus*.Fout"; + Search = "......Left.Leg.Mus.Soleus*.*.Fout"; }; AnySearchFun VastusForceList = { - Search = "......Left.Leg.Mus.Vastus*.Fout"; + Search = "......Left.Leg.Mus.Vastus*.*.Fout"; }; //***** AnyVar GluteusMaxForce = sum(GluteusMaxForceList()); diff --git a/Body/AAUHuman/LegTLEM/Mus.any b/Body/AAUHuman/LegTLEM/Mus.any index 9fcb0db4f..5e88bd816 100644 --- a/Body/AAUHuman/LegTLEM/Mus.any +++ b/Body/AAUHuman/LegTLEM/Mus.any @@ -18,531 +18,554 @@ #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ + #if BM_COMPATIBILITY_MUSCLE_STRUCTURE == ON + #include "ammr_3.0_compatibility_structure.any" + #endif + + MuscleGroup SoleusMedialis() = { + AnyMuscleShortestPath SoleusMedialis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.SoleusMedialis1Par; + AnyRefNode &Org = ...Seg.Shank.SoleusMedialis1Node; + AnyRefNode &Via1 = ...Seg.Foot.SoleusMedialis1SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.SoleusMedialis1Node; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + SPLine = { + StringMesh = 30; + AnyMatrix InitWrapPos = { + transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) , + transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 ) + }; + InitWrapPosVecArr = {&InitWrapPos, None}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath SoleusMedialis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.SoleusMedialis2Par; + AnyRefNode &Org = ...Seg.Shank.SoleusMedialis2Node; + AnyRefNode &Via1 = ...Seg.Foot.SoleusMedialis2SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.SoleusMedialis2Node; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + SPLine.StringMesh = 30; + SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; - - -AnyMuscleShortestPath SoleusMedialis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.SoleusMedialis1Par; - AnyRefNode &Org = ..Seg.Shank.SoleusMedialis1Node; - AnyRefNode &Via1 = ..Seg.Foot.SoleusMedialis1SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis1Node; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - SPLine = { - StringMesh = 30; - AnyMatrix InitWrapPos = { - transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) , - transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 ) + AnyMuscleShortestPath SoleusMedialis3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.SoleusMedialis3Par; + AnyRefNode &Org = ...Seg.Shank.SoleusMedialis3Node; + AnyRefNode &Via1 = ...Seg.Foot.SoleusMedialis3SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.SoleusMedialis3Node; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + SPLine.StringMesh = 30; + SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - InitWrapPosVecArr = {&InitWrapPos, None}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleShortestPath SoleusMedialis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.SoleusMedialis2Par; - AnyRefNode &Org = ..Seg.Shank.SoleusMedialis2Node; - AnyRefNode &Via1 = ..Seg.Foot.SoleusMedialis2SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis2Node; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - SPLine.StringMesh = 30; - SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleShortestPath SoleusMedialis3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.SoleusMedialis3Par; - AnyRefNode &Org = ..Seg.Shank.SoleusMedialis3Node; - AnyRefNode &Via1 = ..Seg.Foot.SoleusMedialis3SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis3Node; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - SPLine.StringMesh = 30; - SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath SoleusLateralis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.SoleusLateralis1Par; - AnyRefNode &Org = ..Seg.Shank.SoleusLateralis1Node; - AnyRefNode &Via1 = ..Seg.Foot.SoleusLateralis1SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.SoleusLateralis1Node; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - SPLine.StringMesh = 30; - SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup SoleusLateralis() = { + AnyMuscleShortestPath SoleusLateralis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.SoleusLateralis1Par; + AnyRefNode &Org = ...Seg.Shank.SoleusLateralis1Node; + AnyRefNode &Via1 = ...Seg.Foot.SoleusLateralis1SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.SoleusLateralis1Node; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + SPLine.StringMesh = 30; + SPLine.InitWrapPosVecArr = ..SoleusMedialis.SoleusMedialis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath SoleusLateralis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.SoleusLateralis2Par; - AnyRefNode &Org = ..Seg.Shank.SoleusLateralis2Node; - AnyRefNode &Via1 = ..Seg.Foot.SoleusLateralis2SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.SoleusLateralis2Node; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - SPLine.StringMesh = 30; - SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath SoleusLateralis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.SoleusLateralis2Par; + AnyRefNode &Org = ...Seg.Shank.SoleusLateralis2Node; + AnyRefNode &Via1 = ...Seg.Foot.SoleusLateralis2SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.SoleusLateralis2Node; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + SPLine.StringMesh = 30; + SPLine.InitWrapPosVecArr = ..SoleusMedialis.SoleusMedialis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath SoleusLateralis3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.SoleusLateralis3Par; - AnyRefNode &Org = ..Seg.Shank.SoleusLateralis3Node; - AnyRefNode &Via1 = ..Seg.Foot.SoleusLateralis3SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.SoleusLateralis3Node; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - SPLine.StringMesh = 30; - SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath SoleusLateralis3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.SoleusLateralis3Par; + AnyRefNode &Org = ...Seg.Shank.SoleusLateralis3Node; + AnyRefNode &Via1 = ...Seg.Foot.SoleusLateralis3SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.SoleusLateralis3Node; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + SPLine.StringMesh = 30; + SPLine.InitWrapPosVecArr = ..SoleusMedialis.SoleusMedialis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + MuscleGroup GastrocnemiusLateralis() = { + AnyMuscleShortestPath GastrocnemiusLateralis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GastrocnemiusLateralis1Par; + AnyRefNode &Org = ...Seg.Thigh.GastrocnemiusLateralis1Node; + AnySurface &srf = ...Seg.Thigh.GastroWrapSurf.cyl; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + AnyRefNode &Via7 = ...Seg.Shank.GastrocnemiusLateralis7ViaNode; + AnyRefNode &Via8 = ...Seg.Shank.GastrocnemiusLateralis8ViaNode; + AnyRefNode &Via9 = ...Seg.Shank.GastrocnemiusLateralis9ViaNode; + AnyRefNode &Via10 = ...Seg.Foot.GastrocnemiusLateralis1SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.GastrocnemiusLateralis1Node; + SPLine = { + StringMesh = 30; + AnyMatrix InitWrapPos1 = { + transf3D({1.1*.srf.Radius, ....Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) , + }; + AnyMatrix InitWrapPos2 = { + transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) , + transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 ) + }; + + InitWrapPosVecArr = {&InitWrapPos1,None,None,&InitWrapPos2, None}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + + MuscleGroup GastrocnemiusMedialis() = { + AnyMuscleShortestPath GastrocnemiusMedialis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GastrocnemiusMedialis1Par; + AnyRefNode &Org = ...Seg.Thigh.GastrocnemiusMedialis1Node; + AnyRefNode &Via1 = ...Seg.Thigh.GastrocnemiusMedialis1ViaNode; + AnySurface &srf = ...Seg.Thigh.GastroWrapSurf.cyl; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + AnyRefNode &Via4 = ...Seg.Shank.GastrocnemiusMedialis4ViaNode; + AnyRefNode &Via5 = ...Seg.Shank.GastrocnemiusMedialis5ViaNode; + AnyRefNode &Via6 = ...Seg.Shank.GastrocnemiusMedialis6ViaNode; + AnyRefNode &Via7 = ...Seg.Shank.GastrocnemiusMedialis7ViaNode; + AnyRefNode &Via8 = ...Seg.Foot.GastrocnemiusMedialis1SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.GastrocnemiusMedialis1Node; + SPLine.StringMesh = 30; + SPLine.InitWrapPosVecArr = { + None, + &..GastrocnemiusLateralis.GastrocnemiusLateralis1.SPLine.InitWrapPos1, + None, + None, + None, + &..GastrocnemiusLateralis.GastrocnemiusLateralis1.SPLine.InitWrapPos2, + None + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + MuscleGroup FlexorDigitorumLongus() = { + AnyMuscleViaPoint FlexorDigitorumLongus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorDigitorumLongus1Par; + AnyRefNode &Org = ...Seg.Shank.FlexorDigitorumLongus1Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorDigitorumLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorDigitorumLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Shank.FlexorDigitorumLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorDigitorumLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorDigitorumLongusViaNode7; + AnyRefNode &Via8 = ...Seg.Foot.FlexorDigitorumLongusViaNode8; + // AnyRefNode &Via9 = ...Seg.Foot.FlexorDigitorumLongusViaNode9; + AnyRefNode &Ins = ...Seg.Foot.FlexorDigitorumLongus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint FlexorDigitorumLongus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorDigitorumLongus2Par; + AnyRefNode &Org = ...Seg.Shank.FlexorDigitorumLongus2Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorDigitorumLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorDigitorumLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Shank.FlexorDigitorumLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorDigitorumLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorDigitorumLongusViaNode7; + AnyRefNode &Via8 = ...Seg.Foot.FlexorDigitorumLongusViaNode8; + // AnyRefNode &Via9 = ...Seg.Foot.FlexorDigitorumLongusViaNode10; + AnyRefNode &Ins = ...Seg.Foot.FlexorDigitorumLongus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint FlexorDigitorumLongus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorDigitorumLongus3Par; + AnyRefNode &Org = ...Seg.Shank.FlexorDigitorumLongus3Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorDigitorumLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorDigitorumLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Shank.FlexorDigitorumLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorDigitorumLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorDigitorumLongusViaNode7; + AnyRefNode &Via8 = ...Seg.Foot.FlexorDigitorumLongusViaNode8; + // AnyRefNode &Via9 = ...Seg.Foot.FlexorDigitorumLongusViaNode11; + AnyRefNode &Ins = ...Seg.Foot.FlexorDigitorumLongus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint FlexorDigitorumLongus4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorDigitorumLongus4Par; + AnyRefNode &Org = ...Seg.Shank.FlexorDigitorumLongus4Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorDigitorumLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorDigitorumLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Shank.FlexorDigitorumLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorDigitorumLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorDigitorumLongusViaNode7; + AnyRefNode &Via8 = ...Seg.Foot.FlexorDigitorumLongusViaNode8; + //AnyRefNode &Via9 = ...Seg.Foot.FlexorDigitorumLongusViaNode12; + AnyRefNode &Ins = ...Seg.Foot.FlexorDigitorumLongus4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; -AnyMuscleShortestPath GastrocnemiusLateralis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GastrocnemiusLateralis1Par; - AnyRefNode &Org = ..Seg.Thigh.GastrocnemiusLateralis1Node; - AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - AnyRefNode &Via7 = ..Seg.Shank.GastrocnemiusLateralis7ViaNode; - AnyRefNode &Via8 = ..Seg.Shank.GastrocnemiusLateralis8ViaNode; - AnyRefNode &Via9 = ..Seg.Shank.GastrocnemiusLateralis9ViaNode; - AnyRefNode &Via10 =..Seg.Foot.GastrocnemiusLateralis1SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.GastrocnemiusLateralis1Node; - SPLine = { - StringMesh = 30; - AnyMatrix InitWrapPos1 = { - transf3D({1.1*.srf.Radius, ...Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) , + MuscleGroup FlexorHallucisLongus() = { + AnyMuscleViaPoint FlexorHallucisLongus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorHallucisLongus1Par; + AnyRefNode &Org = ...Seg.Shank.FlexorHallucisLongus1Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorHallucisLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorHallucisLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorHallucisLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorHallucisLongusViaNode4; + // AnyRefNode &Via5 = ...Seg.Shank.FlexorHallucisLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorHallucisLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorHallucisLongusViaNode7; + // AnyRefNode &Via8 = ...Seg.Foot.FlexorHallucisLongusViaNode8; + AnyRefNode &Ins = ...Seg.Foot.FlexorHallucisLongus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - AnyMatrix InitWrapPos2 = { - transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) , - transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 ) + AnyMuscleViaPoint FlexorHallucisLongus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorHallucisLongus2Par; + AnyRefNode &Org = ...Seg.Shank.FlexorHallucisLongus2Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorHallucisLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorHallucisLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorHallucisLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorHallucisLongusViaNode4; + // AnyRefNode &Via5 = ...Seg.Shank.FlexorHallucisLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorHallucisLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorHallucisLongusViaNode7; + // AnyRefNode &Via8 = ...Seg.Foot.FlexorHallucisLongusViaNode8; + AnyRefNode &Ins = ...Seg.Foot.FlexorHallucisLongus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint FlexorHallucisLongus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.FlexorHallucisLongus3Par; + AnyRefNode &Org = ...Seg.Shank.FlexorHallucisLongus3Node; + AnyRefNode &Via1 = ...Seg.Shank.FlexorHallucisLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.FlexorHallucisLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.FlexorHallucisLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Shank.FlexorHallucisLongusViaNode4; + // AnyRefNode &Via5 = ...Seg.Shank.FlexorHallucisLongusViaNode5; + // AnyRefNode &Via6 = ...Seg.Shank.FlexorHallucisLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.FlexorHallucisLongusViaNode7; + // AnyRefNode &Via8 = ...Seg.Foot.FlexorHallucisLongusViaNode8; + AnyRefNode &Ins = ...Seg.Foot.FlexorHallucisLongus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - - InitWrapPosVecArr = {&InitWrapPos1,None,None,&InitWrapPos2, None}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleShortestPath GastrocnemiusMedialis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GastrocnemiusMedialis1Par; - AnyRefNode &Org = ..Seg.Thigh.GastrocnemiusMedialis1Node; - AnyRefNode &Via1 = ..Seg.Thigh.GastrocnemiusMedialis1ViaNode; - AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - AnyRefNode &Via4 = ..Seg.Shank.GastrocnemiusMedialis4ViaNode; - AnyRefNode &Via5 = ..Seg.Shank.GastrocnemiusMedialis5ViaNode; - AnyRefNode &Via6 = ..Seg.Shank.GastrocnemiusMedialis6ViaNode; - AnyRefNode &Via7 = ..Seg.Shank.GastrocnemiusMedialis7ViaNode; - AnyRefNode &Via8 =..Seg.Foot.GastrocnemiusMedialis1SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.GastrocnemiusMedialis1Node; - SPLine.StringMesh = 30; - SPLine.InitWrapPosVecArr = {None, &.GastrocnemiusLateralis1.SPLine.InitWrapPos1,None, None, None, &.GastrocnemiusLateralis1.SPLine.InitWrapPos2, None}; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - - - - -AnyMuscleViaPoint FlexorDigitorumLongus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorDigitorumLongus1Par; - AnyRefNode &Org = ..Seg.Shank.FlexorDigitorumLongus1Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorDigitorumLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorDigitorumLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Shank.FlexorDigitorumLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorDigitorumLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorDigitorumLongusViaNode7; - AnyRefNode &Via8 = ..Seg.Foot.FlexorDigitorumLongusViaNode8; -// AnyRefNode &Via9 = ..Seg.Foot.FlexorDigitorumLongusViaNode9; - AnyRefNode &Ins = ..Seg.Foot.FlexorDigitorumLongus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint FlexorDigitorumLongus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorDigitorumLongus2Par; - AnyRefNode &Org = ..Seg.Shank.FlexorDigitorumLongus2Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorDigitorumLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorDigitorumLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Shank.FlexorDigitorumLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorDigitorumLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorDigitorumLongusViaNode7; - AnyRefNode &Via8 = ..Seg.Foot.FlexorDigitorumLongusViaNode8; - // AnyRefNode &Via9 = ..Seg.Foot.FlexorDigitorumLongusViaNode10; - AnyRefNode &Ins = ..Seg.Foot.FlexorDigitorumLongus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint FlexorDigitorumLongus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorDigitorumLongus3Par; - AnyRefNode &Org = ..Seg.Shank.FlexorDigitorumLongus3Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorDigitorumLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorDigitorumLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Shank.FlexorDigitorumLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorDigitorumLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorDigitorumLongusViaNode7; - AnyRefNode &Via8 = ..Seg.Foot.FlexorDigitorumLongusViaNode8; - // AnyRefNode &Via9 = ..Seg.Foot.FlexorDigitorumLongusViaNode11; - AnyRefNode &Ins = ..Seg.Foot.FlexorDigitorumLongus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint FlexorDigitorumLongus4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorDigitorumLongus4Par; - AnyRefNode &Org = ..Seg.Shank.FlexorDigitorumLongus4Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorDigitorumLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorDigitorumLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Shank.FlexorDigitorumLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorDigitorumLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorDigitorumLongusViaNode7; - AnyRefNode &Via8 = ..Seg.Foot.FlexorDigitorumLongusViaNode8; - //AnyRefNode &Via9 = ..Seg.Foot.FlexorDigitorumLongusViaNode12; - AnyRefNode &Ins = ..Seg.Foot.FlexorDigitorumLongus4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - -AnyMuscleViaPoint FlexorHallucisLongus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorHallucisLongus1Par; - AnyRefNode &Org = ..Seg.Shank.FlexorHallucisLongus1Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorHallucisLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorHallucisLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorHallucisLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorHallucisLongusViaNode4; -// AnyRefNode &Via5 = ..Seg.Shank.FlexorHallucisLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorHallucisLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorHallucisLongusViaNode7; -// AnyRefNode &Via8 = ..Seg.Foot.FlexorHallucisLongusViaNode8; - AnyRefNode &Ins = ..Seg.Foot.FlexorHallucisLongus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint FlexorHallucisLongus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorHallucisLongus2Par; - AnyRefNode &Org = ..Seg.Shank.FlexorHallucisLongus2Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorHallucisLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorHallucisLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorHallucisLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorHallucisLongusViaNode4; -// AnyRefNode &Via5 = ..Seg.Shank.FlexorHallucisLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorHallucisLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorHallucisLongusViaNode7; - // AnyRefNode &Via8 = ..Seg.Foot.FlexorHallucisLongusViaNode8; - AnyRefNode &Ins = ..Seg.Foot.FlexorHallucisLongus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint FlexorHallucisLongus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.FlexorHallucisLongus3Par; - AnyRefNode &Org = ..Seg.Shank.FlexorHallucisLongus3Node; - AnyRefNode &Via1 = ..Seg.Shank.FlexorHallucisLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.FlexorHallucisLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.FlexorHallucisLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Shank.FlexorHallucisLongusViaNode4; -// AnyRefNode &Via5 = ..Seg.Shank.FlexorHallucisLongusViaNode5; -// AnyRefNode &Via6 = ..Seg.Shank.FlexorHallucisLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.FlexorHallucisLongusViaNode7; - // AnyRefNode &Via8 = ..Seg.Foot.FlexorHallucisLongusViaNode8; - AnyRefNode &Ins = ..Seg.Foot.FlexorHallucisLongus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint TibialisPosteriorLateralis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisPosteriorLateralis1Par; - AnyRefNode &Org = ..Seg.Shank.TibialisPosteriorLateralis1Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisPosteriorViaNode1; -// AnyRefNode &Via2 = ..Seg.Shank.TibialisPosteriorViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.TibialisPosteriorViaNode3; - //AnyRefNode &Via4 = ..Seg.Shank.TibialisPosteriorViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.TibialisPosteriorViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.TibialisPosteriorViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.TibialisPosteriorViaNode7; - AnyRefNode &Ins = ..Seg.Foot.TibialisPosteriorLateralis1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint TibialisPosteriorLateralis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisPosteriorLateralis2Par; - AnyRefNode &Org = ..Seg.Shank.TibialisPosteriorLateralis2Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisPosteriorViaNode1; -// AnyRefNode &Via2 = ..Seg.Shank.TibialisPosteriorViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.TibialisPosteriorViaNode3; - //AnyRefNode &Via4 = ..Seg.Shank.TibialisPosteriorViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.TibialisPosteriorViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.TibialisPosteriorViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.TibialisPosteriorViaNode7; - AnyRefNode &Ins = ..Seg.Foot.TibialisPosteriorLateralis2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint TibialisPosteriorLateralis3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisPosteriorLateralis3Par; - AnyRefNode &Org = ..Seg.Shank.TibialisPosteriorLateralis3Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisPosteriorViaNode1; -// AnyRefNode &Via2 = ..Seg.Shank.TibialisPosteriorViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.TibialisPosteriorViaNode3; - //AnyRefNode &Via4 = ..Seg.Shank.TibialisPosteriorViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.TibialisPosteriorViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.TibialisPosteriorViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.TibialisPosteriorViaNode7; - AnyRefNode &Ins = ..Seg.Foot.TibialisPosteriorLateralis3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint TibialisPosteriorMedialis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisPosteriorMedialis1Par; - AnyRefNode &Org = ..Seg.Shank.TibialisPosteriorMedialis1Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisPosteriorViaNode1; -// AnyRefNode &Via2 = ..Seg.Shank.TibialisPosteriorViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.TibialisPosteriorViaNode3; - //AnyRefNode &Via4 = ..Seg.Shank.TibialisPosteriorViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.TibialisPosteriorViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.TibialisPosteriorViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.TibialisPosteriorViaNode7; - AnyRefNode &Ins = ..Seg.Foot.TibialisPosteriorMedialis1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint TibialisPosteriorMedialis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisPosteriorMedialis2Par; - AnyRefNode &Org = ..Seg.Shank.TibialisPosteriorMedialis2Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisPosteriorViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.TibialisPosteriorViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.TibialisPosteriorViaNode3; - //AnyRefNode &Via4 = ..Seg.Shank.TibialisPosteriorViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.TibialisPosteriorViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.TibialisPosteriorViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.TibialisPosteriorViaNode7; - AnyRefNode &Ins = ..Seg.Foot.TibialisPosteriorMedialis2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint TibialisPosteriorMedialis3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisPosteriorMedialis3Par; - AnyRefNode &Org = ..Seg.Shank.TibialisPosteriorMedialis3Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisPosteriorViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.TibialisPosteriorViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.TibialisPosteriorViaNode3; - //AnyRefNode &Via4 = ..Seg.Shank.TibialisPosteriorViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.TibialisPosteriorViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.TibialisPosteriorViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.TibialisPosteriorViaNode7; - AnyRefNode &Ins = ..Seg.Foot.TibialisPosteriorMedialis3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup TibialisPosteriorLateralis() = { + AnyMuscleViaPoint TibialisPosteriorLateralis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisPosteriorLateralis1Par; + AnyRefNode &Org = ...Seg.Shank.TibialisPosteriorLateralis1Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisPosteriorViaNode1; + // AnyRefNode &Via2 = ...Seg.Shank.TibialisPosteriorViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.TibialisPosteriorViaNode3; + //AnyRefNode &Via4 = ...Seg.Shank.TibialisPosteriorViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.TibialisPosteriorViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.TibialisPosteriorViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.TibialisPosteriorViaNode7; + AnyRefNode &Ins = ...Seg.Foot.TibialisPosteriorLateralis1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint TibialisAnterior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisAnterior1Par; - AnyRefNode &Org = ..Seg.Shank.TibialisAnterior1Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisAnteriorViaNode1; - AnyRefNode &Via3 = ..Seg.Foot.TibialisAnteriorViaNode3; - AnyRefNode &Ins = ..Seg.Foot.TibialisAnterior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint TibialisPosteriorLateralis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisPosteriorLateralis2Par; + AnyRefNode &Org = ...Seg.Shank.TibialisPosteriorLateralis2Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisPosteriorViaNode1; + // AnyRefNode &Via2 = ...Seg.Shank.TibialisPosteriorViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.TibialisPosteriorViaNode3; + //AnyRefNode &Via4 = ...Seg.Shank.TibialisPosteriorViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.TibialisPosteriorViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.TibialisPosteriorViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.TibialisPosteriorViaNode7; + AnyRefNode &Ins = ...Seg.Foot.TibialisPosteriorLateralis2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint TibialisAnterior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisAnterior2Par; - AnyRefNode &Org = ..Seg.Shank.TibialisAnterior2Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisAnteriorViaNode1; - AnyRefNode &Via3 = ..Seg.Foot.TibialisAnteriorViaNode3; - AnyRefNode &Ins = ..Seg.Foot.TibialisAnterior2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint TibialisPosteriorLateralis3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisPosteriorLateralis3Par; + AnyRefNode &Org = ...Seg.Shank.TibialisPosteriorLateralis3Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisPosteriorViaNode1; + // AnyRefNode &Via2 = ...Seg.Shank.TibialisPosteriorViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.TibialisPosteriorViaNode3; + //AnyRefNode &Via4 = ...Seg.Shank.TibialisPosteriorViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.TibialisPosteriorViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.TibialisPosteriorViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.TibialisPosteriorViaNode7; + AnyRefNode &Ins = ...Seg.Foot.TibialisPosteriorLateralis3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; -AnyMuscleViaPoint TibialisAnterior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TibialisAnterior3Par; - AnyRefNode &Org = ..Seg.Shank.TibialisAnterior3Node; - AnyRefNode &Via1 = ..Seg.Shank.TibialisAnteriorViaNode1; - AnyRefNode &Via3 = ..Seg.Foot.TibialisAnteriorViaNode3; - AnyRefNode &Ins = ..Seg.Foot.TibialisAnterior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup TibialisPosteriorMedialis() = { + AnyMuscleViaPoint TibialisPosteriorMedialis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisPosteriorMedialis1Par; + AnyRefNode &Org = ...Seg.Shank.TibialisPosteriorMedialis1Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisPosteriorViaNode1; + // AnyRefNode &Via2 = ...Seg.Shank.TibialisPosteriorViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.TibialisPosteriorViaNode3; + //AnyRefNode &Via4 = ...Seg.Shank.TibialisPosteriorViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.TibialisPosteriorViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.TibialisPosteriorViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.TibialisPosteriorViaNode7; + AnyRefNode &Ins = ...Seg.Foot.TibialisPosteriorMedialis1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint PeroneusBrevis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.PeroneusBrevis1Par; - AnyRefNode &Org = ..Seg.Shank.PeroneusBrevis1Node; - AnyRefNode &Via1 = ..Seg.Shank.PeroneusBrevisViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PeroneusBrevisViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.PeroneusBrevisViaNode3; - AnyRefNode &Via4 = ..Seg.Foot.PeroneusBrevisViaNode4; - AnyRefNode &Via6 = ..Seg.Foot.PeroneusBrevisSplitPoint1Node; - AnyRefNode &Ins = ..Seg.Foot.PeroneusBrevis1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint TibialisPosteriorMedialis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisPosteriorMedialis2Par; + AnyRefNode &Org = ...Seg.Shank.TibialisPosteriorMedialis2Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisPosteriorViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.TibialisPosteriorViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.TibialisPosteriorViaNode3; + //AnyRefNode &Via4 = ...Seg.Shank.TibialisPosteriorViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.TibialisPosteriorViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.TibialisPosteriorViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.TibialisPosteriorViaNode7; + AnyRefNode &Ins = ...Seg.Foot.TibialisPosteriorMedialis2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint PeroneusBrevis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.PeroneusBrevis2Par; - AnyRefNode &Org = ..Seg.Shank.PeroneusBrevis2Node; - AnyRefNode &Via1 = ..Seg.Shank.PeroneusBrevisViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PeroneusBrevisViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.PeroneusBrevisViaNode3; - AnyRefNode &Via4 = ..Seg.Foot.PeroneusBrevisViaNode4; - AnyRefNode &Via6 = ..Seg.Foot.PeroneusBrevisSplitPoint1Node; - AnyRefNode &Ins = ..Seg.Foot.PeroneusBrevis2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint TibialisPosteriorMedialis3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisPosteriorMedialis3Par; + AnyRefNode &Org = ...Seg.Shank.TibialisPosteriorMedialis3Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisPosteriorViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.TibialisPosteriorViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.TibialisPosteriorViaNode3; + //AnyRefNode &Via4 = ...Seg.Shank.TibialisPosteriorViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.TibialisPosteriorViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.TibialisPosteriorViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.TibialisPosteriorViaNode7; + AnyRefNode &Ins = ...Seg.Foot.TibialisPosteriorMedialis3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; -AnyMuscleViaPoint PeroneusBrevis3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.PeroneusBrevis3Par; - AnyRefNode &Org = ..Seg.Shank.PeroneusBrevis3Node; - AnyRefNode &Via1 = ..Seg.Shank.PeroneusBrevisViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PeroneusBrevisViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.PeroneusBrevisViaNode3; - AnyRefNode &Via4 = ..Seg.Foot.PeroneusBrevisViaNode4; - AnyRefNode &Via5 = ..Seg.Foot.PeroneusBrevisSplitPoint1Node; - AnyRefNode &Ins = ..Seg.Foot.PeroneusBrevis2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup TibialisAnterior() = { + AnyMuscleViaPoint TibialisAnterior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisAnterior1Par; + AnyRefNode &Org = ...Seg.Shank.TibialisAnterior1Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisAnteriorViaNode1; + AnyRefNode &Via3 = ...Seg.Foot.TibialisAnteriorViaNode3; + AnyRefNode &Ins = ...Seg.Foot.TibialisAnterior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint PeroneusLongus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.PeroneusLongus1Par; - AnyRefNode &Org = ..Seg.Shank.PeroneusLongus1Node; - AnyRefNode &Via1 = ..Seg.Shank.PeroneusLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PeroneusLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.PeroneusLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.PeroneusLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Foot.PeroneusLongusViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.PeroneusLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.PeroneusLongusViaNode7; - AnyRefNode &Ins = ..Seg.Foot.PeroneusLongus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint TibialisAnterior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisAnterior2Par; + AnyRefNode &Org = ...Seg.Shank.TibialisAnterior2Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisAnteriorViaNode1; + AnyRefNode &Via3 = ...Seg.Foot.TibialisAnteriorViaNode3; + AnyRefNode &Ins = ...Seg.Foot.TibialisAnterior2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint PeroneusLongus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.PeroneusLongus2Par; - AnyRefNode &Org = ..Seg.Shank.PeroneusLongus2Node; - AnyRefNode &Via1 = ..Seg.Shank.PeroneusLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PeroneusLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.PeroneusLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.PeroneusLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Foot.PeroneusLongusViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.PeroneusLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.PeroneusLongusViaNode7; - AnyRefNode &Ins = ..Seg.Foot.PeroneusLongus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint TibialisAnterior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TibialisAnterior3Par; + AnyRefNode &Org = ...Seg.Shank.TibialisAnterior3Node; + AnyRefNode &Via1 = ...Seg.Shank.TibialisAnteriorViaNode1; + AnyRefNode &Via3 = ...Seg.Foot.TibialisAnteriorViaNode3; + AnyRefNode &Ins = ...Seg.Foot.TibialisAnterior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + + MuscleGroup PeroneusBrevis() = { + AnyMuscleViaPoint PeroneusBrevis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.PeroneusBrevis1Par; + AnyRefNode &Org = ...Seg.Shank.PeroneusBrevis1Node; + AnyRefNode &Via1 = ...Seg.Shank.PeroneusBrevisViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PeroneusBrevisViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.PeroneusBrevisViaNode3; + AnyRefNode &Via4 = ...Seg.Foot.PeroneusBrevisViaNode4; + AnyRefNode &Via6 = ...Seg.Foot.PeroneusBrevisSplitPoint1Node; + AnyRefNode &Ins = ...Seg.Foot.PeroneusBrevis1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint PeroneusLongus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.PeroneusLongus3Par; - AnyRefNode &Org = ..Seg.Shank.PeroneusLongus3Node; - AnyRefNode &Via1 = ..Seg.Shank.PeroneusLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PeroneusLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.PeroneusLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.PeroneusLongusViaNode4; - AnyRefNode &Via5 = ..Seg.Foot.PeroneusLongusViaNode5; - AnyRefNode &Via6 = ..Seg.Foot.PeroneusLongusViaNode6; - AnyRefNode &Via7 = ..Seg.Foot.PeroneusLongusViaNode7; - AnyRefNode &Ins = ..Seg.Foot.PeroneusLongus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint PeroneusBrevis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.PeroneusBrevis2Par; + AnyRefNode &Org = ...Seg.Shank.PeroneusBrevis2Node; + AnyRefNode &Via1 = ...Seg.Shank.PeroneusBrevisViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PeroneusBrevisViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.PeroneusBrevisViaNode3; + AnyRefNode &Via4 = ...Seg.Foot.PeroneusBrevisViaNode4; + AnyRefNode &Via6 = ...Seg.Foot.PeroneusBrevisSplitPoint1Node; + AnyRefNode &Ins = ...Seg.Foot.PeroneusBrevis2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint PeroneusBrevis3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.PeroneusBrevis3Par; + AnyRefNode &Org = ...Seg.Shank.PeroneusBrevis3Node; + AnyRefNode &Via1 = ...Seg.Shank.PeroneusBrevisViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PeroneusBrevisViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.PeroneusBrevisViaNode3; + AnyRefNode &Via4 = ...Seg.Foot.PeroneusBrevisViaNode4; + AnyRefNode &Via5 = ...Seg.Foot.PeroneusBrevisSplitPoint1Node; + AnyRefNode &Ins = ...Seg.Foot.PeroneusBrevis2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + MuscleGroup PeroneusLongus() = { + AnyMuscleViaPoint PeroneusLongus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.PeroneusLongus1Par; + AnyRefNode &Org = ...Seg.Shank.PeroneusLongus1Node; + AnyRefNode &Via1 = ...Seg.Shank.PeroneusLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PeroneusLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.PeroneusLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.PeroneusLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Foot.PeroneusLongusViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.PeroneusLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.PeroneusLongusViaNode7; + AnyRefNode &Ins = ...Seg.Foot.PeroneusLongus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ExtensorDigitorumLongus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorDigitorumLongus1Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorDigitorumLongus1Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.ExtensorDigitorumLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.ExtensorDigitorumLongusViaNode4; - //AnyRefNode &Via5 = ..Seg.Foot.ExtensorDigitorumLongusViaNode5; //Commented out in TLEMsafe2.0-trunk as the node has been removed there. Needs review. - AnyRefNode &Via7 = ..Seg.Foot. ExtensorDigitorumSplitPoint1Node; - AnyRefNode &Via6 = ..Seg.Foot.ExtensorDigitorumLongusViaNode1; - AnyRefNode&Ins = ..Seg.Foot.ExtensorDigitorumLongus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint ExtensorDigitorumLongus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorDigitorumLongus2Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorDigitorumLongus2Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.ExtensorDigitorumLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.ExtensorDigitorumLongusViaNode4; - //AnyRefNode &Via5 = ..Seg.Foot.ExtensorDigitorumLongusViaNode5; //Commented out in TLEMsafe2.0-trunk as the node has been removed there. Needs review. - AnyRefNode &Via7 = ..Seg.Foot. ExtensorDigitorumSplitPoint1Node; - AnyRefNode &Via6 = ..Seg.Foot.ExtensorDigitorumLongusViaNode2; - AnyRefNode &Ins = ..Seg.Foot.ExtensorDigitorumLongus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint ExtensorDigitorumLongus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorDigitorumLongus3Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorDigitorumLongus3Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.ExtensorDigitorumLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.ExtensorDigitorumLongusViaNode4; - //AnyRefNode &Via5 = ..Seg.Foot.ExtensorDigitorumLongusViaNode5; //Commented out in TLEMsafe2.0-trunk as the node has been removed there. Needs review. - AnyRefNode &Via7 = ..Seg.Foot. ExtensorDigitorumSplitPoint1Node; - AnyRefNode &Via6 = ..Seg.Foot.ExtensorDigitorumLongusViaNode3; - AnyRefNode &Ins = ..Seg.Foot.ExtensorDigitorumLongus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleViaPoint ExtensorDigitorumLongus4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorDigitorumLongus4Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorDigitorumLongus4Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorDigitorumLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorDigitorumLongusViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.ExtensorDigitorumLongusViaNode3; -// AnyRefNode &Via4 = ..Seg.Shank.ExtensorDigitorumLongusViaNode4; - //AnyRefNode &Via5 = ..Seg.Foot.ExtensorDigitorumLongusViaNode5; - AnyRefNode &Via7 = ..Seg.Foot. ExtensorDigitorumSplitPoint1Node; - AnyRefNode &Via6 = ..Seg.Foot.ExtensorDigitorumLongusViaNode4; - AnyRefNode &Ins = ..Seg.Foot.ExtensorDigitorumLongus4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint PeroneusLongus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.PeroneusLongus2Par; + AnyRefNode &Org = ...Seg.Shank.PeroneusLongus2Node; + AnyRefNode &Via1 = ...Seg.Shank.PeroneusLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PeroneusLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.PeroneusLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.PeroneusLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Foot.PeroneusLongusViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.PeroneusLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.PeroneusLongusViaNode7; + AnyRefNode &Ins = ...Seg.Foot.PeroneusLongus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ExtensorHallucisLongus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorHallucisLongus1Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorHallucisLongus1Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorHallucisLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorHallucisLongusViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.ExtensorHallucisLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Foot.ExtensorHallucisLongusViaNode4; -// AnyRefNode &Via5 = ..Seg.Foot.ExtensorHallucisLongusViaNode5; - // AnyRefNode &Via9 = ..Seg.Foot.ExtensorHallucisLongusViaNode9; - // AnyRefNode &Via10 = ..Seg.Foot.ExtensorHallucisLongusViaNode10; - // AnyRefNode &Via11 = ..Seg.Foot.ExtensorHallucisLongusViaNode11; - // AnyRefNode &Via12 = ..Seg.Foot.ExtensorHallucisLongusViaNode12; - // AnyRefNode &Via13 = ..Seg.Foot.ExtensorHallucisLongusViaNode13; - AnyRefNode &Ins = ..Seg.Foot.ExtensorHallucisLongus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint PeroneusLongus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.PeroneusLongus3Par; + AnyRefNode &Org = ...Seg.Shank.PeroneusLongus3Node; + AnyRefNode &Via1 = ...Seg.Shank.PeroneusLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PeroneusLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.PeroneusLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.PeroneusLongusViaNode4; + AnyRefNode &Via5 = ...Seg.Foot.PeroneusLongusViaNode5; + AnyRefNode &Via6 = ...Seg.Foot.PeroneusLongusViaNode6; + AnyRefNode &Via7 = ...Seg.Foot.PeroneusLongusViaNode7; + AnyRefNode &Ins = ...Seg.Foot.PeroneusLongus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; -AnyMuscleViaPoint ExtensorHallucisLongus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorHallucisLongus2Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorHallucisLongus2Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorHallucisLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorHallucisLongusViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.ExtensorHallucisLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Foot.ExtensorHallucisLongusViaNode4; - // AnyRefNode &Via5 = ..Seg.Foot.ExtensorHallucisLongusViaNode5; - AnyRefNode &Ins = ..Seg.Foot.ExtensorHallucisLongus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup ExtensorDigitorumLongus() = { + AnyMuscleViaPoint ExtensorDigitorumLongus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorDigitorumLongus1Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorDigitorumLongus1Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.ExtensorDigitorumLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.ExtensorDigitorumLongusViaNode4; + //AnyRefNode &Via5 = ...Seg.Foot.ExtensorDigitorumLongusViaNode5; //Commented out in TLEMsafe2.0-trunk as the node has been removed there. Needs review. + AnyRefNode &Via7 = ...Seg.Foot. ExtensorDigitorumSplitPoint1Node; + AnyRefNode &Via6 = ...Seg.Foot.ExtensorDigitorumLongusViaNode1; + AnyRefNode&Ins = ...Seg.Foot.ExtensorDigitorumLongus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint ExtensorDigitorumLongus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorDigitorumLongus2Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorDigitorumLongus2Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.ExtensorDigitorumLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.ExtensorDigitorumLongusViaNode4; + //AnyRefNode &Via5 = ...Seg.Foot.ExtensorDigitorumLongusViaNode5; //Commented out in TLEMsafe2.0-trunk as the node has been removed there. Needs review. + AnyRefNode &Via7 = ...Seg.Foot. ExtensorDigitorumSplitPoint1Node; + AnyRefNode &Via6 = ...Seg.Foot.ExtensorDigitorumLongusViaNode2; + AnyRefNode &Ins = ...Seg.Foot.ExtensorDigitorumLongus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint ExtensorDigitorumLongus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorDigitorumLongus3Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorDigitorumLongus3Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.ExtensorDigitorumLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.ExtensorDigitorumLongusViaNode4; + //AnyRefNode &Via5 = ...Seg.Foot.ExtensorDigitorumLongusViaNode5; //Commented out in TLEMsafe2.0-trunk as the node has been removed there. Needs review. + AnyRefNode &Via7 = ...Seg.Foot. ExtensorDigitorumSplitPoint1Node; + AnyRefNode &Via6 = ...Seg.Foot.ExtensorDigitorumLongusViaNode3; + AnyRefNode &Ins = ...Seg.Foot.ExtensorDigitorumLongus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint ExtensorDigitorumLongus4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorDigitorumLongus4Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorDigitorumLongus4Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorDigitorumLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorDigitorumLongusViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.ExtensorDigitorumLongusViaNode3; + // AnyRefNode &Via4 = ...Seg.Shank.ExtensorDigitorumLongusViaNode4; + //AnyRefNode &Via5 = ...Seg.Foot.ExtensorDigitorumLongusViaNode5; + AnyRefNode &Via7 = ...Seg.Foot. ExtensorDigitorumSplitPoint1Node; + AnyRefNode &Via6 = ...Seg.Foot.ExtensorDigitorumLongusViaNode4; + AnyRefNode &Ins = ...Seg.Foot.ExtensorDigitorumLongus4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; -AnyMuscleViaPoint ExtensorHallucisLongus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ExtensorHallucisLongus3Par; - AnyRefNode &Org = ..Seg.Shank.ExtensorHallucisLongus3Node; - AnyRefNode &Via1 = ..Seg.Shank.ExtensorHallucisLongusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.ExtensorHallucisLongusViaNode2; -// AnyRefNode &Via3 = ..Seg.Shank.ExtensorHallucisLongusViaNode3; - AnyRefNode &Via4 = ..Seg.Foot.ExtensorHallucisLongusViaNode4; - // AnyRefNode &Via5 = ..Seg.Foot.ExtensorHallucisLongusViaNode5; - AnyRefNode &Ins = ..Seg.Foot.ExtensorHallucisLongus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup ExtensorHallucisLongus() = { + AnyMuscleViaPoint ExtensorHallucisLongus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorHallucisLongus1Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorHallucisLongus1Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorHallucisLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorHallucisLongusViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.ExtensorHallucisLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Foot.ExtensorHallucisLongusViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.ExtensorHallucisLongusViaNode5; + // AnyRefNode &Via9 = ...Seg.Foot.ExtensorHallucisLongusViaNode9; + // AnyRefNode &Via10 = ...Seg.Foot.ExtensorHallucisLongusViaNode10; + // AnyRefNode &Via11 = ...Seg.Foot.ExtensorHallucisLongusViaNode11; + // AnyRefNode &Via12 = ...Seg.Foot.ExtensorHallucisLongusViaNode12; + // AnyRefNode &Via13 = ...Seg.Foot.ExtensorHallucisLongusViaNode13; + AnyRefNode &Ins = ...Seg.Foot.ExtensorHallucisLongus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint ExtensorHallucisLongus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorHallucisLongus2Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorHallucisLongus2Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorHallucisLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorHallucisLongusViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.ExtensorHallucisLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Foot.ExtensorHallucisLongusViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.ExtensorHallucisLongusViaNode5; + AnyRefNode &Ins = ...Seg.Foot.ExtensorHallucisLongus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint ExtensorHallucisLongus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ExtensorHallucisLongus3Par; + AnyRefNode &Org = ...Seg.Shank.ExtensorHallucisLongus3Node; + AnyRefNode &Via1 = ...Seg.Shank.ExtensorHallucisLongusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.ExtensorHallucisLongusViaNode2; + // AnyRefNode &Via3 = ...Seg.Shank.ExtensorHallucisLongusViaNode3; + AnyRefNode &Via4 = ...Seg.Foot.ExtensorHallucisLongusViaNode4; + // AnyRefNode &Via5 = ...Seg.Foot.ExtensorHallucisLongusViaNode5; + AnyRefNode &Ins = ...Seg.Foot.ExtensorHallucisLongus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; #endif // BM_FOOT_MODEL != _FOOT_MODEL_DEFAULT_ @@ -552,1363 +575,1390 @@ AnyMuscleViaPoint ExtensorHallucisLongus3 = { // The Rectus Femoris has its origin on the Pelvis and its insertion on the patella. // Also the Pelvis has been defined in the seg.any file. - - //VASTUS LATERALIS INFERIOR WRAPPING +MuscleGroup VastusLateralisInferior() = { + AnyMuscleShortestPath VastusLateralisInferior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisInferior1Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisInferior1Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisInferior1Node; + SPLine = { + StringMesh = 60; + AnyMatrix InitWrapPos = { + transf3D({0*.srf.Radius, ....Sign*1.4*.srf.Radius, 0.5*.srf.Length }, &.srf ) , + transf3D({1.4*.srf.Radius, ....Sign*0*.srf.Radius, 0.5*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + + + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath VastusLateralisInferior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisInferior1Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisInferior1Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisInferior1Node; - SPLine = { - StringMesh = 60; - AnyMatrix InitWrapPos = { - transf3D({0*.srf.Radius, ...Sign*1.4*.srf.Radius, 0.5*.srf.Length }, &.srf ) , - transf3D({1.4*.srf.Radius, ...Sign*0*.srf.Radius, 0.5*.srf.Length }, &.srf ) + AnyMuscleShortestPath VastusLateralisInferior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisInferior2Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisInferior2Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisInferior2Node; + SPLine = { + StringMesh = 60; + InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; }; - InitWrapPosVecArr = { &InitWrapPos}; - }; - - - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleShortestPath VastusLateralisInferior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisInferior2Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisInferior2Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisInferior2Node; - SPLine = { - StringMesh = 60; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusLateralisInferior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisInferior3Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisInferior3Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisInferior3Node; - SPLine = { - StringMesh = 60; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusLateralisInferior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisInferior3Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisInferior3Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisInferior3Node; + SPLine = { + StringMesh = 60; + InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusLateralisInferior4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisInferior4Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisInferior4Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisInferior4Node; - SPLine = { - StringMesh = 60; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusLateralisInferior4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisInferior4Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisInferior4Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisInferior4Node; + SPLine = { + StringMesh = 60; + InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusLateralisInferior5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisInferior5Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisInferior5Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisInferior5Node; - SPLine = { - StringMesh = 60; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusLateralisInferior5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisInferior5Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisInferior5Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisInferior5Node; + SPLine = { + StringMesh = 60; + InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusLateralisInferior6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisInferior6Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisInferior6Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisInferior6Node; - SPLine = { - StringMesh = 60; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath VastusLateralisInferior6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisInferior6Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisInferior6Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisInferior6Node; + SPLine = { + StringMesh = 60; + InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - //VASTUS LATERALIS SUPERIOR WRAPPING -AnyMuscleShortestPath VastusLateralisSuperior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisSuperior1Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisSuperior1Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisSuperior1Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; +MuscleGroup VastusLateralisSuperior() = { + AnyMuscleShortestPath VastusLateralisSuperior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisSuperior1Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisSuperior1Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisSuperior1Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusLateralisSuperior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusLateralisSuperior2Par; - AnyRefNode &Org = ..Seg.Thigh.VastusLateralisSuperior2Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusLateralisSuperior2Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusLateralisSuperior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusLateralisSuperior2Par; + AnyRefNode &Org = ...Seg.Thigh.VastusLateralisSuperior2Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusLateralisSuperior2Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - //VASTUS MEDIALIS INFERIOR WRAPPING - -AnyMuscleShortestPath VastusMedialisInferior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisInferior1Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisInferior1Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisInferior1Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; +MuscleGroup VastusMedialisInferior() = { + AnyMuscleShortestPath VastusMedialisInferior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisInferior1Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisInferior1Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisInferior1Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusMedialisInferior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisInferior2Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisInferior2Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisInferior2Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusMedialisInferior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisInferior2Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisInferior2Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisInferior2Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - //VASTUS MEDIALIS MID WRAPPING - -AnyMuscleShortestPath VastusMedialisMid1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisMid1Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisMid1Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisMid1Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; +MuscleGroup VastusMedialisMid() = { + AnyMuscleShortestPath VastusMedialisMid1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisMid1Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisMid1Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisMid1Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusMedialisMid2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisMid2Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisMid2Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisMid2Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusMedialisMid2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisMid2Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisMid2Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisMid2Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; //VASTUS MEDIALIS SUPERIOR WRAPPING - -AnyMuscleShortestPath VastusMedialisSuperior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisSuperior1Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisSuperior1Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisSuperior1Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; +MuscleGroup VastusMedialisSuperior() = { + AnyMuscleShortestPath VastusMedialisSuperior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisSuperior1Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisSuperior1Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisSuperior1Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusMedialisSuperior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisSuperior2Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisSuperior2Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisSuperior2Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusMedialisSuperior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisSuperior2Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisSuperior2Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisSuperior2Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusMedialisSuperior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisSuperior3Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisSuperior3Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisSuperior3Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusMedialisSuperior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisSuperior3Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisSuperior3Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisSuperior3Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusMedialisSuperior4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusMedialisSuperior4Par; - AnyRefNode &Org = ..Seg.Thigh.VastusMedialisSuperior4Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusMedialisSuperior4Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusMedialisSuperior4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusMedialisSuperior4Par; + AnyRefNode &Org = ...Seg.Thigh.VastusMedialisSuperior4Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusMedialisSuperior4Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - - //VASTUS INTERMEDIUS WRAPPING - -AnyMuscleShortestPath VastusIntermedius1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusIntermedius1Par; - AnyRefNode &Org = ..Seg.Thigh.VastusIntermedius1Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusIntermedius1Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; +MuscleGroup VastusIntermedius() = { + AnyMuscleShortestPath VastusIntermedius1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusIntermedius1Par; + AnyRefNode &Org = ...Seg.Thigh.VastusIntermedius1Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusIntermedius1Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusIntermedius2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusIntermedius2Par; - AnyRefNode &Org = ..Seg.Thigh.VastusIntermedius2Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusIntermedius2Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusIntermedius2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusIntermedius2Par; + AnyRefNode &Org = ...Seg.Thigh.VastusIntermedius2Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusIntermedius2Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusIntermedius3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusIntermedius3Par; - AnyRefNode &Org = ..Seg.Thigh.VastusIntermedius3Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusIntermedius3Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusIntermedius3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusIntermedius3Par; + AnyRefNode &Org = ...Seg.Thigh.VastusIntermedius3Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusIntermedius3Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusIntermedius4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusIntermedius4Par; - AnyRefNode &Org = ..Seg.Thigh.VastusIntermedius4Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusIntermedius4Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusIntermedius4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusIntermedius4Par; + AnyRefNode &Org = ...Seg.Thigh.VastusIntermedius4Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusIntermedius4Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusIntermedius5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusIntermedius5Par; - AnyRefNode &Org = ..Seg.Thigh.VastusIntermedius5Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusIntermedius5Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusIntermedius5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusIntermedius5Par; + AnyRefNode &Org = ...Seg.Thigh.VastusIntermedius5Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusIntermedius5Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath VastusIntermedius6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.VastusIntermedius6Par; - AnyRefNode &Org = ..Seg.Thigh.VastusIntermedius6Node; - AnySurface &srf = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.VastusIntermedius6Node; - SPLine = { - StringMesh = 65; - InitWrapPosVecArr = ..VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + AnyMuscleShortestPath VastusIntermedius6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.VastusIntermedius6Par; + AnyRefNode &Org = ...Seg.Thigh.VastusIntermedius6Node; + AnySurface &srf = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.VastusIntermedius6Node; + SPLine = { + StringMesh = 65; + InitWrapPosVecArr = ...VastusLateralisInferior.VastusLateralisInferior1.SPLine.InitWrapPosVecArr; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; //RECTUS FEMORIS WRAPPING - -AnyMuscleShortestPath RectusFemoris1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.RectusFemoris1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.RectusFemoris1Node; - AnySurface &srf1 = ..Seg.Thigh.RectusWrapSurf.cyl; - AnySurface &srf2 = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.RectusFemoris1Node; - SPLine = { - StringMesh = 75; - AnyMatrix InitWrapPos = { - transf3D({0.5*.srf1.Radius, 1.5*.srf1.Radius , ...Sign*0.5*.srf1.Radius}, &...Seg.Thigh.HipJoint), - transf3D({1.5*.srf1.Radius, 0 , ...Sign*0.5*.srf1.Radius}, &...Seg.Thigh.HipJoint), - transf3D({1*.srf2.Radius, ...Sign*1*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ) , - transf3D({1.4*.srf2.Radius, ...Sign*0*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ) +MuscleGroup RectusFemoris() = { + AnyMuscleShortestPath RectusFemoris1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.RectusFemoris1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.RectusFemoris1Node; + AnySurface &srf1 = ...Seg.Thigh.RectusWrapSurf.cyl; + AnySurface &srf2 = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.RectusFemoris1Node; + SPLine = { + StringMesh = 75; + AnyMatrix InitWrapPos = { + transf3D({0.5*.srf1.Radius, 1.5*.srf1.Radius , ....Sign*0.5*.srf1.Radius}, &....Seg.Thigh.HipJoint), + transf3D({1.5*.srf1.Radius, 0 , ....Sign*0.5*.srf1.Radius}, &....Seg.Thigh.HipJoint), + transf3D({1*.srf2.Radius, ....Sign*1*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ) , + transf3D({1.4*.srf2.Radius, ....Sign*0*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath RectusFemoris2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.RectusFemoris2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.RectusFemoris2Node; - AnySurface &srf1 = ..Seg.Thigh.RectusWrapSurf.cyl; - AnySurface &srf2 = ..Seg.Thigh.RectusVastiiWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Patella.RectusFemoris2Node; + AnyMuscleShortestPath RectusFemoris2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.RectusFemoris2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.RectusFemoris2Node; + AnySurface &srf1 = ...Seg.Thigh.RectusWrapSurf.cyl; + AnySurface &srf2 = ...Seg.Thigh.RectusVastiiWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Patella.RectusFemoris2Node; -SPLine = { - StringMesh = 75; - InitWrapPosVecArr = ..RectusFemoris1.SPLine.InitWrapPosVecArr; - }; + SPLine = { + StringMesh = 75; + InitWrapPosVecArr = ..RectusFemoris1.SPLine.InitWrapPosVecArr; + }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - - // End Quadriceps. // Start of Hamstrings - -AnyMuscleShortestPath Semitendinosus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Semitendinosus1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Semitendinosus1Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Via1 = ..Seg.Shank.SemitendinosusViaNode1; - AnyRefNode &Ins = ..Seg.Shank.Semitendinosus1Node; - - AnySurface &srf2 = ..Seg.Pelvis.Muscles.Semitendinosus1WrapSurf.cyl; - SPLine.StringMesh = 160; - - SPLine = - { - AnyMatrix InitWrapPos = { - transf3D({1.1*.srf2.Radius,...Sign*0.5*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ), - transf3D({0*.srf2.Radius, 1.3*...Sign*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ), - transf3D({-0.02*.srf.Radius, ...Sign*1.2*.srf.Radius, 0.25*.srf.Length }, &.srf ) - +MuscleGroup Semitendinosus() = { + AnyMuscleShortestPath Semitendinosus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Semitendinosus1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Semitendinosus1Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Via1 = ...Seg.Shank.SemitendinosusViaNode1; + AnyRefNode &Ins = ...Seg.Shank.Semitendinosus1Node; + + AnySurface &srf2 = ...Seg.Pelvis.Muscles.Semitendinosus1WrapSurf.cyl; + SPLine.StringMesh = 160; + + SPLine = + { + AnyMatrix InitWrapPos = { + transf3D({1.1*.srf2.Radius,....Sign*0.5*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ), + transf3D({0*.srf2.Radius, 1.3*....Sign*.srf2.Radius, 0.5*.srf2.Length }, &.srf2 ), + transf3D({-0.02*.srf.Radius, ....Sign*1.2*.srf.Radius, 0.25*.srf.Length }, &.srf ) + + }; + InitWrapPosVecArr = { &InitWrapPos, None}; }; - InitWrapPosVecArr = { &InitWrapPos, None}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; -AnyMuscleShortestPath Semimembranosus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Semimembranosus1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Semimembranosus1Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Shank.Semimembranosus1Node; - SPLine.StringMesh = 160; - SPLine = - { - AnyMatrix InitWrapPos = { - transf3D({-0.8*.srf.Radius, ...Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) +MuscleGroup Semimembranosus() = { + AnyMuscleShortestPath Semimembranosus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Semimembranosus1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Semimembranosus1Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Shank.Semimembranosus1Node; + SPLine.StringMesh = 160; + SPLine = + { + AnyMatrix InitWrapPos = { + transf3D({-0.8*.srf.Radius, ....Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleShortestPath Semimembranosus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Semimembranosus2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Semimembranosus2Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Shank.Semimembranosus2Node; + SPLine.StringMesh = 160; + SPLine.InitWrapPosVecArr = .Semimembranosus1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath Semimembranosus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Semimembranosus2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Semimembranosus2Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Shank.Semimembranosus2Node; - SPLine.StringMesh = 160; - SPLine.InitWrapPosVecArr = .Semimembranosus1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath Semimembranosus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Semimembranosus3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Semimembranosus3Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Shank.Semimembranosus3Node; - SPLine.StringMesh = 100; - SPLine.InitWrapPosVecArr = .Semimembranosus1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath Semimembranosus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Semimembranosus3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Semimembranosus3Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Shank.Semimembranosus3Node; + SPLine.StringMesh = 100; + SPLine.InitWrapPosVecArr = .Semimembranosus1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - -AnyMuscleShortestPath BicepsFemorisCaputLongum1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.BicepsFemorisCaputLongum1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.BicepsFemorisCaputLongum1Node; - AnyRefNode &Ins = ..Seg.Shank.BicepsFemorisCaputLongum1Node; - - AnySurface &srf=..Seg.Pelvis.Muscles.BicepsFemorisCaputLongumWrapSurf.cyl; - SPLine.StringMesh = 100; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({1*.srf.Radius,...Sign*0.5*.srf.Radius, 0.5*.srf.Length }, &.srf ), - transf3D({0*.srf.Radius, 1.3*...Sign*.srf.Radius, 0.5*.srf.Length }, &.srf ) +MuscleGroup BicepsFemorisCaputLongum() = { + AnyMuscleShortestPath BicepsFemorisCaputLongum1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.BicepsFemorisCaputLongum1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.BicepsFemorisCaputLongum1Node; + AnyRefNode &Ins = ...Seg.Shank.BicepsFemorisCaputLongum1Node; + + AnySurface &srf = ...Seg.Pelvis.Muscles.BicepsFemorisCaputLongumWrapSurf.cyl; + SPLine.StringMesh = 100; + SPLine ={ + AnyMatrix InitWrapPos = { + transf3D({1*.srf.Radius,....Sign*0.5*.srf.Radius, 0.5*.srf.Length }, &.srf ), + transf3D({0*.srf.Radius, 1.3*....Sign*.srf.Radius, 0.5*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; -AnyMuscleShortestPath BicepsFemorisCaputBreve1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.BicepsFemorisCaputBreve1Par; - AnyRefNode &Org = ..Seg.Thigh.BicepsFemorisCaputBreve1Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Shank.BicepsFemorisCaputBreve1Node; - SPLine.StringMesh = 75; - SPLine = - { - AnyMatrix InitWrapPos = { - transf3D({-0.2*.srf.Radius, ...Sign*1.2*.srf.Radius, 0.75*.srf.Length }, &.srf ) + +MuscleGroup BicepsFemorisCaputBreve() = { + AnyMuscleShortestPath BicepsFemorisCaputBreve1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.BicepsFemorisCaputBreve1Par; + AnyRefNode &Org = ...Seg.Thigh.BicepsFemorisCaputBreve1Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Shank.BicepsFemorisCaputBreve1Node; + SPLine.StringMesh = 75; + SPLine = + { + AnyMatrix InitWrapPos = { + transf3D({-0.2*.srf.Radius, ....Sign*1.2*.srf.Radius, 0.75*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath BicepsFemorisCaputBreve2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.BicepsFemorisCaputBreve2Par; - AnyRefNode &Org = ..Seg.Thigh.BicepsFemorisCaputBreve2Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Shank.BicepsFemorisCaputBreve2Node; - SPLine.StringMesh = 60; - SPLine.InitWrapPosVecArr = .BicepsFemorisCaputBreve1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleShortestPath BicepsFemorisCaputBreve2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.BicepsFemorisCaputBreve2Par; + AnyRefNode &Org = ...Seg.Thigh.BicepsFemorisCaputBreve2Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Shank.BicepsFemorisCaputBreve2Node; + SPLine.StringMesh = 60; + SPLine.InitWrapPosVecArr = .BicepsFemorisCaputBreve1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath BicepsFemorisCaputBreve3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.BicepsFemorisCaputBreve3Par; - AnyRefNode &Org = ..Seg.Thigh.BicepsFemorisCaputBreve3Node; - AnySurface &srf = ..Seg.Thigh.HamstringWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Shank.BicepsFemorisCaputBreve3Node; - SPLine.StringMesh = 60; - SPLine.InitWrapPosVecArr = .BicepsFemorisCaputBreve1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath BicepsFemorisCaputBreve3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.BicepsFemorisCaputBreve3Par; + AnyRefNode &Org = ...Seg.Thigh.BicepsFemorisCaputBreve3Node; + AnySurface &srf = ...Seg.Thigh.HamstringWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Shank.BicepsFemorisCaputBreve3Node; + SPLine.StringMesh = 60; + SPLine.InitWrapPosVecArr = .BicepsFemorisCaputBreve1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - - // End of Hamstrings - // Start hip muscles - - -AnyMuscleViaPoint Sartorius1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Sartorius1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Sartorius1Node; - //AnyRefNode &Via1 = ..Seg.Thigh.SartoriusVia1Node; - AnyRefNode &Via2 = ..Seg.Thigh.SartoriusVia2Node; - AnyRefNode &Via3 = ..Seg.Thigh.SartoriusVia3Node; - AnyRefNode &Via4 = ..Seg.Thigh.SartoriusVia4Node; - AnyRefNode &Via5 = ..Seg.Thigh.SartoriusVia5Node; - AnyRefNode &Via6 = ..Seg.Thigh.SartoriusVia6Node; - AnyRefNode &Via7 = ..Seg.Shank.SartoriusVia1Node; - AnyRefNode &Via8 = ..Seg.Shank.SartoriusVia2Node; - AnyRefNode &Via9 = ..Seg.Shank.SartoriusVia3Node; - AnyRefNode &Ins = ..Seg.Shank.Sartorius1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; +MuscleGroup Sartorius() = { + AnyMuscleViaPoint Sartorius1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Sartorius1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Sartorius1Node; + //AnyRefNode &Via1 = ...Seg.Thigh.SartoriusVia1Node; + AnyRefNode &Via2 = ...Seg.Thigh.SartoriusVia2Node; + AnyRefNode &Via3 = ...Seg.Thigh.SartoriusVia3Node; + AnyRefNode &Via4 = ...Seg.Thigh.SartoriusVia4Node; + AnyRefNode &Via5 = ...Seg.Thigh.SartoriusVia5Node; + AnyRefNode &Via6 = ...Seg.Thigh.SartoriusVia6Node; + AnyRefNode &Via7 = ...Seg.Shank.SartoriusVia1Node; + AnyRefNode &Via8 = ...Seg.Shank.SartoriusVia2Node; + AnyRefNode &Via9 = ...Seg.Shank.SartoriusVia3Node; + AnyRefNode &Ins = ...Seg.Shank.Sartorius1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - - - -AnyMuscleShortestPath IliacusLateralis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.IliacusLateralis1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.IliacusLateralis1Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.IliacusLateralisViaNode1; - AnySurface &srf = ..Seg.Thigh.IliacusWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Thigh.Iliopsoas3Node; - SPLine = { - StringMesh = 80; - AnyMatrix InitWrapPos = { - transf3D({...Sign*0.8*.srf.Radius, 0.8*.srf.Radius, 1.2*.srf.Length }, &.srf ) , - transf3D({...Sign*0*.srf.Radius, 1.2*.srf.Radius, 1*.srf.Length }, &.srf ) , - transf3D({...Sign*(-1)*0.8*.srf.Radius, 0.8*.srf.Radius, 0.6*.srf.Length }, &.srf ) +MuscleGroup IliacusLateralis() = { + AnyMuscleShortestPath IliacusLateralis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.IliacusLateralis1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.IliacusLateralis1Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.IliacusLateralisViaNode1; + AnySurface &srf = ...Seg.Thigh.IliacusWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Thigh.Iliopsoas3Node; + SPLine = { + StringMesh = 80; + AnyMatrix InitWrapPos = { + transf3D({....Sign*0.8*.srf.Radius, 0.8*.srf.Radius, 1.2*.srf.Length }, &.srf ) , + transf3D({....Sign*0*.srf.Radius, 1.2*.srf.Radius, 1*.srf.Length }, &.srf ) , + transf3D({....Sign*(-1)*0.8*.srf.Radius, 0.8*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = {None, &InitWrapPos}; }; - InitWrapPosVecArr = {None, &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - - -AnyMuscleShortestPath IliacusLateralis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.IliacusLateralis2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.IliacusLateralis2Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.IliacusLateralisViaNode2; - AnySurface &srf = ..Seg.Thigh.IliacusWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Thigh.Iliopsoas3Node; - SPLine.StringMesh = .IliacusLateralis1.SPLine.StringMesh ; - SPLine.InitWrapPosVecArr = .IliacusLateralis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - - - -AnyMuscleShortestPath IliacusMid1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.IliacusMid1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.IliacusMid1Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.IliacusMidViaNode1; - AnySurface &srf = ..Seg.Thigh.IliacusWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Thigh.Iliopsoas2Node; - SPLine.StringMesh = .IliacusLateralis1.SPLine.StringMesh ; - SPLine.InitWrapPosVecArr = .IliacusLateralis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - - -AnyMuscleShortestPath IliacusMid2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.IliacusMid2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.IliacusMid2Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.IliacusMidViaNode2; - AnySurface &srf = ..Seg.Thigh.IliacusWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Thigh.Iliopsoas2Node; - SPLine.StringMesh = 90; - SPLine.InitWrapPosVecArr = .IliacusLateralis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath IliacusLateralis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.IliacusLateralis2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.IliacusLateralis2Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.IliacusLateralisViaNode2; + AnySurface &srf = ...Seg.Thigh.IliacusWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Thigh.Iliopsoas3Node; + SPLine.StringMesh = .IliacusLateralis1.SPLine.StringMesh ; + SPLine.InitWrapPosVecArr = ..IliacusLateralis.IliacusLateralis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup IliacusMid() = { + AnyMuscleShortestPath IliacusMid1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.IliacusMid1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.IliacusMid1Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.IliacusMidViaNode1; + AnySurface &srf = ...Seg.Thigh.IliacusWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Thigh.Iliopsoas2Node; + SPLine.StringMesh = ..IliacusLateralis.IliacusLateralis1.SPLine.StringMesh ; + SPLine.InitWrapPosVecArr = ..IliacusLateralis.IliacusLateralis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleShortestPath IliacusMedialis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.IliacusMedialis1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.IliacusMedialis1Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.IliacusMedialisViaNode2; - AnySurface &srf = ..Seg.Thigh.IliacusWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Thigh.Iliopsoas1Node; - SPLine.StringMesh = .IliacusLateralis1.SPLine.StringMesh ; - SPLine.InitWrapPosVecArr = .IliacusLateralis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath IliacusMid2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.IliacusMid2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.IliacusMid2Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.IliacusMidViaNode2; + AnySurface &srf = ...Seg.Thigh.IliacusWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Thigh.Iliopsoas2Node; + SPLine.StringMesh = 90; + SPLine.InitWrapPosVecArr = ..IliacusLateralis.IliacusLateralis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup IliacusMedialis() = { + AnyMuscleShortestPath IliacusMedialis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.IliacusMedialis1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.IliacusMedialis1Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.IliacusMedialisViaNode2; + AnySurface &srf = ...Seg.Thigh.IliacusWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Thigh.Iliopsoas1Node; + SPLine.StringMesh = ..IliacusLateralis.IliacusLateralis1.SPLine.StringMesh ; + SPLine.InitWrapPosVecArr = ..IliacusLateralis.IliacusLateralis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; - -AnyMuscleShortestPath IliacusMedialis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.IliacusMedialis2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.IliacusMedialis2Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.IliacusMedialisViaNode1; - AnySurface &srf = ..Seg.Thigh.IliacusWrapSurf.cyl; - AnyRefNode &Ins = ..Seg.Thigh.Iliopsoas1Node; - SPLine.StringMesh = 90; - SPLine.InitWrapPosVecArr = .IliacusLateralis1.SPLine.InitWrapPosVecArr; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleShortestPath IliacusMedialis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.IliacusMedialis2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.IliacusMedialis2Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.IliacusMedialisViaNode1; + AnySurface &srf = ...Seg.Thigh.IliacusWrapSurf.cyl; + AnyRefNode &Ins = ...Seg.Thigh.Iliopsoas1Node; + SPLine.StringMesh = 90; + SPLine.InitWrapPosVecArr = ..IliacusLateralis.IliacusLateralis1.SPLine.InitWrapPosVecArr; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup PsoasMajor(searchString="..TrunkMuscles.PsoasMajor.*") = { + AnyMuscle &PsoasMajor_PMT12I_TM = ..TrunkMuscles.PsoasMajor.PMT12I_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML1I_TM = ..TrunkMuscles.PsoasMajor.PML1I_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML1T_TM = ..TrunkMuscles.PsoasMajor.PML1T_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML2I_TM= ..TrunkMuscles.PsoasMajor.PML2I_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML2T_TM = ..TrunkMuscles.PsoasMajor.PML2T_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML3I_TM = ..TrunkMuscles.PsoasMajor.PML3I_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML3T_TM = ..TrunkMuscles.PsoasMajor.PML3T_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML4I_TM = ..TrunkMuscles.PsoasMajor.PML4I_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML4T_TM = ..TrunkMuscles.PsoasMajor.PML4T_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML5_TM = ..TrunkMuscles.PsoasMajor.PML5_TM;//< Psoas muscles are created by the Trunk model + AnyMuscle &PsoasMajor_PML5T_TM = ..TrunkMuscles.PsoasMajor.PML5T_TM;//< Psoas muscles are created by the Trunk model +}; + +MuscleGroup GluteusMinimus = { + AnyMuscleViaPoint GluteusMinimusAnterior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMinimusAnterior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMinimusAnterior1Node; + AnyRefNode &Via1 = ...Seg.Thigh.GluteusMinimusAnterior1Via; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMinimusAnterior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscle &PsoasMajor_PMT12I_TM = .TrunkMuscles.PsoasMajor.PMT12I_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML1I_TM = .TrunkMuscles.PsoasMajor.PML1I_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML1T_TM = .TrunkMuscles.PsoasMajor.PML1T_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML2I_TM= .TrunkMuscles.PsoasMajor.PML2I_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML2T_TM = .TrunkMuscles.PsoasMajor.PML2T_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML3I_TM = .TrunkMuscles.PsoasMajor.PML3I_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML3T_TM = .TrunkMuscles.PsoasMajor.PML3T_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML4I_TM = .TrunkMuscles.PsoasMajor.PML4I_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML4T_TM = .TrunkMuscles.PsoasMajor.PML4T_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML5_TM = .TrunkMuscles.PsoasMajor.PML5_TM;//< Psoas muscles are created by the Trunk model -AnyMuscle &PsoasMajor_PML5T_TM = .TrunkMuscles.PsoasMajor.PML5T_TM;//< Psoas muscles are created by the Trunk model - - -AnyMuscleViaPoint GluteusMinimusAnterior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMinimusAnterior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMinimusAnterior1Node; - AnyRefNode &Via1 = ..Seg.Thigh.GluteusMinimusAnterior1Via; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMinimusAnterior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint GluteusMinimusMid1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMinimusMid1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMinimusMid1Node; - AnyRefNode &Via1 = ..Seg.Thigh.GluteusMinimusMid1Via; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMinimusMid1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMinimusMid1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMinimusMid1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMinimusMid1Node; + AnyRefNode &Via1 = ...Seg.Thigh.GluteusMinimusMid1Via; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMinimusMid1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMinimusPosterior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMinimusPosterior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMinimusPosterior1Node; - AnyRefNode &Via1 = ..Seg.Thigh.GluteusMinimusPosterior1Via; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMinimusPosterior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint GluteusMinimusPosterior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMinimusPosterior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMinimusPosterior1Node; + AnyRefNode &Via1 = ...Seg.Thigh.GluteusMinimusPosterior1Via; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMinimusPosterior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint GluteusMediusAnterior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusAnterior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusAnterior1Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusAnterior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup GluteusMediusAnterior = { + AnyMuscleViaPoint GluteusMediusAnterior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusAnterior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusAnterior1Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusAnterior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusAnterior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusAnterior2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusAnterior2Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusAnterior2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusAnterior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusAnterior2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusAnterior2Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusAnterior2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusAnterior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusAnterior3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusAnterior3Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusAnterior3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusAnterior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusAnterior3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusAnterior3Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusAnterior3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusAnterior4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusAnterior4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusAnterior4Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusAnterior4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusAnterior4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusAnterior4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusAnterior4Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusAnterior4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusAnterior5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusAnterior5Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusAnterior5Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusAnterior5Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusAnterior5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusAnterior5Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusAnterior5Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusAnterior5Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusAnterior6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusAnterior6Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusAnterior6Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusAnterior6Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint GluteusMediusAnterior6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusAnterior6Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusAnterior6Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusAnterior6Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint GluteusMediusPosterior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusPosterior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusPosterior1Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusPosterior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup GluteusMediusPosterior = { + AnyMuscleViaPoint GluteusMediusPosterior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusPosterior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusPosterior1Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusPosterior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusPosterior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusPosterior2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusPosterior2Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusPosterior2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusPosterior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusPosterior2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusPosterior2Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusPosterior2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusPosterior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusPosterior3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusPosterior3Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusPosterior3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusPosterior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusPosterior3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusPosterior3Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusPosterior3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusPosterior4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusPosterior4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusPosterior4Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusPosterior4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusPosterior4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusPosterior4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusPosterior4Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusPosterior4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusPosterior5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusPosterior5Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusPosterior5Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusPosterior5Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint GluteusMediusPosterior5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusPosterior5Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusPosterior5Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusPosterior5Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GluteusMediusPosterior6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMediusPosterior6Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMediusPosterior6Node; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMediusPosterior6Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint GluteusMediusPosterior6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMediusPosterior6Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMediusPosterior6Node; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMediusPosterior6Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - - -AnyMuscleShortestPath GluteusMaximusSuperior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusSuperior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMaximusSuperior1Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior1.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusSuperior1Node; - SPLine = { - StringMesh = 15; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) - - +MuscleGroup GluteusMaximusSuperior = { + AnyMuscleShortestPath GluteusMaximusSuperior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusSuperior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMaximusSuperior1Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior1.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusSuperior1Node; + SPLine = { + StringMesh = 15; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + + + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath GluteusMaximusSuperior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusSuperior2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMaximusSuperior2Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior2.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusSuperior2Node; - SPLine = { - StringMesh = 15; - - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusSuperior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusSuperior2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMaximusSuperior2Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior2.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusSuperior2Node; + SPLine = { + StringMesh = 15; + + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath GluteusMaximusSuperior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusSuperior3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMaximusSuperior3Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior3.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusSuperior3Node; - SPLine = { - StringMesh = 15; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign* 0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusSuperior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusSuperior3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMaximusSuperior3Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior3.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusSuperior3Node; + SPLine = { + StringMesh = 15; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign* 0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath GluteusMaximusSuperior4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusSuperior4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMaximusSuperior4Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior4.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusSuperior4Node; - SPLine = { - StringMesh = 15; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusSuperior4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusSuperior4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMaximusSuperior4Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior4.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusSuperior4Node; + SPLine = { + StringMesh = 15; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath GluteusMaximusSuperior5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusSuperior5Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMaximusSuperior5Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior5.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusSuperior5Node; - SPLine = { - StringMesh = 15; - AnyMatrix InitWrapPos = { - transf3D({ 1.1*.srf.Radius, ...Sign*0*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusSuperior5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusSuperior5Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMaximusSuperior5Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior5.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusSuperior5Node; + SPLine = { + StringMesh = 15; + AnyMatrix InitWrapPos = { + transf3D({ 1.1*.srf.Radius, ....Sign*0*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -AnyMuscleShortestPath GluteusMaximusSuperior6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusSuperior6Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GluteusMaximusSuperior6Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior6.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusSuperior6Node; - SPLine = { - StringMesh = 15; - AnyMatrix InitWrapPos = { - transf3D({ 1.1*.srf.Radius, ...Sign*0*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusSuperior6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusSuperior6Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GluteusMaximusSuperior6Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Superior6.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusSuperior6Node; + SPLine = { + StringMesh = 15; + AnyMatrix InitWrapPos = { + transf3D({ 1.1*.srf.Radius, ....Sign*0*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; }; - InitWrapPosVecArr = { &InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; -AnyMuscleShortestPath GluteusMaximusInferior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusInferior1Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior1Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior1.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusInferior1Node; - SPLine = { - StringMesh = 15; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) +MuscleGroup GluteusMaximusInferior = { + AnyMuscleShortestPath GluteusMaximusInferior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusInferior1Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior1Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior1.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusInferior1Node; + SPLine = { + StringMesh = 15; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - InitWrapPosVecArr = { &InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; -}; -AnyMuscleShortestPath GluteusMaximusInferior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusInferior2Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior2Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior2.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusInferior2Node; - SPLine = { - StringMesh = 25; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius,...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusInferior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusInferior2Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior2Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior2.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusInferior2Node; + SPLine = { + StringMesh = 25; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - InitWrapPosVecArr = { &InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; -}; -AnyMuscleShortestPath GluteusMaximusInferior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusInferior3Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior3Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior3.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusInferior3Node; - SPLine = { - StringMesh = 25; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusInferior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusInferior3Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior3Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior3.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusInferior3Node; + SPLine = { + StringMesh = 25; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - InitWrapPosVecArr = { &InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; -}; -AnyMuscleShortestPath GluteusMaximusInferior4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusInferior4Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior4Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior4.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusInferior4Node; - SPLine = { - StringMesh = 30; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusInferior4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusInferior4Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior4Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior4.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusInferior4Node; + SPLine = { + StringMesh = 30; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - InitWrapPosVecArr = { &InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; -}; -AnyMuscleShortestPath GluteusMaximusInferior5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusInferior5Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior5Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior5.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusInferior5Node; - SPLine = { - StringMesh = 30; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ -0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ -.srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + AnyMuscleShortestPath GluteusMaximusInferior5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusInferior5Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior5Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior5.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusInferior5Node; + SPLine = { + StringMesh = 30; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ -0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ -.srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - InitWrapPosVecArr = { &InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; -}; -AnyMuscleShortestPath GluteusMaximusInferior6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GluteusMaximusInferior6Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior6Node; - AnySurface &srf = ..Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior6.cyl; - AnyRefNode &Ins = ..Seg.Thigh.GluteusMaximusInferior6Node; - SPLine = { - StringMesh = 30; - AnyMatrix InitWrapPos = { - transf3D({ .srf.Radius, ...Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , - transf3D({ 0.78*.srf.Radius, ...Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), - transf3D({ 0.37*.srf.Radius, ...Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + AnyMuscleShortestPath GluteusMaximusInferior6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GluteusMaximusInferior6Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.GluteusMaximusInferior6Node; + AnySurface &srf = ...Seg.Pelvis.Muscles.GlueteusMaximusWrapSurfaces.Inferior6.cyl; + AnyRefNode &Ins = ...Seg.Thigh.GluteusMaximusInferior6Node; + SPLine = { + StringMesh = 30; + AnyMatrix InitWrapPos = { + transf3D({ .srf.Radius, ....Sign*0.38*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + transf3D({ 0.78*.srf.Radius, ....Sign*0.78*.srf.Radius, 0.6*.srf.Length }, &.srf ), + transf3D({ 0.37*.srf.Radius, ....Sign*1.04*.srf.Radius, 0.6*.srf.Length }, &.srf ) , + }; + InitWrapPosVecArr = { &InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; }; - InitWrapPosVecArr = { &InitWrapPos}; -}; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; }; +MuscleGroup TensorFasciaeLatae = { + AnyMuscleViaPoint TensorFasciaeLatae1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TensorFasciaeLatae1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.TensorFasciaeLatae1Node; + AnyRefNode &Via = ...Seg.Thigh.TensorFasciaeLatae1ViaNode; + AnyRefNode &Ins = ...Seg.Shank.TensorFasciaeLatae1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint TensorFasciaeLatae1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TensorFasciaeLatae1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.TensorFasciaeLatae1Node; - AnyRefNode &Via = ..Seg.Thigh.TensorFasciaeLatae1ViaNode; - AnyRefNode &Ins = ..Seg.Shank.TensorFasciaeLatae1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint TensorFasciaeLatae2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.TensorFasciaeLatae2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.TensorFasciaeLatae2Node; - AnyRefNode &Via = ..Seg.Thigh.TensorFasciaeLatae2ViaNode; - AnyRefNode &Ins = ..Seg.Shank.TensorFasciaeLatae2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint Piriformis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Piriformis1Par; - AnyRefNode &Org = ..Seg.Sacrum.LegAttachmentNodes.Piriformis1Node; - AnyRefNode &Ins = ..Seg.Thigh.Piriformis1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint Gracilis1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Gracilis1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Gracilis1Node; - AnyRefNode &Via1 = ..Seg.Shank.GracilisViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.GracilisViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.GracilisViaNode3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint TensorFasciaeLatae2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TensorFasciaeLatae2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.TensorFasciaeLatae2Node; + AnyRefNode &Via = ...Seg.Thigh.TensorFasciaeLatae2ViaNode; + AnyRefNode &Ins = ...Seg.Shank.TensorFasciaeLatae2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint Gracilis2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Gracilis2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Gracilis2Node; - AnyRefNode &Via1 = ..Seg.Shank.GracilisViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.GracilisViaNode2; - AnyRefNode &Via3 = ..Seg.Shank.GracilisViaNode3; - AnyRefNode &Ins = ..Seg.Shank.Gracilis2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; +MuscleGroup Piriformis = { + AnyMuscleViaPoint Piriformis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Piriformis1Par; + AnyRefNode &Org = ...Seg.Sacrum.LegAttachmentNodes.Piriformis1Node; + AnyRefNode &Ins = ...Seg.Thigh.Piriformis1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup Gracilis = { + AnyMuscleViaPoint Gracilis1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Gracilis1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Gracilis1Node; + AnyRefNode &Via1 = ...Seg.Shank.GracilisViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.GracilisViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.GracilisViaNode3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorLongus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorLongus1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorLongus1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorLongus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint Gracilis2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Gracilis2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Gracilis2Node; + AnyRefNode &Via1 = ...Seg.Shank.GracilisViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.GracilisViaNode2; + AnyRefNode &Via3 = ...Seg.Shank.GracilisViaNode3; + AnyRefNode &Ins = ...Seg.Shank.Gracilis2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint AdductorLongus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorLongus2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorLongus2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorLongus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup AdductorLongus = { + AnyMuscleViaPoint AdductorLongus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorLongus1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorLongus1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorLongus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorLongus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorLongus3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorLongus3Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorLongus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorLongus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorLongus2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorLongus2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorLongus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorLongus4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorLongus4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorLongus4Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorLongus4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorLongus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorLongus3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorLongus3Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorLongus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorLongus5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorLongus5Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorLongus5Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorLongus5Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorLongus4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorLongus4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorLongus4Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorLongus4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorLongus6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorLongus6Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorLongus6Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorLongus6Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorLongus5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorLongus5Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorLongus5Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorLongus5Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -//muscle changed to insert on thigh -AnyMuscleViaPoint AdductorMagnusDistal1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusDistal1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusDistal1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusDistal1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint AdductorLongus6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorLongus6Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorLongus6Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorLongus6Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup AdductorMagnusDistal = { + //muscle changed to insert on thigh + AnyMuscleViaPoint AdductorMagnusDistal1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusDistal1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusDistal1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusDistal1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -//muscle changed to insert on thigh -AnyMuscleViaPoint AdductorMagnusDistal2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusDistal2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusDistal2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusDistal2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; -//muscle changed to insert on thigh -AnyMuscleViaPoint AdductorMagnusDistal3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusDistal3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusDistal3Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusDistal3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //muscle changed to insert on thigh + AnyMuscleViaPoint AdductorMagnusDistal2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusDistal2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusDistal2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusDistal2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + //muscle changed to insert on thigh + AnyMuscleViaPoint AdductorMagnusDistal3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusDistal3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusDistal3Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusDistal3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup AdductorMagnusMid = { + AnyMuscleViaPoint AdductorMagnusMid1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusMid1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusMid1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusMid1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusMid1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusMid1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusMid1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusMid1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint AdductorMagnusMid2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusMid2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusMid2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusMid2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorMagnusMid2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusMid2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusMid2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusMid2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusMid3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusMid3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusMid3Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusMid3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorMagnusMid3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusMid3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusMid3Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusMid3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusMid4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusMid4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusMid4Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusMid4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorMagnusMid4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusMid4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusMid4Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusMid4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusMid5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusMid5Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusMid5Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusMid5Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorMagnusMid5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusMid5Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusMid5Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusMid5Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusMid6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusMid6Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusMid6Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusMid6Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint AdductorMagnusMid6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusMid6Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusMid6Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusMid6Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint AdductorMagnusProximal1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusProximal1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusProximal1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusProximal1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup AdductorMagnusProximal = { + AnyMuscleViaPoint AdductorMagnusProximal1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusProximal1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusProximal1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusProximal1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusProximal2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusProximal2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusProximal2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusProximal2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorMagnusProximal2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusProximal2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusProximal2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusProximal2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusProximal3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusProximal3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusProximal3Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusProximal3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint AdductorMagnusProximal3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusProximal3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusProximal3Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusProximal3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorMagnusProximal4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorMagnusProximal4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorMagnusProximal4Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorMagnusProximal4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint AdductorMagnusProximal4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorMagnusProximal4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorMagnusProximal4Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorMagnusProximal4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint AdductorBrevisProximal1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorBrevisProximal1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorBrevisProximal1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorBrevisProximal1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup AdductorBrevisProximal = { + AnyMuscleViaPoint AdductorBrevisProximal1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorBrevisProximal1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorBrevisProximal1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorBrevisProximal1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorBrevisProximal2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorBrevisProximal2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorBrevisProximal2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorBrevisProximal2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint AdductorBrevisProximal2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorBrevisProximal2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorBrevisProximal2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorBrevisProximal2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint AdductorBrevisMid1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorBrevisMid1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorBrevisMid1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorBrevisMid1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup AdductorBrevisMid = { + AnyMuscleViaPoint AdductorBrevisMid1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorBrevisMid1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorBrevisMid1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorBrevisMid1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorBrevisMid2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorBrevisMid2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorBrevisMid2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorBrevisMid2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint AdductorBrevisMid2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorBrevisMid2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorBrevisMid2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorBrevisMid2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint AdductorBrevisDistal1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorBrevisDistal1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorBrevisDistal1Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorBrevisDistal1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup AdductorBrevisDistal = { + AnyMuscleViaPoint AdductorBrevisDistal1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorBrevisDistal1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorBrevisDistal1Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorBrevisDistal1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint AdductorBrevisDistal2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.AdductorBrevisDistal2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.AdductorBrevisDistal2Node; - AnyRefNode &Ins = ..Seg.Thigh.AdductorBrevisDistal2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint AdductorBrevisDistal2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.AdductorBrevisDistal2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.AdductorBrevisDistal2Node; + AnyRefNode &Ins = ...Seg.Thigh.AdductorBrevisDistal2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint GemellusInferior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GemellusInferior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GemellusInferior1Node; - AnyRefNode &Ins = ..Seg.Thigh.GemellusInferior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup Gemellus = { + AnyMuscleViaPoint GemellusInferior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GemellusInferior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GemellusInferior1Node; + AnyRefNode &Ins = ...Seg.Thigh.GemellusInferior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint GemellusSuperior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.GemellusSuperior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.GemellusSuperior1Node; - AnyRefNode &Ins = ..Seg.Thigh.GemellusSuperior1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint GemellusSuperior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.GemellusSuperior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.GemellusSuperior1Node; + AnyRefNode &Ins = ...Seg.Thigh.GemellusSuperior1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup ObturatorExternusSuperior = { + AnyMuscleViaPoint ObturatorExternusSuperior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorExternusSuperior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorExternusSuperior1Node; + AnyRefNode &Via1 = ...Seg.Thigh.ObturatorExternusVia1Node; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorExternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint ObturatorExternusSuperior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorExternusSuperior2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorExternusSuperior2Node; + AnyRefNode &Via1 = ...Seg.Thigh.ObturatorExternusVia1Node; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorExternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorExternusSuperior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorExternusSuperior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorExternusSuperior1Node; - AnyRefNode &Via1 = ..Seg.Thigh.ObturatorExternusVia1Node; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorExternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint ObturatorExternusSuperior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorExternusSuperior2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorExternusSuperior2Node; - AnyRefNode &Via1 = ..Seg.Thigh.ObturatorExternusVia1Node; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorExternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint ObturatorExternusSuperior3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorExternusSuperior3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorExternusSuperior3Node; - AnyRefNode &Via1 = ..Seg.Thigh.ObturatorExternusVia1Node; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorExternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint ObturatorExternusSuperior3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorExternusSuperior3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorExternusSuperior3Node; + AnyRefNode &Via1 = ...Seg.Thigh.ObturatorExternusVia1Node; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorExternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint ObturatorExternusInferior1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorExternusInferior1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorExternusInferior1Node; - AnyRefNode &Via1 = ..Seg.Thigh.ObturatorExternusVia1Node; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorExternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup ObturatorExternusInferior = { + AnyMuscleViaPoint ObturatorExternusInferior1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorExternusInferior1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorExternusInferior1Node; + AnyRefNode &Via1 = ...Seg.Thigh.ObturatorExternusVia1Node; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorExternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorExternusInferior2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorExternusInferior2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorExternusInferior2Node; - AnyRefNode &Via1 = ..Seg.Thigh.ObturatorExternusVia1Node; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorExternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint ObturatorExternusInferior2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorExternusInferior2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorExternusInferior2Node; + AnyRefNode &Via1 = ...Seg.Thigh.ObturatorExternusVia1Node; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorExternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint ObturatorInternus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorInternus1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorInternus1Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.ObturatorInternusViaNode1; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorInternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup ObturatorInternus = { + AnyMuscleViaPoint ObturatorInternus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorInternus1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorInternus1Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.ObturatorInternusViaNode1; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorInternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorInternus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorInternus2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorInternus2Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.ObturatorInternusViaNode1; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorInternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint ObturatorInternus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorInternus2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorInternus2Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.ObturatorInternusViaNode1; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorInternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorInternus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorInternus3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorInternus3Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.ObturatorInternusViaNode1; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorInternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint ObturatorInternus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorInternus3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorInternus3Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.ObturatorInternusViaNode1; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorInternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorInternus4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorInternus4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorInternus4Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.ObturatorInternusViaNode1; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorInternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint ObturatorInternus4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorInternus4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorInternus4Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.ObturatorInternusViaNode1; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorInternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorInternus5 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorInternus5Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorInternus5Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.ObturatorInternusViaNode1; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorInternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint ObturatorInternus5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorInternus5Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorInternus5Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.ObturatorInternusViaNode1; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorInternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint ObturatorInternus6 = { - AnyMuscleModel &MusMdl = ..MuscleModels.ObturatorInternus6Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.ObturatorInternus6Node; - AnyRefNode &Via1 = ..Seg.Pelvis.Muscles.ObturatorInternusViaNode1; - AnyRefNode &Ins = ..Seg.Thigh.ObturatorInternus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint ObturatorInternus6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.ObturatorInternus6Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.ObturatorInternus6Node; + AnyRefNode &Via1 = ...Seg.Pelvis.Muscles.ObturatorInternusViaNode1; + AnyRefNode &Ins = ...Seg.Thigh.ObturatorInternus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; +MuscleGroup Pectineus = { + AnyMuscleViaPoint Pectineus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pectineus1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Pectineus1Node; + AnyRefNode &Via = ...Seg.Pelvis.Muscles.Pectineus1ViaNode; + AnyRefNode &Ins = ...Seg.Thigh.Pectineus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint Pectineus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pectineus2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Pectineus2Node; + AnyRefNode &Ins = ...Seg.Thigh.Pectineus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + AnyMuscleViaPoint Pectineus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pectineus3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Pectineus3Node; + AnyRefNode &Ins = ...Seg.Thigh.Pectineus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint Pectineus1 = -{ - AnyMuscleModel &MusMdl = ..MuscleModels.Pectineus1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Pectineus1Node; - AnyRefNode &Via = ..Seg.Pelvis.Muscles.Pectineus1ViaNode; - AnyRefNode &Ins = ..Seg.Thigh.Pectineus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint Pectineus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pectineus2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Pectineus2Node; - AnyRefNode &Ins = ..Seg.Thigh.Pectineus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint Pectineus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pectineus3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Pectineus3Node; - AnyRefNode &Ins = ..Seg.Thigh.Pectineus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; - -AnyMuscleViaPoint Pectineus4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Pectineus4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.Pectineus4Node; - AnyRefNode &Ins = ..Seg.Thigh.Pectineus4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint Pectineus4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Pectineus4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.Pectineus4Node; + AnyRefNode &Ins = ...Seg.Thigh.Pectineus4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ -AnyMuscleShortestPath Plantaris1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Plantaris1Par; - AnyRefNode &Org = ..Seg.Thigh.Plantaris1Node; - AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl; - AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl; - AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl; - AnyRefNode &Via1 =..Seg.Foot.Plantaris1SuperiorNode; - AnyRefNode &Ins = ..Seg.Foot.Plantaris1Node; - SPLine = { - StringMesh = 30; - AnyMatrix InitWrapPos = { - transf3D({1.1*.srf.Radius, ...Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) , - transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) , - transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 ) - }; - InitWrapPosVecArr = {&InitWrapPos, None}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + MuscleGroup Plantaris = { + AnyMuscleShortestPath Plantaris1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Plantaris1Par; + AnyRefNode &Org = ...Seg.Thigh.Plantaris1Node; + AnySurface &srf = ...Seg.Thigh.GastroWrapSurf.cyl; + AnySurface &srf1 = ...Seg.Shank.AchillesWrapping1.Cyl; + AnySurface &srf2 = ...Seg.Shank.AchillesWrapping2.Cyl; + AnyRefNode &Via1 = ...Seg.Foot.Plantaris1SuperiorNode; + AnyRefNode &Ins = ...Seg.Foot.Plantaris1Node; + SPLine = { + StringMesh = 30; + AnyMatrix InitWrapPos = { + transf3D({1.1*.srf.Radius, ....Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) , + transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) , + transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 ) + }; + InitWrapPosVecArr = {&InitWrapPos, None}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; #endif -AnyMuscleViaPoint Popliteus1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Popliteus1Par; - AnyRefNode &Org = ..Seg.Thigh.Popliteus1Node; - AnyRefNode &Via1 = ..Seg.Shank.PopliteusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PopliteusViaNode2; - AnyRefNode &Ins = ..Seg.Shank.Popliteus1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup Popliteus = { + AnyMuscleViaPoint Popliteus1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Popliteus1Par; + AnyRefNode &Org = ...Seg.Thigh.Popliteus1Node; + AnyRefNode &Via1 = ...Seg.Shank.PopliteusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PopliteusViaNode2; + AnyRefNode &Ins = ...Seg.Shank.Popliteus1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint Popliteus2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Popliteus2Par; - AnyRefNode &Org = ..Seg.Thigh.Popliteus2Node; - AnyRefNode &Via1 = ..Seg.Shank.PopliteusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PopliteusViaNode2; - AnyRefNode &Ins = ..Seg.Shank.Popliteus2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint Popliteus2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Popliteus2Par; + AnyRefNode &Org = ...Seg.Thigh.Popliteus2Node; + AnyRefNode &Via1 = ...Seg.Shank.PopliteusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PopliteusViaNode2; + AnyRefNode &Ins = ...Seg.Shank.Popliteus2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -//-->ABT_MJ -AnyMuscleViaPoint Popliteus3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.Popliteus3Par; - AnyRefNode &Org = ..Seg.Thigh.Popliteus3Node; - AnyRefNode &Via1 = ..Seg.Shank.PopliteusViaNode1; - AnyRefNode &Via2 = ..Seg.Shank.PopliteusViaNode2; - AnyRefNode &Ins = ..Seg.Shank.Popliteus3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint Popliteus3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Popliteus3Par; + AnyRefNode &Org = ...Seg.Thigh.Popliteus3Node; + AnyRefNode &Via1 = ...Seg.Shank.PopliteusViaNode1; + AnyRefNode &Via2 = ...Seg.Shank.PopliteusViaNode2; + AnyRefNode &Ins = ...Seg.Shank.Popliteus3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; -AnyMuscleViaPoint QuadratusFemoris1 = { - AnyMuscleModel &MusMdl = ..MuscleModels.QuadratusFemoris1Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.QuadratusFemoris1Node; - AnyRefNode &Ins = ..Seg.Thigh.QuadratusFemoris1Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; +MuscleGroup QuadratusFemoris = { + AnyMuscleViaPoint QuadratusFemoris1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.QuadratusFemoris1Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.QuadratusFemoris1Node; + AnyRefNode &Ins = ...Seg.Thigh.QuadratusFemoris1Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint QuadratusFemoris2 = { - AnyMuscleModel &MusMdl = ..MuscleModels.QuadratusFemoris2Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.QuadratusFemoris2Node; - AnyRefNode &Ins = ..Seg.Thigh.QuadratusFemoris2Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint QuadratusFemoris2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.QuadratusFemoris2Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.QuadratusFemoris2Node; + AnyRefNode &Ins = ...Seg.Thigh.QuadratusFemoris2Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint QuadratusFemoris3 = { - AnyMuscleModel &MusMdl = ..MuscleModels.QuadratusFemoris3Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.QuadratusFemoris3Node; - AnyRefNode &Ins = ..Seg.Thigh.QuadratusFemoris3Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint QuadratusFemoris3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.QuadratusFemoris3Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.QuadratusFemoris3Node; + AnyRefNode &Ins = ...Seg.Thigh.QuadratusFemoris3Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; -AnyMuscleViaPoint QuadratusFemoris4 = { - AnyMuscleModel &MusMdl = ..MuscleModels.QuadratusFemoris4Par; - AnyRefNode &Org = ..Seg.Pelvis.Muscles.QuadratusFemoris4Node; - AnyRefNode &Ins = ..Seg.Thigh.QuadratusFemoris4Node; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -}; + AnyMuscleViaPoint QuadratusFemoris4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.QuadratusFemoris4Par; + AnyRefNode &Org = ...Seg.Pelvis.Muscles.QuadratusFemoris4Node; + AnyRefNode &Ins = ...Seg.Thigh.QuadratusFemoris4Node; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; +}; \ No newline at end of file diff --git a/Body/AAUHuman/LegTLEM/RightLegSelectedOutput.any b/Body/AAUHuman/LegTLEM/RightLegSelectedOutput.any index 71718802c..c6c1c6468 100644 --- a/Body/AAUHuman/LegTLEM/RightLegSelectedOutput.any +++ b/Body/AAUHuman/LegTLEM/RightLegSelectedOutput.any @@ -1,13 +1,10 @@ - SelectedOutput.Right = { AnyFolder Leg = { - AnyFolder JointReactionForce = { - /// Lateral positive AnyVar Hip_MediolateralForce = ....Right.Leg.Jnt.Hip.Constraints.Reaction.Fout[2]; /// Proximal positive @@ -17,103 +14,84 @@ SelectedOutput.Right = { // Thigh.HipJoint ref #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ & BM_JOINT_TYPE_KNEE_RIGHT == _JOINT_TYPE_DEFAULT_ - /// Lateral positive - AnyVar Knee_MedioLateralForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[2]; - /// Proximal positive - AnyVar Knee_ProximoDistalForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[1]; - /// Anterior positive - AnyVar Knee_AnteroPosteriorForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[0]; - /// Internal positive - AnyVar Knee_AxialMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[1]; - /// Internal positive - AnyVar Knee_LateralMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[0]; - // Thigh.KneeJoint ref - /// Lateral positive - AnyVar Ankle_MedioLateralForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[2]; - /// Proximal positive - AnyVar Ankle_ProximoDistalForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[1]; - /// Anterior positive - AnyVar Ankle_AnteroPosteriorForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[0]; - /// Internal positive - AnyVar Ankle_AxialMoment = ....Right.Leg.MomentMeasure.AnkleJointReactionMoments.Mlocal[1]; - // Shank.AnkleJoint ref + /// Lateral positive + AnyVar Knee_MedioLateralForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[2]; + /// Proximal positive + AnyVar Knee_ProximoDistalForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[1]; + /// Anterior positive + AnyVar Knee_AnteroPosteriorForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[0]; + /// Internal positive + AnyVar Knee_AxialMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[1]; + /// Internal positive + AnyVar Knee_LateralMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[0]; + // Thigh.KneeJoint ref + /// Lateral positive + AnyVar Ankle_MedioLateralForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[2]; + /// Proximal positive + AnyVar Ankle_ProximoDistalForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[1]; + /// Anterior positive + AnyVar Ankle_AnteroPosteriorForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[0]; + /// Internal positive + AnyVar Ankle_AxialMoment = ....Right.Leg.MomentMeasure.AnkleJointReactionMoments.Mlocal[1]; + // Shank.AnkleJoint ref #endif #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ & BM_JOINT_TYPE_KNEE_RIGHT == _JOINT_TYPE_USERDEFINED_ - /// Internal positive - AnyVar Knee_AxialMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[1]; - /// Internal positive - AnyVar Knee_LateralMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[0]; - // Thigh.KneeJoint ref - /// Lateral positive - AnyVar Ankle_MedioLateralForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[2]; - /// Proximal positive - AnyVar Ankle_ProximoDistalForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[1]; - /// Anterior positive - AnyVar Ankle_AnteroPosteriorForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[0]; - /// Internal positive - AnyVar Ankle_AxialMoment = ....Right.Leg.MomentMeasure.AnkleJointReactionMoments.Mlocal[1]; - // Shank.AnkleJoint ref + /// Internal positive + AnyVar Knee_AxialMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[1]; + /// Internal positive + AnyVar Knee_LateralMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[0]; + // Thigh.KneeJoint ref + /// Lateral positive + AnyVar Ankle_MedioLateralForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[2]; + /// Proximal positive + AnyVar Ankle_ProximoDistalForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[1]; + /// Anterior positive + AnyVar Ankle_AnteroPosteriorForce = ....Right.Leg.Jnt.Ankle.Constraints.Reaction.Fout[0]; + /// Internal positive + AnyVar Ankle_AxialMoment = ....Right.Leg.MomentMeasure.AnkleJointReactionMoments.Mlocal[1]; + // Shank.AnkleJoint ref #endif #if BM_FOOT_MODEL != _FOOT_MODEL_DEFAULT_ & BM_JOINT_TYPE_KNEE_RIGHT == _JOINT_TYPE_DEFAULT_ - /// Lateral positive - AnyVar Knee_MedioLateralForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[2]; - /// Proximal positive - AnyVar Knee_ProximoDistalForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[1]; - /// Anterior positive - AnyVar Knee_AnteroPosteriorForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[0]; - /// Internal positive - AnyVar Knee_AxialMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[1]; - /// Internal positive - AnyVar Knee_LateralMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[0]; - // Thigh.KneeJoint ref + /// Lateral positive + AnyVar Knee_MedioLateralForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[2]; + /// Proximal positive + AnyVar Knee_ProximoDistalForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[1]; + /// Anterior positive + AnyVar Knee_AnteroPosteriorForce = ....Right.Leg.Jnt.Knee.Constraints.Reaction.Fout[0]; + /// Internal positive + AnyVar Knee_AxialMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[1]; + /// Internal positive + AnyVar Knee_LateralMoment = ....Right.Leg.MomentMeasure.KneeJointReactionMoments.Mlocal[0]; + // Thigh.KneeJoint ref #endif - - //**************************************************** - - - - - }; //End JointReactionForce - - - + #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ - AnyFolder JointMomentMeasure = { - - - AnyVar HipAbduction = ....Right.Leg.MomentMeasure.HipNetMomentMuscle.MHipAbduction; - - AnyVar HipFlexion = ....Right.Leg.MomentMeasure.HipNetMomentMuscle.MHipFlexion; - - AnyVar HipExternalRotation = ....Right.Leg.MomentMeasure.HipNetMomentMuscle.MHipExternalRotation; - - #if BM_JOINT_TYPE_KNEE_RIGHT == _JOINT_TYPE_DEFAULT_ - AnyVar KneeFlexion = -....Right.Leg.MomentMeasure.KneeNetMomentMuscle.MKneeFlexion; - #endif - - AnyVar AnklePlantarFlexion = ....Right.Leg.MomentMeasure.AnklePlantarFlexionNetMomentMuscle.MPlantarFlexion; - - AnyVar SubTalarEversion = ....Right.Leg.MomentMeasure.SubTalarEversionNetMomentMuscle.MSubTalarEversion; - - - }; //End JointMomentMeasure + AnyFolder JointMomentMeasure = { + AnyVar HipAbduction = ....Right.Leg.MomentMeasure.HipNetMomentMuscle.MHipAbduction; + AnyVar HipFlexion = ....Right.Leg.MomentMeasure.HipNetMomentMuscle.MHipFlexion; + AnyVar HipExternalRotation = ....Right.Leg.MomentMeasure.HipNetMomentMuscle.MHipExternalRotation; + + #if BM_JOINT_TYPE_KNEE_RIGHT == _JOINT_TYPE_DEFAULT_ + AnyVar KneeFlexion = -....Right.Leg.MomentMeasure.KneeNetMomentMuscle.MKneeFlexion; + #endif + + AnyVar AnklePlantarFlexion = ....Right.Leg.MomentMeasure.AnklePlantarFlexionNetMomentMuscle.MPlantarFlexion; + AnyVar SubTalarEversion = ....Right.Leg.MomentMeasure.SubTalarEversionNetMomentMuscle.MSubTalarEversion; + }; //End JointMomentMeasure #endif - - - - - AnyFolder Muscles = - { - AnySearchFun MuscleList = - { + + AnyFolder Muscles = { + AnySearchFun MuscleList = { #if (BM_LEG_MUSCLES_RIGHT == OFF) - Search = ".....Right.Leg.JointMuscles.*.*.dof0.Muscle.*.Activity"; + Search = ".....Right.Leg.JointMuscles.*.*.dof0.Muscle.*.Activity"; #else - Search = ".....Right.Leg.Mus.*.Activity"; + // Note: first search string finds muscles inside group defs, + // second search string handles when muscles are created w. templates - those have addtional level + Search = {".....Right.Leg.Mus.*.*.Activity", ".....Right.Leg.Mus.*.*.Activity"}; #endif }; @@ -121,470 +99,412 @@ SelectedOutput.Right = { #if (BM_LEG_MUSCLES_RIGHT != OFF) - //************************************************* - - // Search Functions: - - - AnyFolder MuscleActivity = { - - - // GlutMed - AnySearchFun GlutMedActivityList = { - Search = "......Right.Leg.Mus.GluteusMed*.Activity"; - }; - - // GlutMin - AnySearchFun GlutMinActivityList = { - Search = "......Right.Leg.Mus.GluteusMin*.Activity"; - }; - - // Sartorius - AnySearchFun SartoriusActivityList = { - Search = "......Right.Leg.Mus.Sartorius*.Activity"; - }; - - // Tensor Fasciae Latae - AnySearchFun TensorFasciaeActivityList = { - Search = "......Right.Leg.Mus.TensorFasciae*.Activity"; - }; - - - // Psoas Major - AnySearchFun PsoasMajorActivityList = { - Search = "......Trunk.Muscles.Right.PsoasMajor.*.Activity"; - }; - - // // Psoas Minor - // AnySearchFun PsoasMinorActivityList = { - // Search = "......Trunk.Leg.Muscles.Right.PsoasMinor.*.Activity"; - // }; - - AnySearchFun IliacusActivityList = { - Search = "......Right.Leg.Mus.Iliac*.Activity"; - }; - - AnySearchFun VastusActivityList = { - Search = "......Right.Leg.Mus.Vastus*.Activity"; - }; - - AnySearchFun RectusFemorisActivityList = { - Search = "......Right.Leg.Mus.RectusF*.Activity"; - }; - - AnySearchFun PectineusActivityList = { - Search = "......Right.Leg.Mus.Pect*.Activity"; - }; - - AnySearchFun GracilisActivityList = { - Search = "......Right.Leg.Mus.Gracili*.Activity"; - }; - - AnySearchFun AdductorLongusActivityList = { - Search = "......Right.Leg.Mus.AdductorLongus*.Activity"; - }; - - AnySearchFun AdductorBrevisActivityList = { - Search = "......Right.Leg.Mus.AdductorBr*.Activity"; - }; - - - AnySearchFun AdductorMagnusActivityList = { - Search = "......Right.Leg.Mus.AdductorMag*.Activity"; - }; - - // AnySearchFun AdductorMinimusActivityList = { - // Search = "......Right.Leg.Mus.AdductorMin*.Activity"; - // }; - - - AnySearchFun ObturatorExtActivityList = { - Search = "......Right.Leg.Mus.ObturatorExt*.Activity"; - }; - - - - AnySearchFun GluteusMaxActivityList = { - Search = "......Right.Leg.Mus.GluteusMax*.Activity"; - }; - - - AnySearchFun SemimembranosusActivityList = { - Search = "......Right.Leg.Mus.Semimembr*.Activity"; - }; - - AnySearchFun SemimemtendinosusActivityList = { - Search = "......Right.Leg.Mus.Semitend*.Activity"; - }; - - AnySearchFun BicepsFemorisCaputBreveActivityList = { - Search = "......Right.Leg.Mus.BicepsFemorisCaputBreve*.Activity"; - }; - - AnySearchFun BicepsFemorisCaputLongActivityList = { - Search = "......Right.Leg.Mus.BicepsFemorisCaputL*.Activity"; - }; - - - AnySearchFun GastrocActivityList = { - Search = "......Right.Leg.Mus.Gastroc*.Activity"; - }; - - AnySearchFun TibPostActivityList = { - Search = "......Right.Leg.Mus.TibialisPost*.Activity"; - }; - - - AnySearchFun TibAntActivityList = { - Search = "......Right.Leg.Mus.TibialisAnt*.Activity"; - }; - - AnySearchFun SoleusActivityList = { - Search = "......Right.Leg.Mus.Soleus*.Activity"; - }; - - - - AnyVar GluteusMaxActivity = max(GluteusMaxActivityList()); - AnyVar GluteusMedActivity = max(GlutMedActivityList()); - AnyVar GluteusMinActivity = max(GlutMinActivityList()); - AnyVar SartoriusActivity = max(SartoriusActivityList()); - AnyVar TensorFasciaeActivity = max(TensorFasciaeActivityList()); - // AnyVar PsoasMinorActivity = max(PsoasMinorActivityList()); - AnyVar PsoasMajorActivity = max(PsoasMajorActivityList()); - AnyVar IliacusActivity = max(IliacusActivityList()); - AnyVar RectusFemorisActivity = max(RectusFemorisActivityList()); - AnyVar VastusActivity = max(VastusActivityList()); - AnyVar PectineusActivity = max(PectineusActivityList()); - AnyVar GracilisActivity = max(GracilisActivityList()); - AnyVar AdductorLongusActivity = max(AdductorLongusActivityList()); - AnyVar AdductorBrevisActivity = max(AdductorBrevisActivityList()); - AnyVar AdductorMagnusActivity = max(AdductorMagnusActivityList()); - // AnyVar AdductorMinimusActivity = max(AdductorMinimusActivityList()); - AnyVar ObturatorExtActivity = max(ObturatorExtActivityList()); - AnyVar SemimembranosusActivity = max(SemimembranosusActivityList()); - AnyVar SemitendinosusActivity = max(SemimemtendinosusActivityList()); - AnyVar BicepsFemorisCaputBreveActivity = max(BicepsFemorisCaputBreveActivityList()); - AnyVar BicepsFemorisCaputLongActivity = max(BicepsFemorisCaputLongActivityList()); + AnyFolder MuscleActivity = { + + // Search Functions: + + // GlutMed + AnySearchFun GlutMedActivityList = { + Search = "......Right.Leg.Mus.GluteusMed*.*.Activity"; + }; + + // GlutMin + AnySearchFun GlutMinActivityList = { + Search = "......Right.Leg.Mus.GluteusMin*.*.Activity"; + }; + + // Sartorius + AnySearchFun SartoriusActivityList = { + Search = "......Right.Leg.Mus.Sartorius.*.Activity"; + }; + + // Tensor Fasciae Latae + AnySearchFun TensorFasciaeActivityList = { + Search = "......Right.Leg.Mus.TensorFasciae*.*.Activity"; + }; + + // Psoas Major + AnySearchFun PsoasMajorActivityList = { + Search = "......Trunk.Muscles.Right.PsoasMajor.*.Activity"; + }; + + // // Psoas Minor + // AnySearchFun PsoasMinorActivityList = { + // Search = "......Trunk.Leg.Muscles.Right.PsoasMinor.*.Activity"; + // }; + + AnySearchFun IliacusActivityList = { + Search = "......Right.Leg.Mus.Iliac*.*.Activity"; + }; + + AnySearchFun VastusActivityList = { + Search = "......Right.Leg.Mus.Vastus*.*.Activity"; + }; + + AnySearchFun RectusFemorisActivityList = { + Search = "......Right.Leg.Mus.RectusF*.*.Activity"; + }; + + AnySearchFun PectineusActivityList = { + Search = "......Right.Leg.Mus.Pect*.*.Activity"; + }; + + AnySearchFun GracilisActivityList = { + Search = "......Right.Leg.Mus.Gracili*.*.Activity"; + }; + + AnySearchFun AdductorLongusActivityList = { + Search = "......Right.Leg.Mus.AdductorLongus.*.Activity"; + }; + + AnySearchFun AdductorBrevisActivityList = { + Search = "......Right.Leg.Mus.AdductorBr*.*.Activity"; + }; + + AnySearchFun AdductorMagnusActivityList = { + Search = "......Right.Leg.Mus.AdductorMag*.*.Activity"; + }; + + // AnySearchFun AdductorMinimusActivityList = { + // Search = "......Right.Leg.Mus.AdductorMin*.Activity"; + // }; + + AnySearchFun ObturatorExtActivityList = { + Search = "......Right.Leg.Mus.ObturatorExt*.*.Activity"; + }; + + AnySearchFun GluteusMaxActivityList = { + Search = "......Right.Leg.Mus.GluteusMax*.*.Activity"; + }; + + AnySearchFun SemimembranosusActivityList = { + Search = "......Right.Leg.Mus.Semimembr*.*.Activity"; + }; + + AnySearchFun SemimemtendinosusActivityList = { + Search = "......Right.Leg.Mus.Semitend*.*.Activity"; + }; + + AnySearchFun BicepsFemorisCaputBreveActivityList = { + Search = "......Right.Leg.Mus.BicepsFemorisCaputBreve.*.Activity"; + }; + + AnySearchFun BicepsFemorisCaputLongActivityList = { + Search = "......Right.Leg.Mus.BicepsFemorisCaputL*.*.Activity"; + }; + + AnySearchFun GastrocActivityList = { + Search = "......Right.Leg.Mus.Gastroc*.*.Activity"; + }; + + AnySearchFun TibPostActivityList = { + Search = "......Right.Leg.Mus.TibialisPost*.*.Activity"; + }; + + AnySearchFun TibAntActivityList = { + Search = "......Right.Leg.Mus.TibialisAnt*.*.Activity"; + }; + + AnySearchFun SoleusActivityList = { + Search = "......Right.Leg.Mus.Soleus*.*.Activity"; + }; + + AnyVar GluteusMaxActivity = max(GluteusMaxActivityList()); + AnyVar GluteusMedActivity = max(GlutMedActivityList()); + AnyVar GluteusMinActivity = max(GlutMinActivityList()); + AnyVar SartoriusActivity = max(SartoriusActivityList()); + AnyVar TensorFasciaeActivity = max(TensorFasciaeActivityList()); + // AnyVar PsoasMinorActivity = max(PsoasMinorActivityList()); + AnyVar PsoasMajorActivity = max(PsoasMajorActivityList()); + AnyVar IliacusActivity = max(IliacusActivityList()); + AnyVar RectusFemorisActivity = max(RectusFemorisActivityList()); + AnyVar VastusActivity = max(VastusActivityList()); + AnyVar PectineusActivity = max(PectineusActivityList()); + AnyVar GracilisActivity = max(GracilisActivityList()); + AnyVar AdductorLongusActivity = max(AdductorLongusActivityList()); + AnyVar AdductorBrevisActivity = max(AdductorBrevisActivityList()); + AnyVar AdductorMagnusActivity = max(AdductorMagnusActivityList()); + // AnyVar AdductorMinimusActivity = max(AdductorMinimusActivityList()); + AnyVar ObturatorExtActivity = max(ObturatorExtActivityList()); + AnyVar SemimembranosusActivity = max(SemimembranosusActivityList()); + AnyVar SemitendinosusActivity = max(SemimemtendinosusActivityList()); + AnyVar BicepsFemorisCaputBreveActivity = max(BicepsFemorisCaputBreveActivityList()); + AnyVar BicepsFemorisCaputLongActivity = max(BicepsFemorisCaputLongActivityList()); + #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ + AnyVar GastrocActivity = max(GastrocActivityList()); + AnyVar TibialisAnteriorActivity = max(TibAntActivityList()); + AnyVar TibialisPosteriorActivity = max(TibPostActivityList()); + AnyVar SoleusActivity = max(SoleusActivityList()); + #endif + }; + + /* Hip Abductors + o Gluteus medius + o Gluteus minimus + o Sartorius + o Tensor fasciae latae + */ + AnyFloat HipAbductorMuscleActivity = {MuscleActivity.GluteusMedActivity, MuscleActivity.GluteusMinActivity, MuscleActivity.SartoriusActivity, MuscleActivity.TensorFasciaeActivity}; + + /* Hip Flexors: + o Psoas major + o Psoas minor + o Iliacus + o Rectus femoris + o Sartorius + o Tensor fasciae latae + o Pectineus + o Adductor longus + o Adductor brevis + o Gracilis + */ + AnyFloat HipFlexorMuscleActivity = {MuscleActivity.PsoasMajorActivity, MuscleActivity.IliacusActivity, MuscleActivity.RectusFemorisActivity, + MuscleActivity.SartoriusActivity, MuscleActivity.TensorFasciaeActivity, MuscleActivity.PectineusActivity, + MuscleActivity.AdductorLongusActivity, MuscleActivity.AdductorBrevisActivity, MuscleActivity.GracilisActivity}; + // AnyVar HipFlexorMuscleActivity = MuscleActivity.PsoasMajorActivity + MuscleActivity.IliacusActivity + MuscleActivity.RectusFemorisActivity + MuscleActivity.SartoriusActivity + MuscleActivity.TensorFasciaeActivity + // + MuscleActivity.PectineusActivity + // + MuscleActivity.AdductorLongusActivity + MuscleActivity.AdductorBrevisActivity + MuscleActivity.GracilisActivity; + + /* Hip adductors: + o Adductor brevis + o Adductor longus + o Adductor magnus + o Adductor minimus + o pectineus + o gracilis + o Obturator externus + */ + AnyFloat HipAdductorMuscleActivity = {MuscleActivity.ObturatorExtActivity, MuscleActivity.PectineusActivity, MuscleActivity.AdductorMagnusActivity, // + AdductorMinimusActivity + MuscleActivity.AdductorLongusActivity, MuscleActivity.AdductorBrevisActivity, MuscleActivity.GracilisActivity}; + // AnyVar HipAdductorMuscleActivity = MuscleActivity.ObturatorExtActivity + MuscleActivity.PectineusActivity + MuscleActivity.AdductorMagnusActivity // + AdductorMinimusActivity + // + MuscleActivity.AdductorLongusActivity + MuscleActivity.AdductorBrevisActivity + MuscleActivity.GracilisActivity; + + /* Hip extensors: + o Gluteus maximus + o Most of the hamstrings: + " Long head of biceps femoris, short head is not a hip extensor, only a knee flexor + " Semimembranosus muscle + " Semitendinosus muscle + */ + AnyFloat HipExtensorMuscleActivity = {MuscleActivity.GluteusMaxActivity, MuscleActivity.BicepsFemorisCaputLongActivity, MuscleActivity.SemimembranosusActivity, MuscleActivity.SemitendinosusActivity}; + + /* Knee flexors: + o hamstrings (also hip extensors): + " biceps femoris (short head does not extend hip) + " semimembranosus + " semitendinosus + o gastrocnemius (also plantar flexor as a calf muscle) + o gracilis (also hip flexor/adductor) + o sartorius (also hip flexor/abductor/lateral rotator) + */ #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ - AnyVar GastrocActivity = max(GastrocActivityList()); - AnyVar TibialisAnteriorActivity = max(TibAntActivityList()); - AnyVar TibialisPosteriorActivity = max(TibPostActivityList()); - AnyVar SoleusActivity = max(SoleusActivityList()); + AnyFloat KneeFlexorMuscleActivity = {MuscleActivity.BicepsFemorisCaputLongActivity,MuscleActivity.BicepsFemorisCaputBreveActivity, MuscleActivity.SemimembranosusActivity, MuscleActivity.SemitendinosusActivity, MuscleActivity.GastrocActivity, MuscleActivity.GracilisActivity, MuscleActivity.SartoriusActivity}; #endif - }; - - - - /* Hip Abductors - o Gluteus medius - o Gluteus minimus - o Sartorius - o Tensor fasciae latae - */ - - AnyFloat HipAbductorMuscleActivity = {MuscleActivity.GluteusMedActivity, MuscleActivity.GluteusMinActivity, MuscleActivity.SartoriusActivity, MuscleActivity.TensorFasciaeActivity}; - - - - /* Hip Flexors: - o Psoas major - o Psoas minor - o Iliacus - o Rectus femoris - o Sartorius - o Tensor fasciae latae - o Pectineus - o Adductor longus - o Adductor brevis - o Gracilis - */ - - AnyFloat HipFlexorMuscleActivity = {MuscleActivity.PsoasMajorActivity, MuscleActivity.IliacusActivity, MuscleActivity.RectusFemorisActivity, - MuscleActivity.SartoriusActivity, MuscleActivity.TensorFasciaeActivity, MuscleActivity.PectineusActivity, - MuscleActivity.AdductorLongusActivity, MuscleActivity.AdductorBrevisActivity, MuscleActivity.GracilisActivity}; - // AnyVar HipFlexorMuscleActivity = MuscleActivity.PsoasMajorActivity + MuscleActivity.IliacusActivity + MuscleActivity.RectusFemorisActivity + MuscleActivity.SartoriusActivity + MuscleActivity.TensorFasciaeActivity - // + MuscleActivity.PectineusActivity - // + MuscleActivity.AdductorLongusActivity + MuscleActivity.AdductorBrevisActivity + MuscleActivity.GracilisActivity; - - /* Hip adductors: - o Adductor brevis - o Adductor longus - o Adductor magnus - o Adductor minimus - o pectineus - o gracilis - o Obturator externus - */ - - AnyFloat HipAdductorMuscleActivity = {MuscleActivity.ObturatorExtActivity, MuscleActivity.PectineusActivity, MuscleActivity.AdductorMagnusActivity, // + AdductorMinimusActivity - MuscleActivity.AdductorLongusActivity, MuscleActivity.AdductorBrevisActivity, MuscleActivity.GracilisActivity}; - // AnyVar HipAdductorMuscleActivity = MuscleActivity.ObturatorExtActivity + MuscleActivity.PectineusActivity + MuscleActivity.AdductorMagnusActivity // + AdductorMinimusActivity - // + MuscleActivity.AdductorLongusActivity + MuscleActivity.AdductorBrevisActivity + MuscleActivity.GracilisActivity; - - - /* Hip extensors: - o Gluteus maximus - o Most of the hamstrings: - " Long head of biceps femoris, short head is not a hip extensor, only a knee flexor - " Semimembranosus muscle - " Semitendinosus muscle - - */ - - - AnyFloat HipExtensorMuscleActivity = {MuscleActivity.GluteusMaxActivity, MuscleActivity.BicepsFemorisCaputLongActivity, MuscleActivity.SemimembranosusActivity, MuscleActivity.SemitendinosusActivity}; - - /* Knee flexors: - o hamstrings (also hip extensors): - " biceps femoris (short head does not extend hip) - " semimembranosus - " semitendinosus - o gastrocnemius (also plantar flexor as a calf muscle) - o gracilis (also hip flexor/adductor) - o sartorius (also hip flexor/abductor/lateral rotator) - */ - - - #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ - AnyFloat KneeFlexorMuscleActivity = {MuscleActivity.BicepsFemorisCaputLongActivity,MuscleActivity.BicepsFemorisCaputBreveActivity, MuscleActivity.SemimembranosusActivity, MuscleActivity.SemitendinosusActivity, MuscleActivity.GastrocActivity, MuscleActivity.GracilisActivity, MuscleActivity.SartoriusActivity}; - #endif - - - - - - - - //************************************************* - - - AnyFolder MuscleForces = { - - // GlutMed - AnySearchFun GlutMedForceList = { - Search = "......Right.Leg.Mus.GluteusMed*.Fout"; - }; - - // GlutMin - AnySearchFun GlutMinForceList = { - Search = "......Right.Leg.Mus.GluteusMin*.Fout"; - }; - - // Sartorius - AnySearchFun SartoriusForceList = { - Search = "......Right.Leg.Mus.Sartorius*.Fout"; - }; - - // Tensor Fasciae Latae - AnySearchFun TensorFasciaeForceList = { - Search = "......Right.Leg.Mus.TensorFasciae*.Fout"; - }; - - - - // Psoas Major - AnySearchFun PsoasMajorForceList = { - Search = "......Trunk.Muscles.Right.PsoasMajor.*.Fout"; - }; - - // // Psoas Minor - // AnySearchFun PsoasMinorForceList = { - // Search = "......Trunk.Leg.Muscles.Right.PsoasMinor.*.Fout"; - // }; - - AnySearchFun IliacusForceList = { - Search = "......Right.Leg.Mus.Iliac*.Fout"; - }; - - AnySearchFun RectusFemorisForceList = { - Search = "......Right.Leg.Mus.RectusF*.Fout"; - }; - - AnySearchFun PectineusForceList = { - Search = "......Right.Leg.Mus.Pect*.Fout"; - }; - - AnySearchFun GracilisForceList = { - Search = "......Right.Leg.Mus.Gracili*.Fout"; - }; - - AnySearchFun AdductorLongusForceList = { - Search = "......Right.Leg.Mus.AdductorLongus*.Fout"; - }; - - AnySearchFun AdductorBrevisForceList = { - Search = "......Right.Leg.Mus.AdductorBr*.Fout"; - }; - - - AnySearchFun AdductorMagnusForceList = { - Search = "......Right.Leg.Mus.AdductorMag*.Fout"; - }; - - // AnySearchFun AdductorMinimusForceList = { - // Search = "......Right.Leg.Mus.AdductorMin*.Fout"; - // }; - - - AnySearchFun ObturatorExtForceList = { - Search = "......Right.Leg.Mus.ObturatorExt*.Fout"; - }; - - - - AnySearchFun GluteusMaxForceList = { - Search = "......Right.Leg.Mus.GluteusMax*.Fout"; - }; - - - AnySearchFun SemimembranosusForceList = { - Search = "......Right.Leg.Mus.Semimembr*.Fout"; - }; - - AnySearchFun SemimemtendinosusForceList = { - Search = "......Right.Leg.Mus.Semitend*.Fout"; - }; - - AnySearchFun BicepsFemorisCaputBreveForceList = { - Search = "......Right.Leg.Mus.BicepsFemorisCaputBreve*.Fout"; - }; - - - - AnySearchFun BicepsFemorisCaputLongForceList = { - Search = "......Right.Leg.Mus.BicepsFemorisCaputL*.Fout"; - }; - - - AnySearchFun GastrocForceList = { - Search = "......Right.Leg.Mus.Gastroc*.Fout"; - }; - - AnySearchFun TibPostForceList = { - Search = "......Right.Leg.Mus.TibialisPost*.Fout"; - }; - - - AnySearchFun TibAntForceList = { - Search = "......Right.Leg.Mus.TibialisAnt*.Fout"; - }; - - AnySearchFun SoleusForceList = { - Search = "......Right.Leg.Mus.Soleus*.Fout"; - }; - - AnySearchFun VastusForceList = { - Search = "......Right.Leg.Mus.Vastus*.Fout"; - }; - - AnyVar GluteusMaxForce = sum(GluteusMaxForceList()); - AnyVar GluteusMedForce = sum(GlutMedForceList()); - AnyVar GluteusMinForce = sum(GlutMinForceList()); - AnyVar SartoriusForce = sum(SartoriusForceList()); - AnyVar TensorFasciaeForce = sum(TensorFasciaeForceList()); - // AnyVar PsoasMinorForce = sum(PsoasMinorForceList()); - AnyVar PsoasMajorForce = sum(PsoasMajorForceList()); - AnyVar IliacusForce = sum(IliacusForceList()); - AnyVar VastusForce = sum(VastusForceList()); - AnyVar RectusFemorisForce = sum(RectusFemorisForceList()); - AnyVar PectineusForce = sum(PectineusForceList()); - AnyVar GracilisForce = sum(GracilisForceList()); - AnyVar AdductorLongusForce = sum(AdductorLongusForceList()); - AnyVar AdductorBrevisForce = sum(AdductorBrevisForceList()); - AnyVar AdductorMagnusForce = sum(AdductorMagnusForceList()); - // AnyVar AdductorMinimusForce = sum(AdductorMinimusForceList()); - AnyVar ObturatorExtForce = sum(ObturatorExtForceList()); - AnyVar SemimembranosusForce = sum(SemimembranosusForceList()); - AnyVar SemitendinosusForce = sum(SemimemtendinosusForceList()); - AnyVar BicepsFemorisCaputBreveForce = sum(BicepsFemorisCaputBreveForceList()); - AnyVar BicepsFemorisCaputLongForce = sum(BicepsFemorisCaputLongForceList()); + //************************************************* + + AnyFolder MuscleForces = { + + // GlutMed + AnySearchFun GlutMedForceList = { + Search = "......Right.Leg.Mus.GluteusMed*.*.Fout"; + }; + + // GlutMin + AnySearchFun GlutMinForceList = { + Search = "......Right.Leg.Mus.GluteusMin*.*.Fout"; + }; + + // Sartorius + AnySearchFun SartoriusForceList = { + Search = "......Right.Leg.Mus.Sartorius.*.Fout"; + }; + + // Tensor Fasciae Latae + AnySearchFun TensorFasciaeForceList = { + Search = "......Right.Leg.Mus.TensorFasciae*.*.Fout"; + }; + + // Psoas Major + AnySearchFun PsoasMajorForceList = { + Search = "......Trunk.Muscles.Right.PsoasMajor.*.Fout"; + }; + + // // Psoas Minor + // AnySearchFun PsoasMinorForceList = { + // Search = "......Trunk.Leg.Muscles.Right.PsoasMinor.*.Fout"; + // }; + + AnySearchFun IliacusForceList = { + Search = "......Right.Leg.Mus.Iliac*.*.Fout"; + }; + + AnySearchFun RectusFemorisForceList = { + Search = "......Right.Leg.Mus.RectusF*.*.Fout"; + }; + + AnySearchFun PectineusForceList = { + Search = "......Right.Leg.Mus.Pect*.*.Fout"; + }; + + AnySearchFun GracilisForceList = { + Search = "......Right.Leg.Mus.Gracili*.*.Fout"; + }; + + AnySearchFun AdductorLongusForceList = { + Search = "......Right.Leg.Mus.AdductorLongus.*.Fout"; + }; + + AnySearchFun AdductorBrevisForceList = { + Search = "......Right.Leg.Mus.AdductorBr*.*.Fout"; + }; + + AnySearchFun AdductorMagnusForceList = { + Search = "......Right.Leg.Mus.AdductorMag*.*.Fout"; + }; + + // AnySearchFun AdductorMinimusForceList = { + // Search = "......Right.Leg.Mus.AdductorMin*.Fout"; + // }; + + AnySearchFun ObturatorExtForceList = { + Search = "......Right.Leg.Mus.ObturatorExt*.*.Fout"; + }; + + AnySearchFun GluteusMaxForceList = { + Search = "......Right.Leg.Mus.GluteusMax*.*.Fout"; + }; + + AnySearchFun SemimembranosusForceList = { + Search = "......Right.Leg.Mus.Semimembr*.*.Fout"; + }; + + AnySearchFun SemimemtendinosusForceList = { + Search = "......Right.Leg.Mus.Semitend*.*.Fout"; + }; + + AnySearchFun BicepsFemorisCaputBreveForceList = { + Search = "......Right.Leg.Mus.BicepsFemorisCaputBreve.*.Fout"; + }; + + AnySearchFun BicepsFemorisCaputLongForceList = { + Search = "......Right.Leg.Mus.BicepsFemorisCaputL*.*.Fout"; + }; + + AnySearchFun GastrocForceList = { + Search = "......Right.Leg.Mus.Gastroc*.*.Fout"; + }; + + AnySearchFun TibPostForceList = { + Search = "......Right.Leg.Mus.TibialisPost*.*.Fout"; + }; + + AnySearchFun TibAntForceList = { + Search = "......Right.Leg.Mus.TibialisAnt*.*.Fout"; + }; + + AnySearchFun SoleusForceList = { + Search = "......Right.Leg.Mus.Soleus*.*.Fout"; + }; + + AnySearchFun VastusForceList = { + Search = "......Right.Leg.Mus.Vastus*.*.Fout"; + }; + + AnyVar GluteusMaxForce = sum(GluteusMaxForceList()); + AnyVar GluteusMedForce = sum(GlutMedForceList()); + AnyVar GluteusMinForce = sum(GlutMinForceList()); + AnyVar SartoriusForce = sum(SartoriusForceList()); + AnyVar TensorFasciaeForce = sum(TensorFasciaeForceList()); + // AnyVar PsoasMinorForce = sum(PsoasMinorForceList()); + AnyVar PsoasMajorForce = sum(PsoasMajorForceList()); + AnyVar IliacusForce = sum(IliacusForceList()); + AnyVar VastusForce = sum(VastusForceList()); + AnyVar RectusFemorisForce = sum(RectusFemorisForceList()); + AnyVar PectineusForce = sum(PectineusForceList()); + AnyVar GracilisForce = sum(GracilisForceList()); + AnyVar AdductorLongusForce = sum(AdductorLongusForceList()); + AnyVar AdductorBrevisForce = sum(AdductorBrevisForceList()); + AnyVar AdductorMagnusForce = sum(AdductorMagnusForceList()); + // AnyVar AdductorMinimusForce = sum(AdductorMinimusForceList()); + AnyVar ObturatorExtForce = sum(ObturatorExtForceList()); + AnyVar SemimembranosusForce = sum(SemimembranosusForceList()); + AnyVar SemitendinosusForce = sum(SemimemtendinosusForceList()); + AnyVar BicepsFemorisCaputBreveForce = sum(BicepsFemorisCaputBreveForceList()); + AnyVar BicepsFemorisCaputLongForce = sum(BicepsFemorisCaputLongForceList()); + + #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ + AnyVar GastrocForce = sum(GastrocForceList()); + AnyVar TibialisAnteriorForce= sum(TibAntForceList()); + AnyVar TibialisPosteriorForce= sum(TibPostForceList()); + AnyVar SoleusForce = sum(SoleusForceList()); + #endif + }; + + //******************************************************************************** + //************************************************* + + /* Hip Abductors + o Gluteus medius + o Gluteus minimus + o Sartorius + o Tensor fasciae latae + */ + AnyVar HipAbductorMuscleForce = MuscleForces.GluteusMedForce + MuscleForces.GluteusMinForce + MuscleForces.SartoriusForce + MuscleForces.TensorFasciaeForce; + + /* Hip Flexors: + o Psoas major + o Psoas minor + o Iliacus + o Rectus femoris + o Sartorius + o Tensor fasciae latae + o Pectineus + o Adductor longus + o Adductor brevis + o Gracilis + */ + AnyVar HipFlexorMuscleForce = MuscleForces.PsoasMajorForce + MuscleForces.IliacusForce + MuscleForces.RectusFemorisForce + MuscleForces.SartoriusForce + MuscleForces.TensorFasciaeForce + + MuscleForces.PectineusForce + + MuscleForces.AdductorLongusForce + MuscleForces.AdductorBrevisForce + MuscleForces.GracilisForce; + + /* Hip adductors: + o Adductor brevis + o Adductor longus + o Adductor magnus + o Adductor minimus + o pectineus + o gracilis + o Obturator externus + */ + AnyVar HipAdductorMuscleForce = MuscleForces.ObturatorExtForce + MuscleForces.PectineusForce + MuscleForces.AdductorMagnusForce // + AdductorMinimusForce + + MuscleForces.AdductorLongusForce + MuscleForces.AdductorBrevisForce + MuscleForces.GracilisForce; + + /* Hip extensors: + o Gluteus maximus + o Most of the hamstrings: + " Long head of biceps femoris, short head is not a hip extensor, only a knee flexor + " Semimembranosus muscle + " Semitendinosus muscle + */ + AnyVar HipExtensorMuscleForce = MuscleForces.GluteusMaxForce + MuscleForces.BicepsFemorisCaputLongForce + MuscleForces.SemimembranosusForce + MuscleForces.SemitendinosusForce; + + /* Knee flexors: + o hamstrings (also hip extensors): + " biceps femoris (short head does not extend hip) + " semimembranosus + " semitendinosus + o gastrocnemius (also plantar flexor as a calf muscle) + o gracilis (also hip flexor/adductor) + o sartorius (also hip flexor/abductor/lateral rotator) + */ #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ - AnyVar GastrocForce = sum(GastrocForceList()); - AnyVar TibialisAnteriorForce= sum(TibAntForceList()); - AnyVar TibialisPosteriorForce= sum(TibPostForceList()); - AnyVar SoleusForce = sum(SoleusForceList()); + AnyVar KneeFlexorMuscleForce = MuscleForces.BicepsFemorisCaputLongForce + MuscleForces.BicepsFemorisCaputBreveForce + MuscleForces.SemimembranosusForce + MuscleForces.SemitendinosusForce + MuscleForces.GastrocForce + MuscleForces.GracilisForce + MuscleForces.SartoriusForce; #endif - }; - - //******************************************************************************** - //************************************************* - - /* Hip Abductors - o Gluteus medius - o Gluteus minimus - o Sartorius - o Tensor fasciae latae - */ - - AnyVar HipAbductorMuscleForce = MuscleForces.GluteusMedForce + MuscleForces.GluteusMinForce + MuscleForces.SartoriusForce + MuscleForces.TensorFasciaeForce; - - - /* Hip Flexors: - o Psoas major - o Psoas minor - o Iliacus - o Rectus femoris - o Sartorius - o Tensor fasciae latae - o Pectineus - o Adductor longus - o Adductor brevis - o Gracilis - */ - - AnyVar HipFlexorMuscleForce = MuscleForces.PsoasMajorForce + MuscleForces.IliacusForce + MuscleForces.RectusFemorisForce + MuscleForces.SartoriusForce + MuscleForces.TensorFasciaeForce - + MuscleForces.PectineusForce - + MuscleForces.AdductorLongusForce + MuscleForces.AdductorBrevisForce + MuscleForces.GracilisForce; - - /* Hip adductors: - o Adductor brevis - o Adductor longus - o Adductor magnus - o Adductor minimus - o pectineus - o gracilis - o Obturator externus - */ - - AnyVar HipAdductorMuscleForce = MuscleForces.ObturatorExtForce + MuscleForces.PectineusForce + MuscleForces.AdductorMagnusForce // + AdductorMinimusForce - + MuscleForces.AdductorLongusForce + MuscleForces.AdductorBrevisForce + MuscleForces.GracilisForce; - - - /* Hip extensors: - o Gluteus maximus - o Most of the hamstrings: - " Long head of biceps femoris, short head is not a hip extensor, only a knee flexor - " Semimembranosus muscle - " Semitendinosus muscle - - */ - - AnyVar HipExtensorMuscleForce = MuscleForces.GluteusMaxForce + MuscleForces.BicepsFemorisCaputLongForce + MuscleForces.SemimembranosusForce + MuscleForces.SemitendinosusForce; - - /* Knee flexors: - o hamstrings (also hip extensors): - " biceps femoris (short head does not extend hip) - " semimembranosus - " semitendinosus - o gastrocnemius (also plantar flexor as a calf muscle) - o gracilis (also hip flexor/adductor) - o sartorius (also hip flexor/abductor/lateral rotator) - */ - #if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_ - AnyVar KneeFlexorMuscleForce = MuscleForces.BicepsFemorisCaputLongForce + MuscleForces.BicepsFemorisCaputBreveForce + MuscleForces.SemimembranosusForce + MuscleForces.SemitendinosusForce + MuscleForces.GastrocForce + MuscleForces.GracilisForce + MuscleForces.SartoriusForce; - #endif - - + #endif - }; //End Muscles - - }; //End Leg - - }; //End Right diff --git a/Body/AAUHuman/LegTLEM/ammr_3.0_compatibility_structure.any b/Body/AAUHuman/LegTLEM/ammr_3.0_compatibility_structure.any new file mode 100644 index 000000000..643bdeb49 --- /dev/null +++ b/Body/AAUHuman/LegTLEM/ammr_3.0_compatibility_structure.any @@ -0,0 +1,158 @@ +AnyFolder &SoleusMedialis1 = SoleusMedialis.SoleusMedialis1; +AnyFolder &SoleusMedialis2 = SoleusMedialis.SoleusMedialis2; +AnyFolder &SoleusMedialis3 = SoleusMedialis.SoleusMedialis3; +AnyFolder &SoleusLateralis1 = SoleusLateralis.SoleusLateralis1; +AnyFolder &SoleusLateralis2 = SoleusLateralis.SoleusLateralis2; +AnyFolder &SoleusLateralis3 = SoleusLateralis.SoleusLateralis3; +AnyFolder &GastrocnemiusLateralis1 = GastrocnemiusLateralis.GastrocnemiusLateralis1; +AnyFolder &GastrocnemiusMedialis1 = GastrocnemiusMedialis.GastrocnemiusMedialis1; +AnyFolder &VastusLateralisInferior1 = VastusLateralisInferior.VastusLateralisInferior1; +AnyFolder &VastusLateralisInferior2 = VastusLateralisInferior.VastusLateralisInferior2; +AnyFolder &VastusLateralisInferior3 = VastusLateralisInferior.VastusLateralisInferior3; +AnyFolder &VastusLateralisInferior4 = VastusLateralisInferior.VastusLateralisInferior4; +AnyFolder &VastusLateralisInferior5 = VastusLateralisInferior.VastusLateralisInferior5; +AnyFolder &VastusLateralisInferior6 = VastusLateralisInferior.VastusLateralisInferior6; +AnyFolder &VastusLateralisSuperior1 = VastusLateralisSuperior.VastusLateralisSuperior1; +AnyFolder &VastusLateralisSuperior2 = VastusLateralisSuperior.VastusLateralisSuperior2; +AnyFolder &VastusMedialisInferior1 = VastusMedialisInferior.VastusMedialisInferior1; +AnyFolder &VastusMedialisInferior2 = VastusMedialisInferior.VastusMedialisInferior2; +AnyFolder &VastusMedialisMid1 = VastusMedialisMid.VastusMedialisMid1; +AnyFolder &VastusMedialisMid2 = VastusMedialisMid.VastusMedialisMid2; +AnyFolder &VastusMedialisSuperior1 = VastusMedialisSuperior.VastusMedialisSuperior1; +AnyFolder &VastusMedialisSuperior2 = VastusMedialisSuperior.VastusMedialisSuperior2; +AnyFolder &VastusMedialisSuperior3 = VastusMedialisSuperior.VastusMedialisSuperior3; +AnyFolder &VastusMedialisSuperior4 = VastusMedialisSuperior.VastusMedialisSuperior4; +AnyFolder &VastusIntermedius1 = VastusIntermedius.VastusIntermedius1; +AnyFolder &VastusIntermedius2 = VastusIntermedius.VastusIntermedius2; +AnyFolder &VastusIntermedius3 = VastusIntermedius.VastusIntermedius3; +AnyFolder &VastusIntermedius4 = VastusIntermedius.VastusIntermedius4; +AnyFolder &VastusIntermedius5 = VastusIntermedius.VastusIntermedius5; +AnyFolder &VastusIntermedius6 = VastusIntermedius.VastusIntermedius6; +AnyFolder &RectusFemoris1 = RectusFemoris.RectusFemoris1; +AnyFolder &RectusFemoris2 = RectusFemoris.RectusFemoris2; +AnyFolder &Semitendinosus1 = Semitendinosus.Semitendinosus1; +AnyFolder &Semimembranosus1 = Semimembranosus.Semimembranosus1; +AnyFolder &Semimembranosus2 = Semimembranosus.Semimembranosus2; +AnyFolder &Semimembranosus3 = Semimembranosus.Semimembranosus3; +AnyFolder &BicepsFemorisCaputLongum1 = BicepsFemorisCaputLongum.BicepsFemorisCaputLongum1; +AnyFolder &BicepsFemorisCaputBreve1 = BicepsFemorisCaputBreve.BicepsFemorisCaputBreve1; +AnyFolder &BicepsFemorisCaputBreve2 = BicepsFemorisCaputBreve.BicepsFemorisCaputBreve2; +AnyFolder &BicepsFemorisCaputBreve3 = BicepsFemorisCaputBreve.BicepsFemorisCaputBreve3; +AnyFolder &IliacusLateralis1 = IliacusLateralis.IliacusLateralis1; +AnyFolder &IliacusLateralis2 = IliacusLateralis.IliacusLateralis2; +AnyFolder &IliacusMid1 = IliacusMid.IliacusMid1; +AnyFolder &IliacusMid2 = IliacusMid.IliacusMid2; +AnyFolder &IliacusMedialis1 = IliacusMedialis.IliacusMedialis1; +AnyFolder &IliacusMedialis2 = IliacusMedialis.IliacusMedialis2; +AnyFolder &GluteusMaximusSuperior1 = GluteusMaximusSuperior.GluteusMaximusSuperior1; +AnyFolder &GluteusMaximusSuperior2 = GluteusMaximusSuperior.GluteusMaximusSuperior2; +AnyFolder &GluteusMaximusSuperior3 = GluteusMaximusSuperior.GluteusMaximusSuperior3; +AnyFolder &GluteusMaximusSuperior4 = GluteusMaximusSuperior.GluteusMaximusSuperior4; +AnyFolder &GluteusMaximusSuperior5 = GluteusMaximusSuperior.GluteusMaximusSuperior5; +AnyFolder &GluteusMaximusSuperior6 = GluteusMaximusSuperior.GluteusMaximusSuperior6; +AnyFolder &GluteusMaximusInferior1 = GluteusMaximusInferior.GluteusMaximusInferior1; +AnyFolder &GluteusMaximusInferior2 = GluteusMaximusInferior.GluteusMaximusInferior2; +AnyFolder &GluteusMaximusInferior3 = GluteusMaximusInferior.GluteusMaximusInferior3; +AnyFolder &GluteusMaximusInferior4 = GluteusMaximusInferior.GluteusMaximusInferior4; +AnyFolder &GluteusMaximusInferior5 = GluteusMaximusInferior.GluteusMaximusInferior5; +AnyFolder &GluteusMaximusInferior6 = GluteusMaximusInferior.GluteusMaximusInferior6; +AnyFolder &Plantaris1 = Plantaris.Plantaris1; +AnyFolder &FlexorDigitorumLongus1 = FlexorDigitorumLongus.FlexorDigitorumLongus1; +AnyFolder &FlexorDigitorumLongus2 = FlexorDigitorumLongus.FlexorDigitorumLongus2; +AnyFolder &FlexorDigitorumLongus3 = FlexorDigitorumLongus.FlexorDigitorumLongus3; +AnyFolder &FlexorDigitorumLongus4 = FlexorDigitorumLongus.FlexorDigitorumLongus4; +AnyFolder &FlexorHallucisLongus1 = FlexorHallucisLongus.FlexorHallucisLongus1; +AnyFolder &FlexorHallucisLongus2 = FlexorHallucisLongus.FlexorHallucisLongus2; +AnyFolder &FlexorHallucisLongus3 = FlexorHallucisLongus.FlexorHallucisLongus3; +AnyFolder &TibialisPosteriorLateralis1 = TibialisPosteriorLateralis.TibialisPosteriorLateralis1; +AnyFolder &TibialisPosteriorLateralis2 = TibialisPosteriorLateralis.TibialisPosteriorLateralis2; +AnyFolder &TibialisPosteriorLateralis3 = TibialisPosteriorLateralis.TibialisPosteriorLateralis3; +AnyFolder &TibialisPosteriorMedialis1 = TibialisPosteriorMedialis.TibialisPosteriorMedialis1; +AnyFolder &TibialisPosteriorMedialis2 = TibialisPosteriorMedialis.TibialisPosteriorMedialis2; +AnyFolder &TibialisPosteriorMedialis3 = TibialisPosteriorMedialis.TibialisPosteriorMedialis3; +AnyFolder &TibialisAnterior1 = TibialisAnterior.TibialisAnterior1; +AnyFolder &TibialisAnterior2 = TibialisAnterior.TibialisAnterior2; +AnyFolder &TibialisAnterior3 = TibialisAnterior.TibialisAnterior3; +AnyFolder &PeroneusBrevis1 = PeroneusBrevis.PeroneusBrevis1; +AnyFolder &PeroneusBrevis2 = PeroneusBrevis.PeroneusBrevis2; +AnyFolder &PeroneusBrevis3 = PeroneusBrevis.PeroneusBrevis3; +AnyFolder &PeroneusLongus1 = PeroneusLongus.PeroneusLongus1; +AnyFolder &PeroneusLongus2 = PeroneusLongus.PeroneusLongus2; +AnyFolder &PeroneusLongus3 = PeroneusLongus.PeroneusLongus3; +AnyFolder &ExtensorDigitorumLongus1 = ExtensorDigitorumLongus.ExtensorDigitorumLongus1; +AnyFolder &ExtensorDigitorumLongus2 = ExtensorDigitorumLongus.ExtensorDigitorumLongus2; +AnyFolder &ExtensorDigitorumLongus3 = ExtensorDigitorumLongus.ExtensorDigitorumLongus3; +AnyFolder &ExtensorDigitorumLongus4 = ExtensorDigitorumLongus.ExtensorDigitorumLongus4; +AnyFolder &ExtensorHallucisLongus1 = ExtensorHallucisLongus.ExtensorHallucisLongus1; +AnyFolder &ExtensorHallucisLongus2 = ExtensorHallucisLongus.ExtensorHallucisLongus2; +AnyFolder &ExtensorHallucisLongus3 = ExtensorHallucisLongus.ExtensorHallucisLongus3; +AnyFolder &Sartorius1 = Sartorius.Sartorius1; +AnyFolder &GluteusMinimusAnterior1 = GluteusMinimus.GluteusMinimusAnterior1; +AnyFolder &GluteusMinimusMid1 = GluteusMinimus.GluteusMinimusMid1; +AnyFolder &GluteusMinimusPosterior1 = GluteusMinimus.GluteusMinimusPosterior1; +AnyFolder &GluteusMediusAnterior1 = GluteusMediusAnterior.GluteusMediusAnterior1; +AnyFolder &GluteusMediusAnterior2 = GluteusMediusAnterior.GluteusMediusAnterior2; +AnyFolder &GluteusMediusAnterior3 = GluteusMediusAnterior.GluteusMediusAnterior3; +AnyFolder &GluteusMediusAnterior4 = GluteusMediusAnterior.GluteusMediusAnterior4; +AnyFolder &GluteusMediusAnterior5 = GluteusMediusAnterior.GluteusMediusAnterior5; +AnyFolder &GluteusMediusAnterior6 = GluteusMediusAnterior.GluteusMediusAnterior6; +AnyFolder &GluteusMediusPosterior1 = GluteusMediusPosterior.GluteusMediusPosterior1; +AnyFolder &GluteusMediusPosterior2 = GluteusMediusPosterior.GluteusMediusPosterior2; +AnyFolder &GluteusMediusPosterior3 = GluteusMediusPosterior.GluteusMediusPosterior3; +AnyFolder &GluteusMediusPosterior4 = GluteusMediusPosterior.GluteusMediusPosterior4; +AnyFolder &GluteusMediusPosterior5 = GluteusMediusPosterior.GluteusMediusPosterior5; +AnyFolder &GluteusMediusPosterior6 = GluteusMediusPosterior.GluteusMediusPosterior6; +AnyFolder &TensorFasciaeLatae1 = TensorFasciaeLatae.TensorFasciaeLatae1; +AnyFolder &TensorFasciaeLatae2 = TensorFasciaeLatae.TensorFasciaeLatae2; +AnyFolder &Piriformis1 = Piriformis.Piriformis1; +AnyFolder &Gracilis1 = Gracilis.Gracilis1; +AnyFolder &Gracilis2 = Gracilis.Gracilis2; +AnyFolder &AdductorLongus1 = AdductorLongus.AdductorLongus1; +AnyFolder &AdductorLongus2 = AdductorLongus.AdductorLongus2; +AnyFolder &AdductorLongus3 = AdductorLongus.AdductorLongus3; +AnyFolder &AdductorLongus4 = AdductorLongus.AdductorLongus4; +AnyFolder &AdductorLongus5 = AdductorLongus.AdductorLongus5; +AnyFolder &AdductorLongus6 = AdductorLongus.AdductorLongus6; +AnyFolder &AdductorMagnusDistal1 = AdductorMagnusDistal.AdductorMagnusDistal1; +AnyFolder &AdductorMagnusDistal2 = AdductorMagnusDistal.AdductorMagnusDistal2; +AnyFolder &AdductorMagnusDistal3 = AdductorMagnusDistal.AdductorMagnusDistal3; +AnyFolder &AdductorMagnusMid1 = AdductorMagnusMid.AdductorMagnusMid1; +AnyFolder &AdductorMagnusMid2 = AdductorMagnusMid.AdductorMagnusMid2; +AnyFolder &AdductorMagnusMid3 = AdductorMagnusMid.AdductorMagnusMid3; +AnyFolder &AdductorMagnusMid4 = AdductorMagnusMid.AdductorMagnusMid4; +AnyFolder &AdductorMagnusMid5 = AdductorMagnusMid.AdductorMagnusMid5; +AnyFolder &AdductorMagnusMid6 = AdductorMagnusMid.AdductorMagnusMid6; +AnyFolder &AdductorMagnusProximal1 = AdductorMagnusProximal.AdductorMagnusProximal1; +AnyFolder &AdductorMagnusProximal2 = AdductorMagnusProximal.AdductorMagnusProximal2; +AnyFolder &AdductorMagnusProximal3 = AdductorMagnusProximal.AdductorMagnusProximal3; +AnyFolder &AdductorMagnusProximal4 = AdductorMagnusProximal.AdductorMagnusProximal4; +AnyFolder &AdductorBrevisProximal1 = AdductorBrevisProximal.AdductorBrevisProximal1; +AnyFolder &AdductorBrevisProximal2 = AdductorBrevisProximal.AdductorBrevisProximal2; +AnyFolder &AdductorBrevisMid1 = AdductorBrevisMid.AdductorBrevisMid1; +AnyFolder &AdductorBrevisMid2 = AdductorBrevisMid.AdductorBrevisMid2; +AnyFolder &AdductorBrevisDistal1 = AdductorBrevisDistal.AdductorBrevisDistal1; +AnyFolder &AdductorBrevisDistal2 = AdductorBrevisDistal.AdductorBrevisDistal2; +AnyFolder &GemellusInferior1 = Gemellus.GemellusInferior1; +AnyFolder &GemellusSuperior1 = Gemellus.GemellusSuperior1; +AnyFolder &ObturatorExternusSuperior1 = ObturatorExternusSuperior.ObturatorExternusSuperior1; +AnyFolder &ObturatorExternusSuperior2 = ObturatorExternusSuperior.ObturatorExternusSuperior2; +AnyFolder &ObturatorExternusSuperior3 = ObturatorExternusSuperior.ObturatorExternusSuperior3; +AnyFolder &ObturatorExternusInferior1 = ObturatorExternusInferior.ObturatorExternusInferior1; +AnyFolder &ObturatorExternusInferior2 = ObturatorExternusInferior.ObturatorExternusInferior2; +AnyFolder &ObturatorInternus1 = ObturatorInternus.ObturatorInternus1; +AnyFolder &ObturatorInternus2 = ObturatorInternus.ObturatorInternus2; +AnyFolder &ObturatorInternus3 = ObturatorInternus.ObturatorInternus3; +AnyFolder &ObturatorInternus4 = ObturatorInternus.ObturatorInternus4; +AnyFolder &ObturatorInternus5 = ObturatorInternus.ObturatorInternus5; +AnyFolder &ObturatorInternus6 = ObturatorInternus.ObturatorInternus6; +AnyFolder &Pectineus1 = Pectineus.Pectineus1; +AnyFolder &Pectineus2 = Pectineus.Pectineus2; +AnyFolder &Pectineus3 = Pectineus.Pectineus3; +AnyFolder &Pectineus4 = Pectineus.Pectineus4; +AnyFolder &Popliteus1 = Popliteus.Popliteus1; +AnyFolder &Popliteus2 = Popliteus.Popliteus2; +AnyFolder &Popliteus3 = Popliteus.Popliteus3; +AnyFolder &QuadratusFemoris1 = QuadratusFemoris.QuadratusFemoris1; +AnyFolder &QuadratusFemoris2 = QuadratusFemoris.QuadratusFemoris2; +AnyFolder &QuadratusFemoris3 = QuadratusFemoris.QuadratusFemoris3; +AnyFolder &QuadratusFemoris4 = QuadratusFemoris.QuadratusFemoris4; \ No newline at end of file diff --git a/Body/AAUHuman/LegTLEM/legmuscles_for_output.any b/Body/AAUHuman/LegTLEM/legmuscles_for_output.any index 5ae24ef47..d8e502570 100644 --- a/Body/AAUHuman/LegTLEM/legmuscles_for_output.any +++ b/Body/AAUHuman/LegTLEM/legmuscles_for_output.any @@ -1,175 +1,173 @@ -_CODE_MACRO_(PsoasMajor_PMT12I_TM) -_CODE_MACRO_(PsoasMajor_PML1I_TM) -_CODE_MACRO_(PsoasMajor_PML1T_TM) -_CODE_MACRO_(PsoasMajor_PML2I_TM) -_CODE_MACRO_(PsoasMajor_PML2T_TM) -_CODE_MACRO_(PsoasMajor_PML3I_TM) -_CODE_MACRO_(PsoasMajor_PML3T_TM) -_CODE_MACRO_(PsoasMajor_PML4I_TM) -_CODE_MACRO_(PsoasMajor_PML4T_TM) -_CODE_MACRO_(PsoasMajor_PML5_TM) -_CODE_MACRO_(PsoasMajor_PML5T_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PMT12I_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML1I_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML1T_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML2I_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML2T_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML3I_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML3T_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML4I_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML4T_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML5_TM) +_CODE_MACRO_(PsoasMajor, PsoasMajor_PML5T_TM) -_CODE_MACRO_(SoleusMedialis1) -_CODE_MACRO_(SoleusMedialis2) -_CODE_MACRO_(SoleusMedialis3) -_CODE_MACRO_(SoleusLateralis1) -_CODE_MACRO_(SoleusLateralis2) -_CODE_MACRO_(SoleusLateralis3) -_CODE_MACRO_(GastrocnemiusLateralis1) -_CODE_MACRO_(GastrocnemiusMedialis1) -_CODE_MACRO_(FlexorDigitorumLongus1) -_CODE_MACRO_(FlexorDigitorumLongus2) -_CODE_MACRO_(FlexorDigitorumLongus3) -_CODE_MACRO_(FlexorDigitorumLongus4) -_CODE_MACRO_(FlexorHallucisLongus1) -_CODE_MACRO_(FlexorHallucisLongus2) -_CODE_MACRO_(FlexorHallucisLongus3) -_CODE_MACRO_(TibialisPosteriorLateralis1) -_CODE_MACRO_(TibialisPosteriorLateralis2) -_CODE_MACRO_(TibialisPosteriorLateralis3) -_CODE_MACRO_(TibialisPosteriorMedialis1) -_CODE_MACRO_(TibialisPosteriorMedialis2) -_CODE_MACRO_(TibialisPosteriorMedialis3) -_CODE_MACRO_(TibialisAnterior1) -_CODE_MACRO_(TibialisAnterior2) -_CODE_MACRO_(TibialisAnterior3) -_CODE_MACRO_(PeroneusBrevis1) -_CODE_MACRO_(PeroneusBrevis2) -_CODE_MACRO_(PeroneusBrevis3) -_CODE_MACRO_(PeroneusLongus1) -_CODE_MACRO_(PeroneusLongus2) -_CODE_MACRO_(PeroneusLongus3) -_CODE_MACRO_(ExtensorDigitorumLongus1) -_CODE_MACRO_(ExtensorDigitorumLongus2) -_CODE_MACRO_(ExtensorDigitorumLongus3) -_CODE_MACRO_(ExtensorDigitorumLongus4) -_CODE_MACRO_(ExtensorHallucisLongus1) -_CODE_MACRO_(ExtensorHallucisLongus2) -_CODE_MACRO_(ExtensorHallucisLongus3) -_CODE_MACRO_(VastusLateralisInferior1) -_CODE_MACRO_(VastusLateralisInferior2) -_CODE_MACRO_(VastusLateralisInferior3) -_CODE_MACRO_(VastusLateralisInferior4) -_CODE_MACRO_(VastusLateralisInferior5) -_CODE_MACRO_(VastusLateralisInferior6) -_CODE_MACRO_(VastusLateralisSuperior1) -_CODE_MACRO_(VastusLateralisSuperior2) -_CODE_MACRO_(VastusMedialisInferior1) -_CODE_MACRO_(VastusMedialisInferior2) -_CODE_MACRO_(VastusMedialisMid1) -_CODE_MACRO_(VastusMedialisMid2) -_CODE_MACRO_(VastusMedialisSuperior1) -_CODE_MACRO_(VastusMedialisSuperior2) -_CODE_MACRO_(VastusMedialisSuperior3) -_CODE_MACRO_(VastusMedialisSuperior4) -_CODE_MACRO_(VastusIntermedius1) -_CODE_MACRO_(VastusIntermedius2) -_CODE_MACRO_(VastusIntermedius3) -_CODE_MACRO_(VastusIntermedius4) -_CODE_MACRO_(VastusIntermedius5) -_CODE_MACRO_(VastusIntermedius6) +_CODE_MACRO_(SoleusMedialis, SoleusMedialis1) +_CODE_MACRO_(SoleusMedialis, SoleusMedialis2) +_CODE_MACRO_(SoleusMedialis, SoleusMedialis3) +_CODE_MACRO_(SoleusLateralis, SoleusLateralis1) +_CODE_MACRO_(SoleusLateralis, SoleusLateralis2) +_CODE_MACRO_(SoleusLateralis, SoleusLateralis3) +_CODE_MACRO_(GastrocnemiusLateralis, GastrocnemiusLateralis1) +_CODE_MACRO_(GastrocnemiusMedialis, GastrocnemiusMedialis1) +_CODE_MACRO_(FlexorDigitorumLongus, FlexorDigitorumLongus1) +_CODE_MACRO_(FlexorDigitorumLongus, FlexorDigitorumLongus2) +_CODE_MACRO_(FlexorDigitorumLongus, FlexorDigitorumLongus3) +_CODE_MACRO_(FlexorDigitorumLongus, FlexorDigitorumLongus4) +_CODE_MACRO_(FlexorHallucisLongus, FlexorHallucisLongus1) +_CODE_MACRO_(FlexorHallucisLongus, FlexorHallucisLongus2) +_CODE_MACRO_(FlexorHallucisLongus, FlexorHallucisLongus3) +_CODE_MACRO_(TibialisPosteriorLateralis, TibialisPosteriorLateralis1) +_CODE_MACRO_(TibialisPosteriorLateralis, TibialisPosteriorLateralis2) +_CODE_MACRO_(TibialisPosteriorLateralis, TibialisPosteriorLateralis3) +_CODE_MACRO_(TibialisPosteriorMedialis, TibialisPosteriorMedialis1) +_CODE_MACRO_(TibialisPosteriorMedialis, TibialisPosteriorMedialis2) +_CODE_MACRO_(TibialisPosteriorMedialis, TibialisPosteriorMedialis3) +_CODE_MACRO_(TibialisAnterior, TibialisAnterior1) +_CODE_MACRO_(TibialisAnterior, TibialisAnterior2) +_CODE_MACRO_(TibialisAnterior, TibialisAnterior3) +_CODE_MACRO_(PeroneusBrevis, PeroneusBrevis1) +_CODE_MACRO_(PeroneusBrevis, PeroneusBrevis2) +_CODE_MACRO_(PeroneusBrevis, PeroneusBrevis3) +_CODE_MACRO_(PeroneusLongus, PeroneusLongus1) +_CODE_MACRO_(PeroneusLongus, PeroneusLongus2) +_CODE_MACRO_(PeroneusLongus, PeroneusLongus3) +_CODE_MACRO_(ExtensorDigitorumLongus, ExtensorDigitorumLongus1) +_CODE_MACRO_(ExtensorDigitorumLongus, ExtensorDigitorumLongus2) +_CODE_MACRO_(ExtensorDigitorumLongus, ExtensorDigitorumLongus3) +_CODE_MACRO_(ExtensorDigitorumLongus, ExtensorDigitorumLongus4) +_CODE_MACRO_(ExtensorHallucisLongus, ExtensorHallucisLongus1) +_CODE_MACRO_(ExtensorHallucisLongus, ExtensorHallucisLongus2) +_CODE_MACRO_(ExtensorHallucisLongus, ExtensorHallucisLongus3) +_CODE_MACRO_(VastusLateralisInferior, VastusLateralisInferior1) +_CODE_MACRO_(VastusLateralisInferior, VastusLateralisInferior2) +_CODE_MACRO_(VastusLateralisInferior, VastusLateralisInferior3) +_CODE_MACRO_(VastusLateralisInferior, VastusLateralisInferior4) +_CODE_MACRO_(VastusLateralisInferior, VastusLateralisInferior5) +_CODE_MACRO_(VastusLateralisInferior, VastusLateralisInferior6) +_CODE_MACRO_(VastusLateralisSuperior, VastusLateralisSuperior1) +_CODE_MACRO_(VastusLateralisSuperior, VastusLateralisSuperior2) +_CODE_MACRO_(VastusMedialisInferior, VastusMedialisInferior1) +_CODE_MACRO_(VastusMedialisInferior, VastusMedialisInferior2) +_CODE_MACRO_(VastusMedialisMid, VastusMedialisMid1) +_CODE_MACRO_(VastusMedialisMid, VastusMedialisMid2) +_CODE_MACRO_(VastusMedialisSuperior, VastusMedialisSuperior1) +_CODE_MACRO_(VastusMedialisSuperior, VastusMedialisSuperior2) +_CODE_MACRO_(VastusMedialisSuperior, VastusMedialisSuperior3) +_CODE_MACRO_(VastusMedialisSuperior, VastusMedialisSuperior4) +_CODE_MACRO_(VastusIntermedius, VastusIntermedius1) +_CODE_MACRO_(VastusIntermedius, VastusIntermedius2) +_CODE_MACRO_(VastusIntermedius, VastusIntermedius3) +_CODE_MACRO_(VastusIntermedius, VastusIntermedius4) +_CODE_MACRO_(VastusIntermedius, VastusIntermedius5) +_CODE_MACRO_(VastusIntermedius, VastusIntermedius6) +_CODE_MACRO_(RectusFemoris, RectusFemoris1) +_CODE_MACRO_(RectusFemoris, RectusFemoris2) +_CODE_MACRO_(Semitendinosus, Semitendinosus1) +_CODE_MACRO_(Semimembranosus, Semimembranosus1) +_CODE_MACRO_(Semimembranosus, Semimembranosus2) +_CODE_MACRO_(Semimembranosus, Semimembranosus3) +_CODE_MACRO_(BicepsFemorisCaputLongum, BicepsFemorisCaputLongum1) +_CODE_MACRO_(BicepsFemorisCaputBreve, BicepsFemorisCaputBreve1) +_CODE_MACRO_(BicepsFemorisCaputBreve, BicepsFemorisCaputBreve2) +_CODE_MACRO_(BicepsFemorisCaputBreve, BicepsFemorisCaputBreve3) +_CODE_MACRO_(Sartorius, Sartorius1) +_CODE_MACRO_(IliacusLateralis, IliacusLateralis1) +_CODE_MACRO_(IliacusLateralis, IliacusLateralis2) +_CODE_MACRO_(IliacusMid, IliacusMid1) +_CODE_MACRO_(IliacusMid, IliacusMid2) +_CODE_MACRO_(IliacusMedialis, IliacusMedialis1) +_CODE_MACRO_(IliacusMedialis, IliacusMedialis2) +_CODE_MACRO_(GluteusMinimus, GluteusMinimusAnterior1) +_CODE_MACRO_(GluteusMinimus, GluteusMinimusMid1) +_CODE_MACRO_(GluteusMinimus, GluteusMinimusPosterior1) +_CODE_MACRO_(GluteusMediusAnterior, GluteusMediusAnterior1) +_CODE_MACRO_(GluteusMediusAnterior, GluteusMediusAnterior2) +_CODE_MACRO_(GluteusMediusAnterior, GluteusMediusAnterior3) +_CODE_MACRO_(GluteusMediusAnterior, GluteusMediusAnterior4) +_CODE_MACRO_(GluteusMediusAnterior, GluteusMediusAnterior5) +_CODE_MACRO_(GluteusMediusAnterior, GluteusMediusAnterior6) +_CODE_MACRO_(GluteusMediusPosterior, GluteusMediusPosterior1) +_CODE_MACRO_(GluteusMediusPosterior, GluteusMediusPosterior2) +_CODE_MACRO_(GluteusMediusPosterior, GluteusMediusPosterior3) +_CODE_MACRO_(GluteusMediusPosterior, GluteusMediusPosterior4) +_CODE_MACRO_(GluteusMediusPosterior, GluteusMediusPosterior5) +_CODE_MACRO_(GluteusMediusPosterior, GluteusMediusPosterior6) -_CODE_MACRO_(RectusFemoris1) -_CODE_MACRO_(RectusFemoris2) -_CODE_MACRO_(Semitendinosus1) -_CODE_MACRO_(Semimembranosus1) -_CODE_MACRO_(Semimembranosus2) -_CODE_MACRO_(Semimembranosus3) -_CODE_MACRO_(BicepsFemorisCaputLongum1) -_CODE_MACRO_(BicepsFemorisCaputBreve1) -_CODE_MACRO_(BicepsFemorisCaputBreve2) -_CODE_MACRO_(BicepsFemorisCaputBreve3) -_CODE_MACRO_(Sartorius1) -_CODE_MACRO_(IliacusLateralis1) -_CODE_MACRO_(IliacusLateralis2) -_CODE_MACRO_(IliacusMid1) -_CODE_MACRO_(IliacusMid2) -_CODE_MACRO_(IliacusMedialis1) -_CODE_MACRO_(IliacusMedialis2) -_CODE_MACRO_(GluteusMinimusAnterior1) -_CODE_MACRO_(GluteusMinimusMid1) -_CODE_MACRO_(GluteusMinimusPosterior1) -_CODE_MACRO_(GluteusMediusAnterior1) -_CODE_MACRO_(GluteusMediusAnterior2) -_CODE_MACRO_(GluteusMediusAnterior3) -_CODE_MACRO_(GluteusMediusAnterior4) -_CODE_MACRO_(GluteusMediusAnterior5) -_CODE_MACRO_(GluteusMediusAnterior6) - -_CODE_MACRO_(GluteusMediusPosterior1) -_CODE_MACRO_(GluteusMediusPosterior2) -_CODE_MACRO_(GluteusMediusPosterior3) -_CODE_MACRO_(GluteusMediusPosterior4) -_CODE_MACRO_(GluteusMediusPosterior5) -_CODE_MACRO_(GluteusMediusPosterior6) - -_CODE_MACRO_(GluteusMaximusSuperior1) -_CODE_MACRO_(GluteusMaximusSuperior2) -_CODE_MACRO_(GluteusMaximusSuperior3) -_CODE_MACRO_(GluteusMaximusSuperior4) -_CODE_MACRO_(GluteusMaximusSuperior5) -_CODE_MACRO_(GluteusMaximusSuperior6) -_CODE_MACRO_(GluteusMaximusInferior1) -_CODE_MACRO_(GluteusMaximusInferior2) -_CODE_MACRO_(GluteusMaximusInferior3) -_CODE_MACRO_(GluteusMaximusInferior4) -_CODE_MACRO_(GluteusMaximusInferior5) -_CODE_MACRO_(GluteusMaximusInferior6) -_CODE_MACRO_(TensorFasciaeLatae1) -_CODE_MACRO_(TensorFasciaeLatae2) -_CODE_MACRO_(Piriformis1) -_CODE_MACRO_(Gracilis1) -_CODE_MACRO_(Gracilis2) -_CODE_MACRO_(AdductorLongus1) -_CODE_MACRO_(AdductorLongus2) -_CODE_MACRO_(AdductorLongus3) -_CODE_MACRO_(AdductorLongus4) -_CODE_MACRO_(AdductorLongus5) -_CODE_MACRO_(AdductorLongus6) -_CODE_MACRO_(AdductorMagnusDistal1) -_CODE_MACRO_(AdductorMagnusDistal2) -_CODE_MACRO_(AdductorMagnusDistal3) -_CODE_MACRO_(AdductorMagnusMid1) -_CODE_MACRO_(AdductorMagnusMid2) -_CODE_MACRO_(AdductorMagnusMid3) -_CODE_MACRO_(AdductorMagnusMid4) -_CODE_MACRO_(AdductorMagnusMid5) -_CODE_MACRO_(AdductorMagnusMid6) -_CODE_MACRO_(AdductorMagnusProximal1) -_CODE_MACRO_(AdductorMagnusProximal2) -_CODE_MACRO_(AdductorMagnusProximal3) -_CODE_MACRO_(AdductorMagnusProximal4) -_CODE_MACRO_(AdductorBrevisProximal1) -_CODE_MACRO_(AdductorBrevisProximal2) -_CODE_MACRO_(AdductorBrevisMid1) -_CODE_MACRO_(AdductorBrevisMid2) -_CODE_MACRO_(AdductorBrevisDistal1) -_CODE_MACRO_(AdductorBrevisDistal2) -_CODE_MACRO_(GemellusInferior1) -_CODE_MACRO_(GemellusSuperior1) -_CODE_MACRO_(ObturatorExternusSuperior1) -_CODE_MACRO_(ObturatorExternusSuperior2) -_CODE_MACRO_(ObturatorExternusSuperior3) -_CODE_MACRO_(ObturatorExternusInferior1) -_CODE_MACRO_(ObturatorExternusInferior2) -_CODE_MACRO_(ObturatorInternus1) -_CODE_MACRO_(ObturatorInternus2) -_CODE_MACRO_(ObturatorInternus3) -_CODE_MACRO_(ObturatorInternus4) -_CODE_MACRO_(ObturatorInternus5) -_CODE_MACRO_(ObturatorInternus6) -_CODE_MACRO_(Pectineus1) -_CODE_MACRO_(Pectineus2) -_CODE_MACRO_(Pectineus3) -_CODE_MACRO_(Pectineus4) -_CODE_MACRO_(Plantaris1) -_CODE_MACRO_(Popliteus1) -_CODE_MACRO_(Popliteus2) -_CODE_MACRO_(Popliteus3) -_CODE_MACRO_(QuadratusFemoris1) -_CODE_MACRO_(QuadratusFemoris2) -_CODE_MACRO_(QuadratusFemoris3) -_CODE_MACRO_(QuadratusFemoris4) \ No newline at end of file +_CODE_MACRO_(GluteusMaximusSuperior, GluteusMaximusSuperior1) +_CODE_MACRO_(GluteusMaximusSuperior, GluteusMaximusSuperior2) +_CODE_MACRO_(GluteusMaximusSuperior, GluteusMaximusSuperior3) +_CODE_MACRO_(GluteusMaximusSuperior, GluteusMaximusSuperior4) +_CODE_MACRO_(GluteusMaximusSuperior, GluteusMaximusSuperior5) +_CODE_MACRO_(GluteusMaximusSuperior, GluteusMaximusSuperior6) +_CODE_MACRO_(GluteusMaximusInferior, GluteusMaximusInferior1) +_CODE_MACRO_(GluteusMaximusInferior, GluteusMaximusInferior2) +_CODE_MACRO_(GluteusMaximusInferior, GluteusMaximusInferior3) +_CODE_MACRO_(GluteusMaximusInferior, GluteusMaximusInferior4) +_CODE_MACRO_(GluteusMaximusInferior, GluteusMaximusInferior5) +_CODE_MACRO_(GluteusMaximusInferior, GluteusMaximusInferior6) +_CODE_MACRO_(TensorFasciaeLatae, TensorFasciaeLatae1) +_CODE_MACRO_(TensorFasciaeLatae, TensorFasciaeLatae2) +_CODE_MACRO_(Piriformis, Piriformis1) +_CODE_MACRO_(Gracilis, Gracilis1) +_CODE_MACRO_(Gracilis, Gracilis2) +_CODE_MACRO_(AdductorLongus, AdductorLongus1) +_CODE_MACRO_(AdductorLongus, AdductorLongus2) +_CODE_MACRO_(AdductorLongus, AdductorLongus3) +_CODE_MACRO_(AdductorLongus, AdductorLongus4) +_CODE_MACRO_(AdductorLongus, AdductorLongus5) +_CODE_MACRO_(AdductorLongus, AdductorLongus6) +_CODE_MACRO_(AdductorMagnusDistal, AdductorMagnusDistal1) +_CODE_MACRO_(AdductorMagnusDistal, AdductorMagnusDistal2) +_CODE_MACRO_(AdductorMagnusDistal, AdductorMagnusDistal3) +_CODE_MACRO_(AdductorMagnusMid, AdductorMagnusMid1) +_CODE_MACRO_(AdductorMagnusMid, AdductorMagnusMid2) +_CODE_MACRO_(AdductorMagnusMid, AdductorMagnusMid3) +_CODE_MACRO_(AdductorMagnusMid, AdductorMagnusMid4) +_CODE_MACRO_(AdductorMagnusMid, AdductorMagnusMid5) +_CODE_MACRO_(AdductorMagnusMid, AdductorMagnusMid6) +_CODE_MACRO_(AdductorMagnusProximal, AdductorMagnusProximal1) +_CODE_MACRO_(AdductorMagnusProximal, AdductorMagnusProximal2) +_CODE_MACRO_(AdductorMagnusProximal, AdductorMagnusProximal3) +_CODE_MACRO_(AdductorMagnusProximal, AdductorMagnusProximal4) +_CODE_MACRO_(AdductorBrevisProximal, AdductorBrevisProximal1) +_CODE_MACRO_(AdductorBrevisProximal, AdductorBrevisProximal2) +_CODE_MACRO_(AdductorBrevisMid, AdductorBrevisMid1) +_CODE_MACRO_(AdductorBrevisMid, AdductorBrevisMid2) +_CODE_MACRO_(AdductorBrevisDistal, AdductorBrevisDistal1) +_CODE_MACRO_(AdductorBrevisDistal, AdductorBrevisDistal2) +_CODE_MACRO_(Gemellus, GemellusInferior1) +_CODE_MACRO_(Gemellus, GemellusSuperior1) +_CODE_MACRO_(ObturatorExternusSuperior, ObturatorExternusSuperior1) +_CODE_MACRO_(ObturatorExternusSuperior, ObturatorExternusSuperior2) +_CODE_MACRO_(ObturatorExternusSuperior, ObturatorExternusSuperior3) +_CODE_MACRO_(ObturatorExternusInferior, ObturatorExternusInferior1) +_CODE_MACRO_(ObturatorExternusInferior, ObturatorExternusInferior2) +_CODE_MACRO_(ObturatorInternus, ObturatorInternus1) +_CODE_MACRO_(ObturatorInternus, ObturatorInternus2) +_CODE_MACRO_(ObturatorInternus, ObturatorInternus3) +_CODE_MACRO_(ObturatorInternus, ObturatorInternus4) +_CODE_MACRO_(ObturatorInternus, ObturatorInternus5) +_CODE_MACRO_(ObturatorInternus, ObturatorInternus6) +_CODE_MACRO_(Pectineus, Pectineus1) +_CODE_MACRO_(Pectineus, Pectineus2) +_CODE_MACRO_(Pectineus, Pectineus3) +_CODE_MACRO_(Pectineus, Pectineus4) +_CODE_MACRO_(Plantaris, Plantaris1) +_CODE_MACRO_(Popliteus, Popliteus1) +_CODE_MACRO_(Popliteus, Popliteus2) +_CODE_MACRO_(Popliteus, Popliteus3) +_CODE_MACRO_(QuadratusFemoris, QuadratusFemoris1) +_CODE_MACRO_(QuadratusFemoris, QuadratusFemoris2) +_CODE_MACRO_(QuadratusFemoris, QuadratusFemoris3) +_CODE_MACRO_(QuadratusFemoris, QuadratusFemoris4) \ No newline at end of file diff --git a/Body/AAUHuman/Trunk/AbdomenPassiveReactions.any b/Body/AAUHuman/Trunk/AbdomenPassiveReactions.any index b1b81352c..4abc768fe 100644 --- a/Body/AAUHuman/Trunk/AbdomenPassiveReactions.any +++ b/Body/AAUHuman/Trunk/AbdomenPassiveReactions.any @@ -1,25 +1,25 @@ AnyReacForce LayerReactions = { - AnyJoint &Layer1_SphericalRotational = .Abdominal.Layer_L1.Joints.Vertebrate_Layer; - AnyJoint &Layer2_SphericalRotational = .Abdominal.Layer_L2.Joints.Vertebrate_Layer; - AnyJoint &Layer3_SphericalRotational = .Abdominal.Layer_L3.Joints.Vertebrate_Layer; - AnyJoint &Layer4_SphericalRotational = .Abdominal.Layer_L4.Joints.Vertebrate_Layer; - AnyJoint &Layer5_SphericalRotational = .Abdominal.Layer_L5.Joints.Vertebrate_Layer; + AnyJoint &Layer1_SphericalRotational = .Layer_L1.Joints.Vertebrate_Layer; + AnyJoint &Layer2_SphericalRotational = .Layer_L2.Joints.Vertebrate_Layer; + AnyJoint &Layer3_SphericalRotational = .Layer_L3.Joints.Vertebrate_Layer; + AnyJoint &Layer4_SphericalRotational = .Layer_L4.Joints.Vertebrate_Layer; + AnyJoint &Layer5_SphericalRotational = .Layer_L5.Joints.Vertebrate_Layer; - AnyJoint &Layer1_YCavitySeg_Driver = .Abdominal.Layer_L1.Joints.BaseSegPosterior_CavitySegPosterior; - AnyJoint &Layer2_YCavitySeg_Driver = .Abdominal.Layer_L2.Joints.BaseSegPosterior_CavitySegPosterior; - AnyJoint &Layer3_YCavitySeg_Driver = .Abdominal.Layer_L3.Joints.BaseSegPosterior_CavitySegPosterior; - AnyJoint &Layer4_YCavitySeg_Driver = .Abdominal.Layer_L4.Joints.BaseSegPosterior_CavitySegPosterior; - AnyJoint &Layer5_YCavitySeg_Driver = .Abdominal.Layer_L5.Joints.BaseSegPosterior_CavitySegPosterior; + AnyJoint &Layer1_YCavitySeg_Driver = .Layer_L1.Joints.BaseSegPosterior_CavitySegPosterior; + AnyJoint &Layer2_YCavitySeg_Driver = .Layer_L2.Joints.BaseSegPosterior_CavitySegPosterior; + AnyJoint &Layer3_YCavitySeg_Driver = .Layer_L3.Joints.BaseSegPosterior_CavitySegPosterior; + AnyJoint &Layer4_YCavitySeg_Driver = .Layer_L4.Joints.BaseSegPosterior_CavitySegPosterior; + AnyJoint &Layer5_YCavitySeg_Driver = .Layer_L5.Joints.BaseSegPosterior_CavitySegPosterior; - AnyKinMeasure &Layer1_X_Driver = .Abdominal.Layer_L1.Joints.BaseSeg_Posterior_Anterior_constraint; - AnyKinMeasure &Layer2_X_Driver = .Abdominal.Layer_L2.Joints.BaseSeg_Posterior_Anterior_constraint; - AnyKinMeasure &Layer3_X_Driver = .Abdominal.Layer_L3.Joints.BaseSeg_Posterior_Anterior_constraint; - AnyKinMeasure &Layer4_X_Driver = .Abdominal.Layer_L4.Joints.BaseSeg_Posterior_Anterior_constraint; - AnyKinMeasure &Layer5_X_Driver = .Abdominal.Layer_L5.Joints.BaseSeg_Posterior_Anterior_constraint; + AnyKinMeasure &Layer1_X_Driver = .Layer_L1.Joints.BaseSeg_Posterior_Anterior_constraint; + AnyKinMeasure &Layer2_X_Driver = .Layer_L2.Joints.BaseSeg_Posterior_Anterior_constraint; + AnyKinMeasure &Layer3_X_Driver = .Layer_L3.Joints.BaseSeg_Posterior_Anterior_constraint; + AnyKinMeasure &Layer4_X_Driver = .Layer_L4.Joints.BaseSeg_Posterior_Anterior_constraint; + AnyKinMeasure &Layer5_X_Driver = .Layer_L5.Joints.BaseSeg_Posterior_Anterior_constraint; AnyKinMeasureOrg DiaphraghmSupport = { - AnyKinMeasure &ref = ..Abdominal.Diaphragm.Joints.CavitySegConstraint.measure; + AnyKinMeasure &ref = ..Diaphragm.Joints.CavitySegConstraint.measure; MeasureOrganizer = {1}; }; }; diff --git a/Body/AAUHuman/Trunk/Abdominal/AbdominalPressureModel.any b/Body/AAUHuman/Trunk/Abdominal/AbdominalPressureModel.any index 3419b97da..860499590 100644 --- a/Body/AAUHuman/Trunk/Abdominal/AbdominalPressureModel.any +++ b/Body/AAUHuman/Trunk/Abdominal/AbdominalPressureModel.any @@ -5,7 +5,7 @@ #define INTER_LAYER_L5PELVIC /// The abdominal model consists of a series of layers with individual volumes and pressure muscles -AnyFolder Abdominal={ +AnyFolder Abdominal = { AnyFolder Parameters ={ AnyVar LayerMeasureSplineStart= 0.6; diff --git a/Body/AAUHuman/Trunk/CreateMeshForWrapping.any b/Body/AAUHuman/Trunk/CreateMeshForWrapping.any index e05bc2ca8..45738c1f5 100644 --- a/Body/AAUHuman/Trunk/CreateMeshForWrapping.any +++ b/Body/AAUHuman/Trunk/CreateMeshForWrapping.any @@ -62,9 +62,9 @@ AnySurfEllipsoid mesh_Full = { AnyFloat R1 = vnorm(.EllipsoidPoint2.sRel-.EllipsoidCenter.sRel); AnyFloat R3 = vnorm(.EllipsoidPoint1.sRel-.EllipsoidCenter.sRel); Radius ={R1,(R1+R3)/6,R3}; -// viewSurface ={ -// Visible =On; -// }; + // viewSurface ={ + // Visible =On; + // }; }; @@ -86,10 +86,10 @@ AnyRefNode Right ={ AnyFloat R3 = vnorm(.ECalculatedPoint0.sRel-.ECenterSideEllipsoid.sRel); Radius ={R1,R3,(R1+R3)/4}; -// viewSurface ={ -// RGB={0,1,0}; -// Visible =On; -// }; + // viewSurface ={ + // RGB={0,1,0}; + // Visible =On; + // }; }; @@ -114,10 +114,10 @@ AnyRefNode Left ={ AnyFloat R3 = vnorm(.ECalculatedPoint0.sRel-.ECenterSideEllipsoid.sRel); Radius ={R1,R3,(R1+R3)/4}; -// viewSurface ={ -// RGB={0,1,0}; -// Visible =On; -// }; + // viewSurface ={ + // RGB={0,1,0}; + // Visible =On; + // }; }; }; @@ -163,9 +163,6 @@ AnySurfTriCylMesh mesh = { arrcat(....Data.unscaled.ModelParameters.Abdominal.AllLayers.AbdominalPoints.calculations.Right._LAYER_.inner_points[10], flip(....Data.unscaled.ModelParameters.Abdominal.AllLayers.AbdominalPoints.calculations.Left._LAYER_.inner_points[10],0))); - - - AnyInt MeshSize=....Data.unscaled.ModelParameters.Abdominal.AllLayers.AbdominalPoints.calculations.Right._LAYER_.n_points; Points =.ScaleFunction ( arrcat( @@ -257,11 +254,6 @@ AnySurfTriMesh mesh = { flip(....Data.unscaled.ModelParameters.Abdominal.AllLayers.AbdominalPoints.calculations.Left._LAYER_.inner_points[10],0))); - - - - - AnyInt MeshSize=....Data.unscaled.ModelParameters.Abdominal.AllLayers.AbdominalPoints.calculations.Right._LAYER_.n_points; Points =.ScaleFunction ( arrcat( @@ -300,14 +292,8 @@ AnySurfTriMesh mesh = { ) ) ; - - - - Triangles = - { - - - // {1092, 1093, 1015}, + Triangles = { + //{1092, 1093, 1015}, //{1093, 1094, 1016}, //{1094, 1095, 1017}, //{1095, 1096, 1018}, @@ -2419,20 +2405,11 @@ AnySurfTriMesh mesh = { {231, 154, 153}, {232, 155, 154}, {233, 78, 155}, - - - - - - - }; - - - - + }; }; #endif + #if MESH_TYPE == "ELLIPSOID_MIRRORED_POSTERIOR" AnyFloat FrontNodes_sRels = { diff --git a/Body/AAUHuman/Trunk/MusclesLeft.any b/Body/AAUHuman/Trunk/MusclesLeft.any index e8014f176..4b8819948 100644 --- a/Body/AAUHuman/Trunk/MusclesLeft.any +++ b/Body/AAUHuman/Trunk/MusclesLeft.any @@ -2,8 +2,8 @@ #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ -AnyFolder Transversus = { -AnyMuscleViaPoint TransversusL1 = { +MuscleGroup Transversus = { + AnyMuscleViaPoint TransversusL1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Transversus.Transversus_1; AnyRefNode &Org = ....Segments.L1Seg.TransversusInsNode_L; AnyRefNode &Via01 = ....Abdominal.Layer_L1.BaseSegPosterior.TransversusPoints.Left.nn03; @@ -42,7 +42,7 @@ AnyMuscleViaPoint TransversusL1 = { AnyRefNode &Via07 = ....Abdominal.Layer_L3.BaseSegAnterior.TransversusPoints.Left.nn06; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - + AnyMuscleViaPoint TransversusL4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Transversus.Transversus_4; AnyRefNode &Org = ....Segments.L4Seg.TransversusInsNode_L; @@ -55,7 +55,7 @@ AnyMuscleViaPoint TransversusL1 = { AnyRefNode &Via07 = ....Abdominal.Layer_L4.BaseSegAnterior.TransversusPoints.Left.nn06; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - + AnyMuscleViaPoint TransversusL5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Transversus.Transversus_5; AnyRefNode &Org = ....Segments.L5Seg.TransversusInsNode_L; @@ -70,7 +70,7 @@ AnyMuscleViaPoint TransversusL1 = { }; }; -AnyFolder Diaphragm = { +MuscleGroup Diaphragm = { AnyMuscleShortestPath L1_Diaphragm1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.L1_Diaphragm1; @@ -79,13 +79,13 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.L1_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath L1_Diaphragm2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.L1_Diaphragm2; AnyRefNode &Org = ....Segments.L1Seg.L1_DiaphragmNode2L; @@ -93,13 +93,13 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.L1_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath L2_Diaphragm1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.L2_Diaphragm1; AnyRefNode &Org = ....Segments.L2Seg.L2_DiaphragmNode1L; @@ -107,13 +107,13 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.L2_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath L2_Diaphragm2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.L2_Diaphragm2; AnyRefNode &Org = ....Segments.L2Seg.L2_DiaphragmNode2L; @@ -121,7 +121,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.L2_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -135,7 +135,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.L1TransverseProcess_Diaphragm; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -148,7 +148,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.R12_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -161,7 +161,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Left.R12_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -174,7 +174,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.R11_Diaphragm3; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -187,7 +187,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.R11_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -200,7 +200,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.R11_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -213,7 +213,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.R10_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -226,7 +226,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.R10_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -239,7 +239,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.R10_Diaphragm3; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -248,15 +248,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode7; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode7L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode7L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode7L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode7L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm7Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm7; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -265,15 +265,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode6; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode6L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode6L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode6L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode6L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm6Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm6; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -282,15 +282,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode5; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode5L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode5L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode5L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode5L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm5Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm5; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -299,15 +299,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode4; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode4L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode4L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode4L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode4L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm4Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm4; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -316,15 +316,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode3; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode3L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode3L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode3L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode3L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm3Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm3; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -333,15 +333,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode2; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode2L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode2L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode2L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode2L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm2Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -350,21 +350,21 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.CC_DiaphragmNode1; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode1L; + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.CC_DiaphragmNode1L; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode1L; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode1L; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm1Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.CC_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath Xiphoid_Diaphragm = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Diaphragm.Xiphoid_Diaphragm; AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeL; @@ -372,7 +372,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Left.Xiphoid_Diaphragm; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -381,7 +381,7 @@ AnyFolder Diaphragm = { }; #endif -AnyFolder ErectorSpinae = { +MuscleGroup ErectorSpinae = { AnyMuscleViaPoint ILplL1CI = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.ErectorSpinae.ILplL1CI; AnyRefNode &Org = ....Segments.L1Seg.ILplL1CINodeL; @@ -1002,979 +1002,929 @@ AnyFolder ErectorSpinae = { #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ +#if IC_TYPE == OLD + +MuscleGroup InterCostalisExternal(searchString="*.*") = { + SplineMuscle_CreateMuscle IC_Ext_R1R2( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R1Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Left.IC_R1_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R2Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R2Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R3Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R4Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R4Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R5Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R6Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R6Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R7Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R7Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R8Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R8Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R9Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R9Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R10Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R10Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R11Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), + OriginSegment=....Segments.Left.R11Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Ext_Inf.Points, + InsertionSegment=....Segments.Left.R12Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Left.IC_R12_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 + )= {}; +}; - - - - - #if IC_TYPE == OLD - - - -AnyFolder InterCostalisExternal = - { - SplineMuscle_CreateMuscle IC_Ext_R1R2( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R1Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Left.IC_R1_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R2Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R2Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R3Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R4Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R4Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R5Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R6Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R6Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R7Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R7Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R8Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R8Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R9Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R9Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R10Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 - )={}; +MuscleGroup InterCostalisInternal(searchString="*.*") = { + + SplineMuscle_CreateMuscle IC_Int_R1R2 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R1Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Left.IC_R1_Int_Inf.Points, + InsertionSegment=....Segments.Left.R2Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R1R2 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE)+1; + //The Last element is defined manually + AnyMuscleViaPoint elem_sternum = { + AnyRefNode &Org = .....Segments.SternumSeg.Left_IC_Int_R1R2_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - SplineMuscle_CreateMuscle IC_Ext_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R10Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R11Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), - OriginSegment=....Segments.Left.R11Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Ext_Inf.Points, - InsertionSegment=....Segments.Left.R12Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Left.IC_R12_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 - )={}; + }; }; - - AnyFolder InterCostalisInternal = - { - - SplineMuscle_CreateMuscle IC_Int_R1R2 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R1Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Left.IC_R1_Int_Inf.Points, - InsertionSegment=....Segments.Left.R2Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R1R2 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE)+1; - //The Last element is defined manually - AnyMuscleViaPoint elem_sternum = { - AnyRefNode &Org = .....Segments.SternumSeg.Left_IC_Int_R1R2_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - + SplineMuscle_CreateMuscle IC_Int_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R2Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Int_Inf.Points, + InsertionSegment=....Segments.Left.R3Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R2R3 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R2R3_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - }; - - - - SplineMuscle_CreateMuscle IC_Int_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R2Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Int_Inf.Points, - InsertionSegment=....Segments.Left.R3Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R2R3 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R2R3_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R3Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Int_Inf.Points, - InsertionSegment=....Segments.Left.R4Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R3R4 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R3R4_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R4Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Int_Inf.Points, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R4R5 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R4R5_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R5Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Int_Inf.Points, - InsertionSegment=....Segments.Left.R6Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R5R6 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R5R6_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - SplineMuscle_CreateMuscle IC_Int_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R6Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Int_Inf.Points, - InsertionSegment=....Segments.Left.R7Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R6R7 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R6R7_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R7Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Int_Inf.Points, - InsertionSegment=....Segments.Left.R8Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R7R8 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R7R8_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R7R8_elem_sternum; - #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R3Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Int_Inf.Points, + InsertionSegment=....Segments.Left.R4Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R3R4 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R3R4_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R4Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Int_Inf.Points, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R4R5 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R4R5_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R5Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Int_Inf.Points, + InsertionSegment=....Segments.Left.R6Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R5R6 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R5R6_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - SplineMuscle_CreateMuscle IC_Int_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R8Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Int_Inf.Points, - InsertionSegment=....Segments.Left.R9Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R8R9 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R6Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Int_Inf.Points, + InsertionSegment=....Segments.Left.R7Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R6R7 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R6R7_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R7Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Int_Inf.Points, + InsertionSegment=....Segments.Left.R8Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R7R8 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R8R9_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R8R9_elem_sternum; + AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R7R8_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R7R8_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; - - SplineMuscle_CreateMuscle IC_Int_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R9Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Int_Inf.Points, - InsertionSegment=....Segments.Left.R10Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R9R10 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { + }; + + SplineMuscle_CreateMuscle IC_Int_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R8Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Int_Inf.Points, + InsertionSegment=....Segments.Left.R9Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R8R9 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R8R9_elem_sternum; #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R8R9_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R10Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Int_Inf.Points, - InsertionSegment=....Segments.Left.R11Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R10R11 - )={}; - - SplineMuscle_CreateMuscle IC_Int_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-1), - OriginSegment=....Segments.Left.R11Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Int_Inf.Points, - InsertionSegment=....Segments.Left.R12Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Left.IC_R12_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R11R12 - )={}; - }; - - - - - - - - AnyFolder InnermostInterCostalis = - { - - SplineMuscle_CreateMuscle IC_Inn_R1R2( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R1Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Left.IC_R1_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R2Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R2Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R3Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R4Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R4Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R5Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R6Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R6Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R7Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R7Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R8Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R8Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R9Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R9Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R10Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R10Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R11Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), - OriginSegment=....Segments.Left.R11Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Inn_Inf.Points, - InsertionSegment=....Segments.Left.R12Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Left.IC_R12_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 - )={}; - - }; - #endif - - - - - - - - - - - - - - #if IC_TYPE != OLD - // #if IC_TYPE== MULTI_OFFSET + AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R9Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Int_Inf.Points, + InsertionSegment=....Segments.Left.R10Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R9R10 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R9R10_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R9R10_elem_sternum; + #endif + AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R10Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Int_Inf.Points, + InsertionSegment=....Segments.Left.R11Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R10R11 + )= {}; + + SplineMuscle_CreateMuscle IC_Int_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-1), + OriginSegment=....Segments.Left.R11Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Int_Inf.Points, + InsertionSegment=....Segments.Left.R12Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Left.IC_R12_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisInternal.IC_Int_R11R12 + )= {}; +}; +MuscleGroup InnermostInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscle IC_Inn_R1R2( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R1Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Left.IC_R1_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R2Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R2Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Left.IC_R2_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R3Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Left.IC_R3_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R4Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R4Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Left.IC_R4_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R5Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Left.IC_R5_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R6Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R6Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Left.IC_R6_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R7Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R7Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Left.IC_R7_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R8Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R8Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Left.IC_R8_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R9Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R9Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Left.IC_R9_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R10Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R10Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Left.IC_R10_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R11Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), + OriginSegment=....Segments.Left.R11Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Left.IC_R11_Inn_Inf.Points, + InsertionSegment=....Segments.Left.R12Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Left.IC_R12_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 + )= {}; - AnyFolder InnermostInterCostalis ={ - - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R1R2 ( - CREATE_ELEMENTS= IC_MULTIPLIER*IC_SIZE, - OriginSegment=....Segments.Left.R1Seg, - ORIGIN_POINTS=....Segments.Left.R1Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R2Seg, - INSERTION_POINTS=....Segments.Left.R2Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 - )={DesiredAngle = 0;}; +}; +#endif - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R2Seg, - ORIGIN_POINTS=....Segments.Left.R2Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R3Seg, - INSERTION_POINTS=....Segments.Left.R3Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 - )={DesiredAngle = 0;}; +#if IC_TYPE != OLD + +MuscleGroup InnermostInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R1R2 ( + CREATE_ELEMENTS= IC_MULTIPLIER*IC_SIZE, + OriginSegment=....Segments.Left.R1Seg, + ORIGIN_POINTS=....Segments.Left.R1Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R2Seg, + INSERTION_POINTS=....Segments.Left.R2Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R2Seg, + ORIGIN_POINTS=....Segments.Left.R2Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R3Seg, + INSERTION_POINTS=....Segments.Left.R3Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R3Seg, + ORIGIN_POINTS=....Segments.Left.R3Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R4Seg, + INSERTION_POINTS=....Segments.Left.R4Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R4Seg, + ORIGIN_POINTS=....Segments.Left.R4Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Segments.Left.R5Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R5Seg, + ORIGIN_POINTS=....Segments.Left.R5Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R6Seg, + INSERTION_POINTS=....Segments.Left.R6Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R6Seg, + ORIGIN_POINTS=....Segments.Left.R6Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R7Seg, + INSERTION_POINTS=....Segments.Left.R7Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R7Seg, + ORIGIN_POINTS=....Segments.Left.R7Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R8Seg, + INSERTION_POINTS=....Segments.Left.R8Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R8Seg, + ORIGIN_POINTS=....Segments.Left.R8Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R9Seg, + INSERTION_POINTS=....Segments.Left.R9Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Left.R9Seg, + ORIGIN_POINTS=....Segments.Left.R9Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R10Seg, + INSERTION_POINTS=....Segments.Left.R10Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R10Seg, + ORIGIN_POINTS=....Segments.Left.R10Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R11Seg, + INSERTION_POINTS=....Segments.Left.R11Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), + OriginSegment=....Segments.Left.R11Seg, + ORIGIN_POINTS=....Segments.Left.R11Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Left.R12Seg, + INSERTION_POINTS=....Segments.Left.R12Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 + )= {DesiredAngle = 0;}; + +}; +MuscleGroup InternalInterCostalis(searchString="*.*") = { + + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R1R2 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1-3), + OriginSegment=....Segments.Left.R1Seg, + ORIGIN_POINTS=....Segments.Left.R1Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R2Seg, + INSERTION_POINTS=....Segments.Left.R2Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 + )= { + DesiredAngle =-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1-3); + //The Last element is defined manually + AnyMuscleViaPoint elem_sternum = { + AnyRefNode &Org = .....Segments.SternumSeg.Left_IC_Int_R1R2_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R3Seg, - ORIGIN_POINTS=....Segments.Left.R3Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R4Seg, - INSERTION_POINTS=....Segments.Left.R4Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R4Seg, - ORIGIN_POINTS=....Segments.Left.R4Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Segments.Left.R5Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R5Seg, - ORIGIN_POINTS=....Segments.Left.R5Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R6Seg, - INSERTION_POINTS=....Segments.Left.R6Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R6Seg, - ORIGIN_POINTS=....Segments.Left.R6Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R7Seg, - INSERTION_POINTS=....Segments.Left.R7Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R7Seg, - ORIGIN_POINTS=....Segments.Left.R7Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R8Seg, - INSERTION_POINTS=....Segments.Left.R8Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 - )={DesiredAngle = 0;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R8Seg, - ORIGIN_POINTS=....Segments.Left.R8Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R9Seg, - INSERTION_POINTS=....Segments.Left.R9Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Left.R9Seg, - ORIGIN_POINTS=....Segments.Left.R9Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R10Seg, - INSERTION_POINTS=....Segments.Left.R10Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R10Seg, - ORIGIN_POINTS=....Segments.Left.R10Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R11Seg, - INSERTION_POINTS=....Segments.Left.R11Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 - )={DesiredAngle = 0;}; - + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R2Seg, + ORIGIN_POINTS=....Segments.Left.R2Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R3Seg, + INSERTION_POINTS=....Segments.Left.R3Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R2R3_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), - OriginSegment=....Segments.Left.R11Seg, - ORIGIN_POINTS=....Segments.Left.R11Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Left.R12Seg, - INSERTION_POINTS=....Segments.Left.R12Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 - )={DesiredAngle = 0;}; - -}; - + + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R3Seg, + ORIGIN_POINTS=....Segments.Left.R3Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R4Seg, + INSERTION_POINTS=....Segments.Left.R4Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R3R4_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; + + }; + SplineMuscle_CreateMuscleMultiOffset IC_Int_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R4Seg, + ORIGIN_POINTS=....Segments.Left.R4Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Segments.Left.R5Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R4R5_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; + }; - AnyFolder InternalInterCostalis ={ - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R1R2 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1-3), - OriginSegment=....Segments.Left.R1Seg, - ORIGIN_POINTS=....Segments.Left.R1Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R2Seg, - INSERTION_POINTS=....Segments.Left.R2Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 - )={ - DesiredAngle =-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1-3); - //The Last element is defined manually - AnyMuscleViaPoint elem_sternum = { - AnyRefNode &Org = .....Segments.SternumSeg.Left_IC_Int_R1R2_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + SplineMuscle_CreateMuscleMultiOffset IC_Int_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R5Seg, + ORIGIN_POINTS=....Segments.Left.R5Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R6Seg, + INSERTION_POINTS=....Segments.Left.R6Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R5R6_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - - - - }; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R2Seg, - ORIGIN_POINTS=....Segments.Left.R2Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R3Seg, - INSERTION_POINTS=....Segments.Left.R3Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R2R3_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - - - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R3Seg, - ORIGIN_POINTS=....Segments.Left.R3Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R4Seg, - INSERTION_POINTS=....Segments.Left.R4Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R3R4_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - }; - - }; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R4Seg, - ORIGIN_POINTS=....Segments.Left.R4Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Segments.Left.R5Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R4R5_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - }; - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R5Seg, - ORIGIN_POINTS=....Segments.Left.R5Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R6Seg, - INSERTION_POINTS=....Segments.Left.R6Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R5R6_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R6Seg, - ORIGIN_POINTS=....Segments.Left.R6Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R7Seg, - INSERTION_POINTS=....Segments.Left.R7Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); -AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R6R7_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; -}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; - SplineMuscle_CreateMuscleMultiOffset IC_Int_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R7Seg, - ORIGIN_POINTS=....Segments.Left.R7Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R8Seg, - INSERTION_POINTS=....Segments.Left.R8Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 - )={ - DesiredAngle=-45; + }; + + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R6Seg, + ORIGIN_POINTS=....Segments.Left.R6Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R7Seg, + INSERTION_POINTS=....Segments.Left.R7Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 + )= { + DesiredAngle=-45; NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R7R8_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R7R8_elem_sternum; - #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R6R7_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R8Seg, - ORIGIN_POINTS=....Segments.Left.R8Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R9Seg, - INSERTION_POINTS=....Segments.Left.R9Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R7Seg, + ORIGIN_POINTS=....Segments.Left.R7Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R8Seg, + INSERTION_POINTS=....Segments.Left.R8Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R8R9_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R8R9_elem_sternum; + AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R7R8_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R7R8_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R9Seg, - ORIGIN_POINTS=....Segments.Left.R9Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R10Seg, - INSERTION_POINTS=....Segments.Left.R10Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { + }; + + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R8Seg, + ORIGIN_POINTS=....Segments.Left.R8Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R9Seg, + INSERTION_POINTS=....Segments.Left.R9Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R8R9_elem_sternum; #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R8R9_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R10Seg, - ORIGIN_POINTS=....Segments.Left.R10Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R11Seg, - INSERTION_POINTS=....Segments.Left.R11Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 - )={DesiredAngle=-45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), - OriginSegment=....Segments.Left.R11Seg, - ORIGIN_POINTS=....Segments.Left.R11Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Left.R12Seg, - INSERTION_POINTS=....Segments.Left.R12Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 - )={DesiredAngle=-45;}; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - + SplineMuscle_CreateMuscleMultiOffset IC_Int_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R9Seg, + ORIGIN_POINTS=....Segments.Left.R9Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R10Seg, + INSERTION_POINTS=....Segments.Left.R10Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = .....Segments.Left.CostalCartilageSeg.Left_IC_Int_R9R10_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Left_IC_Int_R9R10_elem_sternum; + #endif + AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; - AnyFolder ExternalInterCostalis ={ + SplineMuscle_CreateMuscleMultiOffset IC_Int_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R10Seg, + ORIGIN_POINTS=....Segments.Left.R10Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R11Seg, + INSERTION_POINTS=....Segments.Left.R11Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 + )= {DesiredAngle=-45;}; - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R1R2 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R1Seg, - ORIGIN_POINTS=....Segments.Left.R1Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R2Seg, - INSERTION_POINTS=....Segments.Left.R2Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R2Seg, - ORIGIN_POINTS=....Segments.Left.R2Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R3Seg, - INSERTION_POINTS=....Segments.Left.R3Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R3Seg, - ORIGIN_POINTS=....Segments.Left.R3Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R4Seg, - INSERTION_POINTS=....Segments.Left.R4Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R4Seg, - ORIGIN_POINTS=....Segments.Left.R4Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R5Seg, - INSERTION_POINTS=....Segments.Left.R5Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R5Seg, - ORIGIN_POINTS=....Segments.Left.R5Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R6Seg, - INSERTION_POINTS=....Segments.Left.R6Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R6Seg, - ORIGIN_POINTS=....Segments.Left.R6Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R7Seg, - INSERTION_POINTS=....Segments.Left.R7Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R7Seg, - ORIGIN_POINTS=....Segments.Left.R7Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R8Seg, - INSERTION_POINTS=....Segments.Left.R8Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R8Seg, - ORIGIN_POINTS=....Segments.Left.R8Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R9Seg, - INSERTION_POINTS=....Segments.Left.R9Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 - )={DesiredAngle=45;}; - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Left.R9Seg, - ORIGIN_POINTS=....Segments.Left.R9Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R10Seg, - INSERTION_POINTS=....Segments.Left.R10Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Left.R10Seg, - ORIGIN_POINTS=....Segments.Left.R10Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R11Seg, - INSERTION_POINTS=....Segments.Left.R11Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), - OriginSegment=....Segments.Left.R11Seg, - ORIGIN_POINTS=....Segments.Left.R11Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Left.R12Seg, - INSERTION_POINTS=....Segments.Left.R12Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 - )={DesiredAngle=45;}; - }; + SplineMuscle_CreateMuscleMultiOffset IC_Int_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), + OriginSegment=....Segments.Left.R11Seg, + ORIGIN_POINTS=....Segments.Left.R11Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Left.R12Seg, + INSERTION_POINTS=....Segments.Left.R12Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 + )= {DesiredAngle=-45;}; +}; - +MuscleGroup ExternalInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R1R2 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R1Seg, + ORIGIN_POINTS=....Segments.Left.R1Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R2Seg, + INSERTION_POINTS=....Segments.Left.R2Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R1R2 + )= {DesiredAngle=45;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R2Seg, + ORIGIN_POINTS=....Segments.Left.R2Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R3Seg, + INSERTION_POINTS=....Segments.Left.R3Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R2R3 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R3Seg, + ORIGIN_POINTS=....Segments.Left.R3Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R4Seg, + INSERTION_POINTS=....Segments.Left.R4Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R3R4 + )= {DesiredAngle=45;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R4Seg, + ORIGIN_POINTS=....Segments.Left.R4Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R5Seg, + INSERTION_POINTS=....Segments.Left.R5Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R4R5 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R5Seg, + ORIGIN_POINTS=....Segments.Left.R5Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R6Seg, + INSERTION_POINTS=....Segments.Left.R6Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R5R6 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R6Seg, + ORIGIN_POINTS=....Segments.Left.R6Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R7Seg, + INSERTION_POINTS=....Segments.Left.R7Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R6R7 + )= {DesiredAngle=45;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R7Seg, + ORIGIN_POINTS=....Segments.Left.R7Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R8Seg, + INSERTION_POINTS=....Segments.Left.R8Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R7R8 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R8Seg, + ORIGIN_POINTS=....Segments.Left.R8Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R9Seg, + INSERTION_POINTS=....Segments.Left.R9Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R8R9 + )= {DesiredAngle=45;}; + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Left.R9Seg, + ORIGIN_POINTS=....Segments.Left.R9Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R10Seg, + INSERTION_POINTS=....Segments.Left.R10Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R9R10 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Left.R10Seg, + ORIGIN_POINTS=....Segments.Left.R10Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R11Seg, + INSERTION_POINTS=....Segments.Left.R11Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R10R11 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), + OriginSegment=....Segments.Left.R11Seg, + ORIGIN_POINTS=....Segments.Left.R11Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Left.R12Seg, + INSERTION_POINTS=....Segments.Left.R12Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Left.InterCostalisExternal.IC_Ext_R11R12 + )= {DesiredAngle=45;}; +}; #endif - - - - - #endif -AnyFolder LevatorCostarum = { - +MuscleGroup LevatorCostarum = { + AnyMuscleViaPoint LCBrC7R1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LevatorCostarum.LCModel_1; AnyRefNode &S4 = ....Segments.C7Seg.LCBrC7R1LOrg; @@ -1982,7 +1932,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCBrT1R2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LevatorCostarum.LCModel_2; AnyRefNode &S4 = ....Segments.T1Seg.LCBrT1R2LOrg; @@ -2054,7 +2004,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCBrT10R11 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LevatorCostarum.LCModel_11; AnyRefNode &S4 = ....Segments.T10Seg.LCBrT10R11LOrg; @@ -2070,7 +2020,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + // LONGUS AnyMuscleViaPoint LCLgT5R7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LevatorCostarum.LCModel_13; @@ -2095,7 +2045,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCLgT8R10 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LevatorCostarum.LCModel_16; AnyRefNode &S4 = ....Segments.T8Seg.LCLgT8R10LOrg; @@ -2111,7 +2061,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCLgT10R12 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LevatorCostarum.LCModel_18; AnyRefNode &S4 = ....Segments.T10Seg.LCLgT10R12LOrg; @@ -2119,10 +2069,10 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + }; -AnyFolder LongissimusCapitis = { +MuscleGroup LongissimusCapitis = { AnyMuscleViaPoint LongissimusCapitisC3C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongissimusCapitis.LongissimusCapitisC3C0; AnyRefNode &Org = ....Segments.C3Seg.LongissimusCapitisC3C0NodeL; @@ -2195,7 +2145,7 @@ AnyFolder LongissimusCapitis = { }; }; -AnyFolder LongissimusCervicis = { +MuscleGroup LongissimusCervicis = { AnyMuscleViaPoint LongissimusCervicisT1C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongissimusCervicis.LongissimusCervicisT1C2; AnyRefNode &Org = ....Segments.T1Seg.Left.LongissimusCervicisT1Node; @@ -2203,7 +2153,7 @@ AnyFolder LongissimusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LongissimusCervicisT2C3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongissimusCervicis.LongissimusCervicisT2C3; AnyRefNode &Org = ....Segments.T2Seg.Left.LongissimusCervicisT2Node; @@ -2219,7 +2169,7 @@ AnyFolder LongissimusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LongissimusCervicisT4C5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongissimusCervicis.LongissimusCervicisT4C5; AnyRefNode &Org = ....Segments.T4Seg.Left.LongissimusCervicisT4Node; @@ -2227,7 +2177,7 @@ AnyFolder LongissimusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LongissimusCervicisT5C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongissimusCervicis.LongissimusCervicisT5C6; AnyRefNode &Org = ....Segments.T5Seg.Left.LongissimusCervicisT5Node; @@ -2237,7 +2187,7 @@ AnyFolder LongissimusCervicis = { }; }; -AnyFolder LongusCapitis = { +MuscleGroup LongusCapitis = { AnyMuscleViaPoint LongusCapitisC6C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusCapitis.LongusCapitisC6C0; AnyRefNode &Org = ....Segments.C6Seg.LongusCapitisC6C0NodeL; @@ -2271,7 +2221,7 @@ AnyFolder LongusCapitis = { }; }; -AnyFolder LongusColli = { +MuscleGroup LongusColli = { // LongusColliVertical AnyMuscleViaPoint LongusColliT3C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliT3C6; @@ -2433,30 +2383,30 @@ AnyFolder LongusColli = { }; // LongusColliInferiorOblique - AnyMuscleViaPoint LongusColliInferiorObliqueT1C6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliInferiorObliqueT1C6; - AnyRefNode &Org = ....Segments.T1Seg.Left.LongusColliT1C4Node; - AnyRefNode &Ins = ....Segments.C6Seg.LongusCapitisC6C0NodeL; - viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint LongusColliInferiorObliqueT2C6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliInferiorObliqueT2C6; - AnyRefNode &Org = ....Segments.T2Seg.Left.LongusColliT2C5Node; - AnyRefNode &Ins = ....Segments.C6Seg.LongusCapitisC6C0NodeL; - viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint LongusColliInferiorObliqueT2C5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliInferiorObliqueT2C5; - AnyRefNode &Org = ....Segments.T2Seg.Left.LongusColliT2C5Node; - AnyRefNode &Ins = ....Segments.C5Seg.LongusCapitisC5C0NodeL; - viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; + AnyMuscleViaPoint LongusColliInferiorObliqueT1C6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliInferiorObliqueT1C6; + AnyRefNode &Org = ....Segments.T1Seg.Left.LongusColliT1C4Node; + AnyRefNode &Ins = ....Segments.C6Seg.LongusCapitisC6C0NodeL; + viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint LongusColliInferiorObliqueT2C6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliInferiorObliqueT2C6; + AnyRefNode &Org = ....Segments.T2Seg.Left.LongusColliT2C5Node; + AnyRefNode &Ins = ....Segments.C6Seg.LongusCapitisC6C0NodeL; + viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint LongusColliInferiorObliqueT2C5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.LongusColli.LongusColliInferiorObliqueT2C5; + AnyRefNode &Org = ....Segments.T2Seg.Left.LongusColliT2C5Node; + AnyRefNode &Ins = ....Segments.C5Seg.LongusCapitisC5C0NodeL; + viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; }; -AnyFolder Multifidi = { +MuscleGroup Multifidi = { AnyMuscleViaPoint MFdL1L3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Multifidi.MFdL1L3; AnyRefNode &Org = ....Segments.L1Seg.MFdL1L3NodeL; @@ -2504,7 +2454,7 @@ AnyFolder Multifidi = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MFmL2L5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Multifidi.MFmL2L5; AnyRefNode &Org = ....Segments.L2Seg.MFmL2L5NodeL; @@ -2512,7 +2462,7 @@ AnyFolder Multifidi = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MFmL3S1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Multifidi.MFmL3S1; AnyRefNode &Org = ....Segments.L3Seg.MFmL3S1NodeL; @@ -2615,7 +2565,7 @@ AnyFolder Multifidi = { }; }; -AnyFolder MultifidusCervicis = { +MuscleGroup MultifidusCervicis = { AnyMuscleViaPoint MultifidusCervicisC5C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisC5C2; AnyRefNode &Org = ....Segments.C5Seg.MultifidusCervicisC5C2NodeL; @@ -2623,7 +2573,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC6C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisC6C2; AnyRefNode &Org = ....Segments.C6Seg.MultifidusCervicisC6C2NodeL; @@ -2631,7 +2581,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC6C3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisC6C3; AnyRefNode &Org = ....Segments.C6Seg.MultifidusCervicisC6C2NodeL; @@ -2639,7 +2589,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC7C3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisC7C3; AnyRefNode &Org = ....Segments.C7Seg.MultifidusCervicisC7C3NodeL; @@ -2647,7 +2597,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC7C4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisC7C4; AnyRefNode &Org = ....Segments.C7Seg.MultifidusCervicisC7C4NodeL; @@ -2655,7 +2605,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT1C4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT1C4; AnyRefNode &Org = ....Segments.T1Seg.MultifidusCervicisT1C4NodeL; @@ -2663,7 +2613,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT1C5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT1C5; AnyRefNode &Org = ....Segments.T1Seg.MultifidusCervicisT1C5NodeL; @@ -2671,7 +2621,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT2C5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT2C5; AnyRefNode &Org = ....Segments.T2Seg.MultifidusCervicisT2C5NodeL; @@ -2679,7 +2629,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT2C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT2C6; AnyRefNode &Org = ....Segments.T2Seg.MultifidusCervicisT2C6NodeL; @@ -2687,7 +2637,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT3C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT3C6; AnyRefNode &Org = ....Segments.T3Seg.MultifidusCervicisT3C6NodeL; @@ -2695,7 +2645,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT3C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT3C7; AnyRefNode &Org = ....Segments.T3Seg.MultifidusCervicisT3C7NodeL; @@ -2703,7 +2653,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT4C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.MultifidusCervicis.MultifidusCervicisT4C7; AnyRefNode &Org = ....Segments.T4Seg.MultifidusCervicisT4C7NodeL; @@ -2713,1710 +2663,1693 @@ AnyFolder MultifidusCervicis = { }; }; -AnyFolder ObliquusExternus = { +MuscleGroup ObliquusExternus = { -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - - - - - - -#ifdef OBLIQUUS_WRAP_ON_CYLS -AnyMuscleShortestPath OEC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_1; - AnyRefNode &Org = ....Segments.Left.R6Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - SPLine.StringMesh=10; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OEC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_2; - AnyRefNode &Org = ....Segments.Left.R7Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif - - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_3; - AnyRefNode &Org = ....Segments.Left.R8Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + #ifdef OBLIQUUS_WRAP_ON_CYLS + AnyMuscleShortestPath OEC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_1; + AnyRefNode &Org = ....Segments.Left.R6Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=10; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_4; - AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif + AnyMuscleShortestPath OEC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_2; + AnyRefNode &Org = ....Segments.Left.R7Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + AnyMuscleShortestPath OEC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_3; + AnyRefNode &Org = ....Segments.Left.R8Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_5= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_5; - AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf0 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf0 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.OutwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn10.Translate.OutwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_6; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn11; - // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.VerticalCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn10.Translate.OutwardCyl; - SPLine.StringMesh=240; - - SPLine ={ - AnyMatrix InitWrapPos = { - // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleShortestPath OEC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_4; + AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_7; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn10; - - // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn08.Translate.VerticalCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.OutwardCyl; - - SPLine.StringMesh=240; - SPLine ={ - AnyMatrix InitWrapPos = { - // transf3D({0,-1.1*.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_8= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_8; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_00; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_9= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_9; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_0; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_10; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_11; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_12; - AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - - - - -#endif - - -#ifndef OBLIQUUS_WRAP_ON_CYLS - -AnyMuscleShortestPath OEC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_1; - AnyRefNode &Org = ....Segments.Left.R6Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif + AnyMuscleShortestPath OEC_5= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_5; + AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf0 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf0 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.OutwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn10.Translate.OutwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + AnyMuscleShortestPath OEC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_6; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn11; + + // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.VerticalCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn10.Translate.OutwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - - - - InitWrapPosVecArr = {&InitWrapPos}; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OEC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_2; - AnyRefNode &Org = ....Segments.Left.R7Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_3; - AnyRefNode &Org = ....Segments.Left.R8Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif + AnyMuscleShortestPath OEC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_7; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn10; + + // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn08.Translate.VerticalCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.OutwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + // transf3D({0,-1.1*.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - + AnyMuscleViaPoint OEC_8= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_8; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_00; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - + AnyMuscleViaPoint OEC_9= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_9; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_0; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.9)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// }; -// #endif - - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), - transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - }; - + AnyMuscleViaPoint OEC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_10; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleViaPoint OEC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_11; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_4; - AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #else -// //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - - SPLine.StringMesh=60; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -//AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// -// // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.85)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.95)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3) -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.95)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), - //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - }; - - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleViaPoint OEC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_12; + AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_5= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_5; - AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf0 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf0 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; - #endif -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - + #endif - SPLine.StringMesh=240; - SPLine ={ + #ifndef OBLIQUUS_WRAP_ON_CYLS + + AnyMuscleShortestPath OEC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_1; + AnyRefNode &Org = ....Segments.Left.R6Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), -// // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), -// -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -//AnyMatrix InitWrapPos = { -// transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), -// //transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.85)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.85)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + + + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -// -AnyMuscleShortestPath OEC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_6; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn11; - //AnySurfTriCylMesh &mesh4= Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=240; - - SPLine ={ -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// -// AnyMatrix InitWrapPos = { -// // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + AnyMuscleShortestPath OEC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_2; + AnyRefNode &Org = ....Segments.Left.R7Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OEC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_3; + AnyRefNode &Org = ....Segments.Left.R8Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + + + + SPLine.StringMesh=60; + + + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.9)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // }; + // #endif + + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + }; + + + + + InitWrapPosVecArr = {&InitWrapPos}; }; - - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_7; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn10; - // AnySurfTriCylMesh &mesh0 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; - // AnySurfTriCylMesh &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// #endif - -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - SPLine.StringMesh=240; - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// -// }; -// #endif -// -// -// #if MESH_TYPE == "QUAD" -// -// AnyMatrix InitWrapPos = { -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*20*4]+{0.01,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*20*4]+{0.01,0,0}, &.mesh5) -// }; -// #endif - - AnyMatrix InitWrapPos = { -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + AnyMuscleShortestPath OEC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_4; + AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #else + // //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + + SPLine.StringMesh=60; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + //AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // + // // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.85)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.95)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3) + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.95)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OEC_5= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_5; + AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf0 =....Segments.Left.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf0 =....Segments.SternalBodySeg.Left.ObliquusWrapping.Surf; + #endif + + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + // // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + // + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + //AnyMatrix InitWrapPos = { + // transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + // //transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.85)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.85)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + // + AnyMuscleShortestPath OEC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_6; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn11; + //AnySurfTriCylMesh &mesh4= Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + + SPLine.StringMesh=240; + + SPLine = { + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // + // AnyMatrix InitWrapPos = { + // // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OEC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_7; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Left.nn10; + // AnySurfTriCylMesh &mesh0 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // #endif + + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // + // }; + // #endif + // + // + // #if MESH_TYPE == "QUAD" + // + // AnyMatrix InitWrapPos = { + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*20*4]+{0.01,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*20*4]+{0.01,0,0}, &.mesh5) + // }; + // #endif + + AnyMatrix InitWrapPos = { + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_8= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_8; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_00; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_9= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_9; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_0; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_10; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_11; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_12; + AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + #endif + + #endif + + + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ + AnyMuscleViaPoint OEC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_1; + AnyRefNode &Org = ....Segments.Left.R6Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_2; + AnyRefNode &Org = ....Segments.Left.R7Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_3; + AnyRefNode &Org = ....Segments.Left.R8Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_4; + AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_5; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_8= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_8; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_00; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_9= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_9; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_0; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_10; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_11; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_12; - AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + AnyMuscleViaPoint OEC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_6; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusExternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_7; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusExternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_8= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_8; + AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusExternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + #endif }; -#endif - -#endif - - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ - AnyMuscleViaPoint OEC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_1; - AnyRefNode &Org = ....Segments.Left.R6Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; +MuscleGroup ObliquusInternus = { + + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ + + + #ifdef OBLIQUUS_WRAP_ON_CYLS + + AnyMuscleViaPoint OIC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_1; + AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_2; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_3; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_4; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_5; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_6; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_1; + #else + AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_1; + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + + AnyParamSurf &srf4 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn04.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf4.radius, 0.5*.srf4.Length}, &.srf4) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - AnyMuscleViaPoint OEC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_2; - AnyRefNode &Org = ....Segments.Left.R7Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_7; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_2; + #else + AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_2; + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn08.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - AnyMuscleViaPoint OEC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_3; - AnyRefNode &Org = ....Segments.Left.R8Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + + AnyMuscleShortestPath OIC_8 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeL; + AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Left.nn06; + + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Left.nn10.Translate.InwardCyl; + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn08.Translate.InwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - AnyMuscleViaPoint OEC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_4; - AnyRefNode &Org = ....Segments.Left.R9Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_8_extra = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_L; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Left.nn10.Translate.InwardCyl; + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn08.Translate.InwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - AnyMuscleViaPoint OEC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_5; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Left.ObliquusExternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_6; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusExternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleShortestPath OIC_9 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_9; + AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Left.nn11.Translate.InwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn10.Translate.InwardCyl; + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - AnyMuscleViaPoint OEC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_7; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusExternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleShortestPath OIC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_10; + AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn11.Translate.InwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_11; + AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn11.Translate.InwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn08.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - AnyMuscleViaPoint OEC_8= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusExternus.OEC_8; - AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusExternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_12; + AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn09.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - #endif -}; - - -AnyFolder ObliquusInternus = { - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - - - - - - - - -#ifdef OBLIQUUS_WRAP_ON_CYLS - - - -AnyMuscleViaPoint OIC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_1; - AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - - -AnyMuscleViaPoint OIC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_2; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_3; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_4; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_5; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_6; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_1; - #else - AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_1; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - - AnyParamSurf &srf4 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn04.Translate.InwardCyl; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf4.radius, 0.5*.srf4.Length}, &.srf4) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleShortestPath OIC_13= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_13; + AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn11.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_7; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_2; - #else - AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_2; + #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn08.Translate.InwardCyl; - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; + #ifndef OBLIQUUS_WRAP_ON_CYLS - - -AnyMuscleShortestPath OIC_8 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeL; - AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Left.nn06; - - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Left.nn10.Translate.InwardCyl; - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn08.Translate.InwardCyl; - - SPLine.StringMesh=240; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + AnyMuscleViaPoint OIC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_1; + AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - - - - - - - -AnyMuscleShortestPath OIC_8_extra = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_L; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Left.nn10.Translate.InwardCyl; - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn08.Translate.InwardCyl; - - SPLine.StringMesh=240; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + AnyMuscleViaPoint OIC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_2; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_9 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_9; - AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - - // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Left.nn11.Translate.InwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn10.Translate.InwardCyl; - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + AnyMuscleViaPoint OIC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_3; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - -AnyMuscleShortestPath OIC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_10; - AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Left.nn11.Translate.InwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn09.Translate.InwardCyl; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleViaPoint OIC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_4; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_11; - AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn11.Translate.InwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn08.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + AnyMuscleViaPoint OIC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_5; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_12; - AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn09.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + AnyMuscleShortestPath OIC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_6; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_1; + #else + AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_1; + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=60; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // //transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_13= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_13; - AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn11.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) - }; + + AnyMuscleShortestPath OIC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_7; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_2; + #else + AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_2; + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + + //// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -#endif - -#ifndef OBLIQUUS_WRAP_ON_CYLS - - -AnyMuscleViaPoint OIC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_1; - AnyRefNode &Org = ....Segments.Left.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - - -AnyMuscleViaPoint OIC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_2; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_3; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_4; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_5; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_6; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_1; - #else - AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_1; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; - // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// #endif + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_8 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_L; + // AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Left.nn05; + + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + //// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + + // AnySurfEllipsoid &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.mesh3; + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + // SolverVersion=3; + // StringSurfaceMap= {{Off,Off,Off,Off},{On,On,On,On}}; //no wrap before after via + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // // transf3D({0.0,2*.srf1.MajorRadius,-.srf1.MajorRadius}, &.srf1), + // // transf3D(.mesh1.Points[52]+{0.03,0,0}, &.mesh1), + // // transf3D(.mesh1.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*4]+{0.01,0,0}, &.mesh1), + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + //// transf3D(mesh.Points[floor(.mesh.MeshSize*4]+{0.01,0,0}, &.mesh), + // + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif + + AnyMatrix InitWrapPos = { + // transf3D({.mesh1.Radius[0],0,0}, &.mesh1), + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + }; + + + InitWrapPosVecArr = {&InitWrapPos}; + //InitWrapPosVecArr = {&InitWrapPos}; + + + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleShortestPath OIC_9 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_9; + AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeL; + AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Left.nn06; + + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - - - SPLine.StringMesh=60; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// //transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - }; - - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_7; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Left.CostalCartilageSeg.ObliquusInternus_2; - #else - AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_2; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - -//// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - - SPLine.StringMesh=240; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + // StringSurfaceMap= {{Off,Off,Off},{On,On,On}}; //no wrap before after via + StringSurfaceMap= {{Off,Off},{On,On}}; //no wrap before after via + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.6)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + InitWrapPosVecArr = {None,&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_8 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_L; - // AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Left.nn05; - - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; -//// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - -// AnySurfEllipsoid &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.mesh3; -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - -SPLine.StringMesh=240; - -SPLine ={ - // SolverVersion=3; - // StringSurfaceMap={{Off,Off,Off,Off},{On,On,On,On}}; //no wrap before after via - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif - -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// // transf3D({0.0,2*.srf1.MajorRadius,-.srf1.MajorRadius}, &.srf1), -// // transf3D(.mesh1.Points[52]+{0.03,0,0}, &.mesh1), -// // transf3D(.mesh1.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*4]+{0.01,0,0}, &.mesh1), -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -//// transf3D(mesh.Points[floor(.mesh.MeshSize*4]+{0.01,0,0}, &.mesh), -// -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - - AnyMatrix InitWrapPos = { -// transf3D({.mesh1.Radius[0],0,0}, &.mesh1), -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - }; - - - InitWrapPosVecArr = {&InitWrapPos}; - //InitWrapPosVecArr = {&InitWrapPos}; - -}; -viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_9 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_9; - AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeL; - AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Left.nn06; - - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - - //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - - SPLine.StringMesh=240; - - SPLine ={ -// StringSurfaceMap={{Off,Off,Off},{On,On,On}}; //no wrap before after via - StringSurfaceMap={{Off,Off},{On,On}}; //no wrap before after via - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.6)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + AnyMuscleShortestPath OIC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_10; + AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + //// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + + AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // + // }; + // #endif + // + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7) +2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6) +2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {None,&InitWrapPos}; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_10; - AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - -//// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - - AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - SPLine.StringMesh=240; - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// -// }; -// #endif -// -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7) +2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6) +2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + AnyMuscleShortestPath OIC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_11; + AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // + // #else + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #endif + + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=300; + + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // + // }; + // #endif + // + // + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // + // }; + // #endif + // + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + + AnyMatrix InitWrapPos = { + + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_11; - AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// -// #else -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #endif - - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - + // - SPLine.StringMesh=300; - - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// -// }; -// #endif -// -// -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// -// }; -// #endif -// -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - - AnyMatrix InitWrapPos = { + AnyMuscleShortestPath OIC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_12; + AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + + // // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn11.Translate.InwardCyl; + // // AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn08.Translate.InwardCyl; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // + // #else + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #endif + + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.75)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif + AnyMatrix InitWrapPos = { + + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + }; - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + InitWrapPosVecArr = {&InitWrapPos}; }; - - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -// - -AnyMuscleShortestPath OIC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_12; - AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; - -// // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Left.nn11.Translate.InwardCyl; -// // AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Left.nn08.Translate.InwardCyl; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// -// #else -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #endif - - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - - SPLine.StringMesh=240; - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.75)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - AnyMatrix InitWrapPos = { + + AnyMuscleShortestPath OIC_13 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_13; + AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + + + //// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; + // AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // + // #else + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #endif + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=60; + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // }; + // #endif + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif + AnyMatrix InitWrapPos = { + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_13 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_13; - AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + AnyMuscleViaPoint OIC_14= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_14; + AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; + + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // SPLine.StringMesh=60; + // + // SPLine = { + // AnyMatrix InitWrapPos = { + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*4]+{0.01,0,0}, &.mesh5) + // + // }; + // InitWrapPosVecArr = {&InitWrapPos}; + // }; + // + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + #endif -//// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Left.mesh; -// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// -// #else -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #endif - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - + #endif - SPLine.StringMesh=60; - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// }; -// #endif -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - AnyMatrix InitWrapPos = { - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), - }; - - - InitWrapPosVecArr = {&InitWrapPos}; + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ + AnyMuscleViaPoint OIC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_1; + AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusInternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_14= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_14; - AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; - - // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - // - // SPLine.StringMesh=60; - // - // SPLine ={ - // AnyMatrix InitWrapPos = { - // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*4]+{0.01,0,0}, &.mesh5) - // - // }; - // InitWrapPosVecArr = {&InitWrapPos}; - // }; - // - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; -#endif - -#endif - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ -AnyMuscleViaPoint OIC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_1; - AnyRefNode &Org = ....Segments.Left.R11Seg.ObliquusInternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_2; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusInternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_3; - AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusInternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_4; - AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_5; - AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_6; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_7; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_8 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_3; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_9 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_9; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_4; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_10; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_5; - AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_10; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; -#endif + AnyMuscleViaPoint OIC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_2; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusInternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_3; + AnyRefNode &Org = ....Segments.Left.R10Seg.ObliquusInternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_4; + AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_5; + AnyRefNode &Org = ....Segments.SternalBodySeg.Left.ObliquusInternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_6; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_7; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_8 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_3; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_9 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_9; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_4; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.ObliquusInternus.OIC_10; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Left.ObliquusInternusNode_5; + AnyRefNode &Ins = ....Segments.PelvisSeg.Left.ObliquusInternusNode_10; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + #endif }; // Psoas is separated since it is used by the legs in certain BM configurations #include "PsoasMajorLeft.any" -AnyFolder QuadratusLumborum = { +MuscleGroup QuadratusLumborum = { AnyMuscleViaPoint QLC12Lat_CILat = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.QuadratusLumborum.QL_1; AnyRefNode &Org = ....Segments.Left.R12Seg.QLC12Lat_CINode1L; @@ -4657,7 +4590,7 @@ AnyFolder QuadratusLumborum = { }; -AnyFolder RectusAbdominis = { +MuscleGroup RectusAbdominis = { #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ @@ -4685,24 +4618,24 @@ AnyFolder RectusAbdominis = { #if BM_TRUNK_EXPERIMENTAL_RECTUS_ABDOMINIS == ON - + #if RECTUS_MUSCLE_LINE == SP - AnyMuscleShortestPath RA_1 = { + AnyMuscleShortestPath RA_1 = { AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_CO6_2_L; - + AnySurfEllipsoid &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - - SPLine.StringMesh=100; - SPLine ={ + + SPLine.StringMesh=100; + SPLine = { AnyMatrix InitWrapPos = { transf3D({.mesh1.Radius,0,0}, &.mesh1), transf3D({.mesh2.Radius,0,0}, &.mesh2), @@ -4711,7 +4644,7 @@ AnyFolder RectusAbdominis = { transf3D({.mesh5.Radius,0,0}, &.mesh5), }; }; - + AnyRefNode &Ins = ....Segments.PelvisSeg.RA_1_L; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; @@ -4812,16 +4745,16 @@ AnyFolder RectusAbdominis = { F0 = .....MuscleModels.Left.RectusAbdominis.RA_2.F0; }; }; - + #else -// #if RECTUS_MUSCLE_LINE == VIA + // #if RECTUS_MUSCLE_LINE == VIA - AnyMuscleViaPoint RA_1 = { + AnyMuscleViaPoint RA_1 = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyMuscleModel& MusMdl = ....MuscleModels.Left.RectusAbdominis.RA_1; - + AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_CO6_2_L; AnyRefNode &Via2 = ....Abdominal.Layer_L1.BaseSegAnterior.rectus1L; AnyRefNode &Via3 = ....Abdominal.Layer_L2.BaseSegAnterior.rectus1L; @@ -4831,7 +4764,7 @@ AnyFolder RectusAbdominis = { AnyRefNode &Ins = ....Segments.PelvisSeg.RA_1_L; }; - AnyMuscleViaPoint RA_2 = { + AnyMuscleViaPoint RA_2 = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyMuscleModel& MusMdl = ....MuscleModels.Left.RectusAbdominis.RA_2; @@ -5047,7 +4980,7 @@ AnyFolder RectusAbdominis = { #endif }; -AnyFolder Scalenus = { +MuscleGroup Scalenus = { AnyMuscleViaPoint ScalenusAnteriorR1C6 = { AnyMuscleModel &MusMdl= ....MuscleModels.Left.Scalenus.ScalenusAnteriorR1C6; AnyRefNode &Org = ....Segments.C6Seg.Left.ScalenusAnteriorR1C6Node; @@ -5143,7 +5076,7 @@ AnyFolder Scalenus = { // Model needs the Hyoid bone. The hyoid muscles try to stabilize the trachea and play a // vital part in swallowing and speech. -AnyFolder Hyoid = { +MuscleGroup Hyoid = { AnyMuscleViaPoint LumpedHyoidStC0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.LumpedHyoid.LumpedHyoidStC0; AnyRefNode &Org = ....Segments.SkullSeg.LumpedHyoidT1C0NodeL; @@ -5153,7 +5086,7 @@ AnyFolder Hyoid = { }; }; -AnyFolder SemispinalisCapitis = { +MuscleGroup SemispinalisCapitis = { AnyMuscleViaPoint SemispinalisCapitisC4C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.SemispinalisCapitis.SemispinalisCapitisC4C0; AnyRefNode &Org = ....Segments.C4Seg.SemispinalisCapitisC4C0NodeL; @@ -5230,7 +5163,7 @@ AnyFolder SemispinalisCapitis = { }; }; -AnyFolder SemispinalisCervicis = { +MuscleGroup SemispinalisCervicis = { AnyMuscleViaPoint SemispinalisCervicisT1C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.SemispinalisCervicis.SemispinalisCervicisT1C2; AnyRefNode &Org = ....Segments.T1Seg.SemispinalisCervicisT1C2NodeL; @@ -5280,7 +5213,7 @@ AnyFolder SemispinalisCervicis = { }; }; -AnyFolder SemispinalisThoracis = { +MuscleGroup SemispinalisThoracis = { AnyMuscleViaPoint SSTT12T4 = { @@ -5352,7 +5285,7 @@ AnyFolder SemispinalisThoracis = { }; }; -AnyFolder SerratusPosteriorSuperior = { +MuscleGroup SerratusPosteriorSuperior = { AnyMuscleViaPoint SPSR2C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.SerratusPosteriorSuperior.SPSR2C7; @@ -5387,7 +5320,7 @@ AnyFolder SerratusPosteriorSuperior = { }; }; -AnyFolder SerratusPosteriorInferior = { +MuscleGroup SerratusPosteriorInferior = { AnyMuscleViaPoint SPIL2R12 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.SerratusPosteriorInferior.SPIL2R12; @@ -5426,7 +5359,7 @@ AnyFolder SerratusPosteriorInferior = { }; }; -AnyFolder SpleniusCapitis = { +MuscleGroup SpleniusCapitis = { AnyMuscleViaPoint SpleniusCapitisC7C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.SpleniusCapitis.SpleniusCapitisC7C0; AnyRefNode &Org = ....Segments.SkullSeg.SpleniusCapitisNodeL; @@ -5457,7 +5390,7 @@ AnyFolder SpleniusCapitis = { }; }; -AnyFolder SpleniusCervicis = { +MuscleGroup SpleniusCervicis = { AnyMuscleViaPoint SpleniusCervicisT3C1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.SpleniusCervicis.SpleniusCervicisT3C1; AnyRefNode &Org = ....Segments.T3Seg.Left.SpleniusCervicisNode; @@ -5490,7 +5423,7 @@ AnyFolder SpleniusCervicis = { }; #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ -AnyFolder Subcostalis = { +MuscleGroup Subcostalis = { AnyMuscleViaPoint SCR1R3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.Subcostalis.SCModel_1; AnyRefNode &R1 = ....Segments.Left.R1Seg.SCR1R3_L_Org; @@ -5629,7 +5562,7 @@ AnyFolder Subcostalis = { }; #endif -AnyFolder ThoracicMultifidi = { +MuscleGroup ThoracicMultifidi = { AnyMuscleViaPoint MFT4T1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.ThoracicMultifidi.MFT4T1; AnyRefFrame &Org = ....Segments.T4Seg.MFT4T1NodeLOrg; @@ -5931,7 +5864,7 @@ AnyFolder ThoracicMultifidi = { }; #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ -AnyFolder RotatoresBrevis = { +MuscleGroup RotatoresBrevis = { AnyMuscleViaPoint RotatoresBrevisT1C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.RotatoresBrevis.RotatoresBrevis_1; AnyRefFrame &Org = ....Segments.T1Seg.Left.RotatoresBrevisT1C7Node; @@ -6018,7 +5951,7 @@ AnyFolder RotatoresBrevis = { }; }; -AnyFolder RotatoresLongus = { +MuscleGroup RotatoresLongus = { AnyMuscleViaPoint RotatoresLongusT2C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.RotatoresLongus.RotatoresLongus_1; AnyRefFrame &Org = ....Segments.T2Seg.Left.RotatoresLongusT2C7Node; @@ -6098,7 +6031,7 @@ AnyFolder RotatoresLongus = { }; }; -AnyFolder TransversusThoracis = { +MuscleGroup TransversusThoracis = { AnyMuscleViaPoint TrThR2S = { AnyMuscleModel &MusMdl = ....MuscleModels.Left.TransversusThoracis.TransvThModel_1; AnyRefNode &R2 = ....Segments.Left.R2Seg.TrThR2SNodeLOrg; @@ -6198,37 +6131,37 @@ AnyFolder TransversusThoracis = { #endif #if BM_TRUNK_MUSCLES & BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - AnyFolder PelvicFloor = { - AnyMuscleViaPoint Puporectalis1= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.Puporectalis.Puporectalis_1; - AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis1NodeL; - AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis1NodeL; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint Puporectalis2= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.Puporectalis.Puporectalis_2; - AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis2NodeL; - AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis2NodeL; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - - AnyMuscleViaPoint Pupococcygeus1= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.Pupococcygeus.Pupococcygeus_1; - AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus1NodeL; - AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus1NodeL; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint Pupococcygeus2= { - AnyMuscleModel &MusMdl = ....MuscleModels.Left.Pupococcygeus.Pupococcygeus_2; - AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus2NodeL; - AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus2NodeL; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; +MuscleGroup PelvicFloor = { + AnyMuscleViaPoint Puporectalis1= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.Puporectalis.Puporectalis_1; + AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis1NodeL; + AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis1NodeL; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint Puporectalis2= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.Puporectalis.Puporectalis_2; + AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis2NodeL; + AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis2NodeL; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint Pupococcygeus1= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.Pupococcygeus.Pupococcygeus_1; + AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus1NodeL; + AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus1NodeL; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint Pupococcygeus2= { + AnyMuscleModel &MusMdl = ....MuscleModels.Left.Pupococcygeus.Pupococcygeus_2; + AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus2NodeL; + AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus2NodeL; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; +}; // AnyMuscleViaPoint Puporectalis2= { // AnyMuscleModel &MusMdl = ....MuscleModels.Left.PelvicFloor.Puporectalis_2; // AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis2NodeL; @@ -6254,3 +6187,4 @@ AnyFolder TransversusThoracis = { //}; #endif #endif + diff --git a/Body/AAUHuman/Trunk/MusclesMid.any b/Body/AAUHuman/Trunk/MusclesMid.any index 00423e931..cb6a5007d 100644 --- a/Body/AAUHuman/Trunk/MusclesMid.any +++ b/Body/AAUHuman/Trunk/MusclesMid.any @@ -1,194 +1,190 @@ //#define OLD_TRANSVERSUS #if BM_TRUNK_MUSCLES -AnyFolder Spinalis = { - AnyMuscleViaPoint SPT11T6 = { - AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPT11T6; - AnyRefFrame &Org = ...Segments.T11Seg.SPT11T6NodeOrg; - AnyRefFrame &Via1 = ...Segments.T10Seg.SPT11T6Via1Node; - AnyRefFrame &Via2 = ...Segments.T9Seg.SPT11T6Via2Node; - AnyRefFrame &Via3 = ...Segments.T8Seg.SPT11T6Via3Node; - AnyRefFrame &Via4 = ...Segments.T7Seg.SPT11T6Via4Node; - AnyRefFrame &Ins = ...Segments.T6Seg.SPT11T6NodeIns; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - - AnyMuscleViaPoint SPT12T5 = { - AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPT12T5; - AnyRefFrame &Org = ...Segments.T12Seg.SPT12T5NodeOrg; - AnyRefFrame &Via1 = ...Segments.T11Seg.SPT12T5Via1Node; - AnyRefFrame &Via2 = ...Segments.T10Seg.SPT12T5Via2Node; - AnyRefFrame &Via3 = ...Segments.T9Seg.SPT12T5Via3Node; - AnyRefFrame &Via4 = ...Segments.T8Seg.SPT12T5Via4Node; - AnyRefFrame &Via5 = ...Segments.T7Seg.SPT12T5Via5Node; - AnyRefFrame &Via6 = ...Segments.T6Seg.SPT12T5Via6Node; - AnyRefFrame &Ins = ...Segments.T5Seg.SPT12T5NodeIns; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - }; - - AnyMuscleViaPoint SPT12T4 = { - AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPT12T4; - AnyRefFrame &Org = ...Segments.T12Seg.SPT12T4NodeOrg; - AnyRefFrame &Via1 = ...Segments.T11Seg.SPT12T4Via1Node; - AnyRefFrame &Via2 = ...Segments.T10Seg.SPT12T4Via2Node; - AnyRefFrame &Via3 = ...Segments.T9Seg.SPT12T4Via3Node; - AnyRefFrame &Via4 = ...Segments.T8Seg.SPT12T4Via4Node; - AnyRefFrame &Via5 = ...Segments.T7Seg.SPT12T4Via5Node; - AnyRefFrame &Via6 = ...Segments.T6Seg.SPT12T4Via6Node; - AnyRefFrame &Via7 = ...Segments.T5Seg.SPT12T4Via7Node; - AnyRefFrame &Ins = ...Segments.T4Seg.SPT12T4NodeIns; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; + MuscleGroup Spinalis = { + AnyMuscleViaPoint SPT11T6 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPT11T6; + AnyRefFrame &Org = ...Segments.T11Seg.SPT11T6NodeOrg; + AnyRefFrame &Via1 = ...Segments.T10Seg.SPT11T6Via1Node; + AnyRefFrame &Via2 = ...Segments.T9Seg.SPT11T6Via2Node; + AnyRefFrame &Via3 = ...Segments.T8Seg.SPT11T6Via3Node; + AnyRefFrame &Via4 = ...Segments.T7Seg.SPT11T6Via4Node; + AnyRefFrame &Ins = ...Segments.T6Seg.SPT11T6NodeIns; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; - AnyMuscleViaPoint SPL1T3 = { - AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPL1T3; - AnyRefFrame &Org = ...Segments.L1Seg.SPL1T3NodeOrg; - AnyRefFrame &Via1 = ...Segments.T12Seg.SPL1T3Via1Node; - AnyRefFrame &Via2 = ...Segments.T11Seg.SPL1T3Via2Node; - AnyRefFrame &Via3 = ...Segments.T10Seg.SPL1T3Via3Node; - AnyRefFrame &Via4 = ...Segments.T9Seg.SPL1T3Via4Node; - AnyRefFrame &Via5 = ...Segments.T8Seg.SPL1T3Via5Node; - AnyRefFrame &Via6 = ...Segments.T7Seg.SPL1T3Via6Node; - AnyRefFrame &Via7 = ...Segments.T6Seg.SPL1T3Via7Node; - AnyRefFrame &Via8 = ...Segments.T5Seg.SPL1T3Via8Node; - AnyRefFrame &Via9 = ...Segments.T4Seg.SPL1T3Via9Node; - AnyRefFrame &Ins = ...Segments.T3Seg.SPL1T3NodeIns; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - - AnyMuscleViaPoint SPL1T2 = { - AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPL1T2; - AnyRefFrame &Org = ...Segments.L1Seg.SPL1T2NodeOrg; - AnyRefFrame &Via1 = ...Segments.T12Seg.SPL1T2Via1Node; - AnyRefFrame &Via2 = ...Segments.T11Seg.SPL1T2Via2Node; - AnyRefFrame &Via3 = ...Segments.T10Seg.SPL1T2Via3Node; - AnyRefFrame &Via4 = ...Segments.T9Seg.SPL1T2Via4Node; - AnyRefFrame &Via5 = ...Segments.T8Seg.SPL1T2Via5Node; - AnyRefFrame &Via6 = ...Segments.T7Seg.SPL1T2Via6Node; - AnyRefFrame &Via7 = ...Segments.T6Seg.SPL1T2Via7Node; - AnyRefFrame &Via8 = ...Segments.T5Seg.SPL1T2Via8Node; - AnyRefFrame &Via9 = ...Segments.T4Seg.SPL1T2Via9Node; - AnyRefFrame &Via10 = ...Segments.T3Seg.SPL1T2Via10Node; - AnyRefFrame &Ins = ...Segments.T2Seg.SPL1T2NodeIns; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - - AnyMuscleViaPoint SPL2T1 = { - AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPL2T1; - AnyRefFrame &Org = ...Segments.L2Seg.SPL2T1NodeOrg; - AnyRefFrame &Via1 = ...Segments.L1Seg.SPL2T1Via1Node; - AnyRefFrame &Via2 = ...Segments.T12Seg.SPL2T1Via2Node; - AnyRefFrame &Via3 = ...Segments.T11Seg.SPL2T1Via3Node; - AnyRefFrame &Via4 = ...Segments.T10Seg.SPL2T1Via4Node; - AnyRefFrame &Via5 = ...Segments.T9Seg.SPL2T1Via5Node; - AnyRefFrame &Via6 = ...Segments.T8Seg.SPL2T1Via6Node; - AnyRefFrame &Via7 = ...Segments.T7Seg.SPL2T1Via7Node; - AnyRefFrame &Via8 = ...Segments.T6Seg.SPL2T1Via8Node; - AnyRefFrame &Via9 = ...Segments.T5Seg.SPL2T1Via9Node; - AnyRefFrame &Via10 = ...Segments.T4Seg.SPL2T1Via10Node; - AnyRefFrame &Via11 = ...Segments.T3Seg.SPL2T1Via11Node; - AnyRefFrame &Via12 = ...Segments.T2Seg.SPL2T1Via12Node; - AnyRefFrame &Ins = ...Segments.T1Seg.SPL2T1NodeIns; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; -}; - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ -///Definitions of the different transversus fascicles -AnyFolder Transversus={ -AnyMuscleViaPoint TransversusL1 = { - AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_1; + AnyMuscleViaPoint SPT12T5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPT12T5; + AnyRefFrame &Org = ...Segments.T12Seg.SPT12T5NodeOrg; + AnyRefFrame &Via1 = ...Segments.T11Seg.SPT12T5Via1Node; + AnyRefFrame &Via2 = ...Segments.T10Seg.SPT12T5Via2Node; + AnyRefFrame &Via3 = ...Segments.T9Seg.SPT12T5Via3Node; + AnyRefFrame &Via4 = ...Segments.T8Seg.SPT12T5Via4Node; + AnyRefFrame &Via5 = ...Segments.T7Seg.SPT12T5Via5Node; + AnyRefFrame &Via6 = ...Segments.T6Seg.SPT12T5Via6Node; + AnyRefFrame &Ins = ...Segments.T5Seg.SPT12T5NodeIns; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + }; - AnyRefNode &Org = ...Segments.L1Seg.TransversusOrgNode; - AnyRefNode &Via1 = ...Buckle.Disc1.Disc.DiscSeg.node1; - AnyRefNode &Via2 = ...Buckle.Disc1.Disc.DiscSeg.node2; - AnyRefNode &Via3 = ...Buckle.Disc1.Disc.DiscSeg.node3; - AnyRefNode &Via4 = ...Buckle.Disc1.Disc.DiscSeg.ViaNodeRight; - AnyRefNode &Via5 = ...Buckle.Disc1.Disc.VirtuelSeg.NodeRight; - AnyRefNode &Via6 = ...Buckle.Disc1.Disc.VirtuelSeg.NodeLeft; - AnyRefNode &Via7 = ...Buckle.Disc1.Disc.DiscSeg.ViaNodeLeft; - AnyRefNode &Via8 = ...Buckle.Disc1.Disc.DiscSeg.node5; - AnyRefNode &Via9 = ...Buckle.Disc1.Disc.DiscSeg.node6; - AnyRefNode &Via10 = ...Buckle.Disc1.Disc.DiscSeg.node7; - AnyRefNode &Ins = ...Segments.L1Seg.TransversusInsNode; + AnyMuscleViaPoint SPT12T4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPT12T4; + AnyRefFrame &Org = ...Segments.T12Seg.SPT12T4NodeOrg; + AnyRefFrame &Via1 = ...Segments.T11Seg.SPT12T4Via1Node; + AnyRefFrame &Via2 = ...Segments.T10Seg.SPT12T4Via2Node; + AnyRefFrame &Via3 = ...Segments.T9Seg.SPT12T4Via3Node; + AnyRefFrame &Via4 = ...Segments.T8Seg.SPT12T4Via4Node; + AnyRefFrame &Via5 = ...Segments.T7Seg.SPT12T4Via5Node; + AnyRefFrame &Via6 = ...Segments.T6Seg.SPT12T4Via6Node; + AnyRefFrame &Via7 = ...Segments.T5Seg.SPT12T4Via7Node; + AnyRefFrame &Ins = ...Segments.T4Seg.SPT12T4NodeIns; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - - AnyMuscleViaPoint TransversusL2 = { - AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_2; - - AnyRefNode &Org = ...Segments.L2Seg.TransversusOrgNode; - AnyRefNode &Via1 = ...Buckle.Disc2.Disc.DiscSeg.node1; - AnyRefNode &Via2 = ...Buckle.Disc2.Disc.DiscSeg.node2; - AnyRefNode &Via3 = ...Buckle.Disc2.Disc.DiscSeg.node3; - AnyRefNode &Via4 = ...Buckle.Disc2.Disc.DiscSeg.ViaNodeRight; - AnyRefNode &Via5 = ...Buckle.Disc2.Disc.VirtuelSeg.NodeRight; - AnyRefNode &Via6 = ...Buckle.Disc2.Disc.VirtuelSeg.NodeLeft; - AnyRefNode &Via7 = ...Buckle.Disc2.Disc.DiscSeg.ViaNodeLeft; - AnyRefNode &Via8 = ...Buckle.Disc2.Disc.DiscSeg.node5; - AnyRefNode &Via9 = ...Buckle.Disc2.Disc.DiscSeg.node6; - AnyRefNode &Via10 = ...Buckle.Disc2.Disc.DiscSeg.node7; - AnyRefNode &Ins = ...Segments.L2Seg.TransversusInsNode; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - - AnyMuscleViaPoint TransversusL3 = { - AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_3; - - AnyRefNode &Org = ...Segments.L3Seg.TransversusOrgNode; - AnyRefNode &Via1 = ...Buckle.Disc3.Disc.DiscSeg.node1; - AnyRefNode &Via2 = ...Buckle.Disc3.Disc.DiscSeg.node2; - AnyRefNode &Via3 = ...Buckle.Disc3.Disc.DiscSeg.node3; - AnyRefNode &Via4 = ...Buckle.Disc3.Disc.DiscSeg.ViaNodeRight; - AnyRefNode &Via5 = ...Buckle.Disc3.Disc.VirtuelSeg.NodeRight; - AnyRefNode &Via6 = ...Buckle.Disc3.Disc.VirtuelSeg.NodeLeft; - AnyRefNode &Via7 = ...Buckle.Disc3.Disc.DiscSeg.ViaNodeLeft; - AnyRefNode &Via8 = ...Buckle.Disc3.Disc.DiscSeg.node5; - AnyRefNode &Via9 = ...Buckle.Disc3.Disc.DiscSeg.node6; - AnyRefNode &Via10 = ...Buckle.Disc3.Disc.DiscSeg.node7; - AnyRefNode &Ins = ...Segments.L3Seg.TransversusInsNode; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + AnyMuscleViaPoint SPL1T3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPL1T3; + AnyRefFrame &Org = ...Segments.L1Seg.SPL1T3NodeOrg; + AnyRefFrame &Via1 = ...Segments.T12Seg.SPL1T3Via1Node; + AnyRefFrame &Via2 = ...Segments.T11Seg.SPL1T3Via2Node; + AnyRefFrame &Via3 = ...Segments.T10Seg.SPL1T3Via3Node; + AnyRefFrame &Via4 = ...Segments.T9Seg.SPL1T3Via4Node; + AnyRefFrame &Via5 = ...Segments.T8Seg.SPL1T3Via5Node; + AnyRefFrame &Via6 = ...Segments.T7Seg.SPL1T3Via6Node; + AnyRefFrame &Via7 = ...Segments.T6Seg.SPL1T3Via7Node; + AnyRefFrame &Via8 = ...Segments.T5Seg.SPL1T3Via8Node; + AnyRefFrame &Via9 = ...Segments.T4Seg.SPL1T3Via9Node; + AnyRefFrame &Ins = ...Segments.T3Seg.SPL1T3NodeIns; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint SPL1T2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPL1T2; + AnyRefFrame &Org = ...Segments.L1Seg.SPL1T2NodeOrg; + AnyRefFrame &Via1 = ...Segments.T12Seg.SPL1T2Via1Node; + AnyRefFrame &Via2 = ...Segments.T11Seg.SPL1T2Via2Node; + AnyRefFrame &Via3 = ...Segments.T10Seg.SPL1T2Via3Node; + AnyRefFrame &Via4 = ...Segments.T9Seg.SPL1T2Via4Node; + AnyRefFrame &Via5 = ...Segments.T8Seg.SPL1T2Via5Node; + AnyRefFrame &Via6 = ...Segments.T7Seg.SPL1T2Via6Node; + AnyRefFrame &Via7 = ...Segments.T6Seg.SPL1T2Via7Node; + AnyRefFrame &Via8 = ...Segments.T5Seg.SPL1T2Via8Node; + AnyRefFrame &Via9 = ...Segments.T4Seg.SPL1T2Via9Node; + AnyRefFrame &Via10 = ...Segments.T3Seg.SPL1T2Via10Node; + AnyRefFrame &Ins = ...Segments.T2Seg.SPL1T2NodeIns; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint SPL2T1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.Spinalis.SPL2T1; + AnyRefFrame &Org = ...Segments.L2Seg.SPL2T1NodeOrg; + AnyRefFrame &Via1 = ...Segments.L1Seg.SPL2T1Via1Node; + AnyRefFrame &Via2 = ...Segments.T12Seg.SPL2T1Via2Node; + AnyRefFrame &Via3 = ...Segments.T11Seg.SPL2T1Via3Node; + AnyRefFrame &Via4 = ...Segments.T10Seg.SPL2T1Via4Node; + AnyRefFrame &Via5 = ...Segments.T9Seg.SPL2T1Via5Node; + AnyRefFrame &Via6 = ...Segments.T8Seg.SPL2T1Via6Node; + AnyRefFrame &Via7 = ...Segments.T7Seg.SPL2T1Via7Node; + AnyRefFrame &Via8 = ...Segments.T6Seg.SPL2T1Via8Node; + AnyRefFrame &Via9 = ...Segments.T5Seg.SPL2T1Via9Node; + AnyRefFrame &Via10 = ...Segments.T4Seg.SPL2T1Via10Node; + AnyRefFrame &Via11 = ...Segments.T3Seg.SPL2T1Via11Node; + AnyRefFrame &Via12 = ...Segments.T2Seg.SPL2T1Via12Node; + AnyRefFrame &Ins = ...Segments.T1Seg.SPL2T1NodeIns; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - - AnyMuscleViaPoint TransversusL4 = { - AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_4; - - AnyRefNode &Org = ...Segments.L4Seg.TransversusOrgNode; - AnyRefNode &Via1 = ...Buckle.Disc4.Disc.DiscSeg.node1; - AnyRefNode &Via2 = ...Buckle.Disc4.Disc.DiscSeg.node2; - AnyRefNode &Via3 = ...Buckle.Disc4.Disc.DiscSeg.node3; - AnyRefNode &Via4 = ...Buckle.Disc4.Disc.DiscSeg.ViaNodeRight; - AnyRefNode &Via5 = ...Buckle.Disc4.Disc.VirtuelSeg.NodeRight; - AnyRefNode &Via6 = ...Buckle.Disc4.Disc.VirtuelSeg.NodeLeft; - AnyRefNode &Via7 = ...Buckle.Disc4.Disc.DiscSeg.ViaNodeLeft; - AnyRefNode &Via8 = ...Buckle.Disc4.Disc.DiscSeg.node5; - AnyRefNode &Via9 = ...Buckle.Disc4.Disc.DiscSeg.node6; - AnyRefNode &Via10 = ...Buckle.Disc4.Disc.DiscSeg.node7; - AnyRefNode &Ins = ...Segments.L4Seg.TransversusInsNode; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - - AnyMuscleViaPoint TransversusL5 = { - AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_5; - - AnyRefNode &Org = ...Segments.L5Seg.TransversusOrgNode; - AnyRefNode &Via1 = ...Buckle.Disc5.Disc.DiscSeg.node1; - AnyRefNode &Via2 = ...Buckle.Disc5.Disc.DiscSeg.node2; - AnyRefNode &Via3 = ...Buckle.Disc5.Disc.DiscSeg.node3; - AnyRefNode &Via4 = ...Buckle.Disc5.Disc.DiscSeg.ViaNodeRight; - AnyRefNode &Via5 = ...Buckle.Disc5.Disc.VirtuelSeg.NodeRight; - AnyRefNode &Via6 = ...Buckle.Disc5.Disc.VirtuelSeg.NodeLeft; - AnyRefNode &Via7 = ...Buckle.Disc5.Disc.DiscSeg.ViaNodeLeft; - AnyRefNode &Via8 = ...Buckle.Disc5.Disc.DiscSeg.node5; - AnyRefNode &Via9 = ...Buckle.Disc5.Disc.DiscSeg.node6; - AnyRefNode &Via10 = ...Buckle.Disc5.Disc.DiscSeg.node7; - AnyRefNode &Ins = ...Segments.L5Seg.TransversusInsNode; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; -}; -#endif - - + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ + ///Definitions of the different transversus fascicles + MuscleGroup Transversus = { + AnyMuscleViaPoint TransversusL1 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_1; + + AnyRefNode &Org = ...Segments.L1Seg.TransversusOrgNode; + AnyRefNode &Via1 = ...Buckle.Disc1.Disc.DiscSeg.node1; + AnyRefNode &Via2 = ...Buckle.Disc1.Disc.DiscSeg.node2; + AnyRefNode &Via3 = ...Buckle.Disc1.Disc.DiscSeg.node3; + AnyRefNode &Via4 = ...Buckle.Disc1.Disc.DiscSeg.ViaNodeRight; + AnyRefNode &Via5 = ...Buckle.Disc1.Disc.VirtuelSeg.NodeRight; + AnyRefNode &Via6 = ...Buckle.Disc1.Disc.VirtuelSeg.NodeLeft; + AnyRefNode &Via7 = ...Buckle.Disc1.Disc.DiscSeg.ViaNodeLeft; + AnyRefNode &Via8 = ...Buckle.Disc1.Disc.DiscSeg.node5; + AnyRefNode &Via9 = ...Buckle.Disc1.Disc.DiscSeg.node6; + AnyRefNode &Via10 = ...Buckle.Disc1.Disc.DiscSeg.node7; + AnyRefNode &Ins = ...Segments.L1Seg.TransversusInsNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint TransversusL2 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_2; + + AnyRefNode &Org = ...Segments.L2Seg.TransversusOrgNode; + AnyRefNode &Via1 = ...Buckle.Disc2.Disc.DiscSeg.node1; + AnyRefNode &Via2 = ...Buckle.Disc2.Disc.DiscSeg.node2; + AnyRefNode &Via3 = ...Buckle.Disc2.Disc.DiscSeg.node3; + AnyRefNode &Via4 = ...Buckle.Disc2.Disc.DiscSeg.ViaNodeRight; + AnyRefNode &Via5 = ...Buckle.Disc2.Disc.VirtuelSeg.NodeRight; + AnyRefNode &Via6 = ...Buckle.Disc2.Disc.VirtuelSeg.NodeLeft; + AnyRefNode &Via7 = ...Buckle.Disc2.Disc.DiscSeg.ViaNodeLeft; + AnyRefNode &Via8 = ...Buckle.Disc2.Disc.DiscSeg.node5; + AnyRefNode &Via9 = ...Buckle.Disc2.Disc.DiscSeg.node6; + AnyRefNode &Via10 = ...Buckle.Disc2.Disc.DiscSeg.node7; + AnyRefNode &Ins = ...Segments.L2Seg.TransversusInsNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint TransversusL3 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_3; + + AnyRefNode &Org = ...Segments.L3Seg.TransversusOrgNode; + AnyRefNode &Via1 = ...Buckle.Disc3.Disc.DiscSeg.node1; + AnyRefNode &Via2 = ...Buckle.Disc3.Disc.DiscSeg.node2; + AnyRefNode &Via3 = ...Buckle.Disc3.Disc.DiscSeg.node3; + AnyRefNode &Via4 = ...Buckle.Disc3.Disc.DiscSeg.ViaNodeRight; + AnyRefNode &Via5 = ...Buckle.Disc3.Disc.VirtuelSeg.NodeRight; + AnyRefNode &Via6 = ...Buckle.Disc3.Disc.VirtuelSeg.NodeLeft; + AnyRefNode &Via7 = ...Buckle.Disc3.Disc.DiscSeg.ViaNodeLeft; + AnyRefNode &Via8 = ...Buckle.Disc3.Disc.DiscSeg.node5; + AnyRefNode &Via9 = ...Buckle.Disc3.Disc.DiscSeg.node6; + AnyRefNode &Via10 = ...Buckle.Disc3.Disc.DiscSeg.node7; + AnyRefNode &Ins = ...Segments.L3Seg.TransversusInsNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint TransversusL4 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_4; + + AnyRefNode &Org = ...Segments.L4Seg.TransversusOrgNode; + AnyRefNode &Via1 = ...Buckle.Disc4.Disc.DiscSeg.node1; + AnyRefNode &Via2 = ...Buckle.Disc4.Disc.DiscSeg.node2; + AnyRefNode &Via3 = ...Buckle.Disc4.Disc.DiscSeg.node3; + AnyRefNode &Via4 = ...Buckle.Disc4.Disc.DiscSeg.ViaNodeRight; + AnyRefNode &Via5 = ...Buckle.Disc4.Disc.VirtuelSeg.NodeRight; + AnyRefNode &Via6 = ...Buckle.Disc4.Disc.VirtuelSeg.NodeLeft; + AnyRefNode &Via7 = ...Buckle.Disc4.Disc.DiscSeg.ViaNodeLeft; + AnyRefNode &Via8 = ...Buckle.Disc4.Disc.DiscSeg.node5; + AnyRefNode &Via9 = ...Buckle.Disc4.Disc.DiscSeg.node6; + AnyRefNode &Via10 = ...Buckle.Disc4.Disc.DiscSeg.node7; + AnyRefNode &Ins = ...Segments.L4Seg.TransversusInsNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + + AnyMuscleViaPoint TransversusL5 = { + AnyMuscleModel &MusMdl = ...MuscleModels.TransversusSingle.Transversus_5; + + AnyRefNode &Org = ...Segments.L5Seg.TransversusOrgNode; + AnyRefNode &Via1 = ...Buckle.Disc5.Disc.DiscSeg.node1; + AnyRefNode &Via2 = ...Buckle.Disc5.Disc.DiscSeg.node2; + AnyRefNode &Via3 = ...Buckle.Disc5.Disc.DiscSeg.node3; + AnyRefNode &Via4 = ...Buckle.Disc5.Disc.DiscSeg.ViaNodeRight; + AnyRefNode &Via5 = ...Buckle.Disc5.Disc.VirtuelSeg.NodeRight; + AnyRefNode &Via6 = ...Buckle.Disc5.Disc.VirtuelSeg.NodeLeft; + AnyRefNode &Via7 = ...Buckle.Disc5.Disc.DiscSeg.ViaNodeLeft; + AnyRefNode &Via8 = ...Buckle.Disc5.Disc.DiscSeg.node5; + AnyRefNode &Via9 = ...Buckle.Disc5.Disc.DiscSeg.node6; + AnyRefNode &Via10 = ...Buckle.Disc5.Disc.DiscSeg.node7; + AnyRefNode &Ins = ...Segments.L5Seg.TransversusInsNode; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + #endif #endif \ No newline at end of file diff --git a/Body/AAUHuman/Trunk/MusclesRight.any b/Body/AAUHuman/Trunk/MusclesRight.any index 1dbd1e8db..d90e66e16 100644 --- a/Body/AAUHuman/Trunk/MusclesRight.any +++ b/Body/AAUHuman/Trunk/MusclesRight.any @@ -10,8 +10,8 @@ #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ -AnyFolder Transversus = { -AnyMuscleViaPoint TransversusL1 = { +MuscleGroup Transversus = { + AnyMuscleViaPoint TransversusL1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Transversus.Transversus_1; AnyRefNode &Org = ....Segments.L1Seg.TransversusInsNode_R; AnyRefNode &Via01 = ....Abdominal.Layer_L1.BaseSegPosterior.TransversusPoints.Right.nn03; @@ -50,7 +50,7 @@ AnyMuscleViaPoint TransversusL1 = { AnyRefNode &Via07 = ....Abdominal.Layer_L3.BaseSegAnterior.TransversusPoints.Right.nn06; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - + AnyMuscleViaPoint TransversusL4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Transversus.Transversus_4; AnyRefNode &Org = ....Segments.L4Seg.TransversusInsNode_R; @@ -63,7 +63,7 @@ AnyMuscleViaPoint TransversusL1 = { AnyRefNode &Via07 = ....Abdominal.Layer_L4.BaseSegAnterior.TransversusPoints.Right.nn06; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; }; - + AnyMuscleViaPoint TransversusL5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Transversus.Transversus_5; AnyRefNode &Org = ....Segments.L5Seg.TransversusInsNode_R; @@ -78,7 +78,7 @@ AnyMuscleViaPoint TransversusL1 = { }; }; -AnyFolder Diaphragm = { +MuscleGroup Diaphragm = { AnyMuscleShortestPath L1_Diaphragm1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.L1_Diaphragm1; @@ -87,13 +87,13 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.L1_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath L1_Diaphragm2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.L1_Diaphragm2; AnyRefNode &Org = ....Segments.L1Seg.L1_DiaphragmNode2R; @@ -101,13 +101,13 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.L1_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath L2_Diaphragm1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.L2_Diaphragm1; AnyRefNode &Org = ....Segments.L2Seg.L2_DiaphragmNode1R; @@ -115,13 +115,13 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.L2_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath L2_Diaphragm2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.L2_Diaphragm2; AnyRefNode &Org = ....Segments.L2Seg.L2_DiaphragmNode2R; @@ -129,7 +129,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.L2_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -143,7 +143,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.L1TransverseProcess_Diaphragm; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -156,7 +156,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.R12_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -169,12 +169,12 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoposterior.Layer_T10.Right.R12_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; - }; + }; AnyMuscleShortestPath R11_Diaphragm3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.R11_Diaphragm3; AnyRefNode &Org = ....Segments.Right.R11Seg.R11_DiaphragmNode3R; @@ -182,7 +182,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.R11_Diaphragm3; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -195,7 +195,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.R11_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -208,7 +208,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.R11_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -221,7 +221,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.R10_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -234,7 +234,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.R10_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -247,7 +247,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.R10_Diaphragm3; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -256,15 +256,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode7; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode7R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode7R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode7R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode7R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm7Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm7; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -273,15 +273,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode6; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode6R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode6R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode6R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode6R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm6Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm6; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -290,15 +290,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode5; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode5R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode5R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode5R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode5R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm5Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm5; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -307,32 +307,32 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode4; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode4R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode4R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode4R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode4R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm4Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm4; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - AnyMuscleShortestPath CC_DiaphragmNode3 = { + AnyMuscleShortestPath CC_DiaphragmNode3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode3; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode3R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode3R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode3R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode3R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm3Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm3; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -341,15 +341,15 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode2; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode2R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode2R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode2R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode2R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm2Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm2; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -358,21 +358,21 @@ AnyFolder Diaphragm = { AnyMuscleShortestPath CC_DiaphragmNode1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.CC_DiaphragmNode1; #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode1R; + AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.CC_DiaphragmNode1R; #else - AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode1R; + AnyRefNode &Org = ....Segments.SternalBodySeg.CC_DiaphragmNode1R; #endif AnyRefNode &Ins = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm1Node; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.CC_Diaphragm1; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; }; }; - + AnyMuscleShortestPath Xiphoid_Diaphragm = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Diaphragm.Xiphoid_Diaphragm; AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; @@ -380,7 +380,7 @@ AnyFolder Diaphragm = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyParamSurf &Srf = ....Abdominal.Diaphragm.CavitySegSuperoanterior.Layer_T10.Right.Xiphoid_Diaphragm; - SPLine = { + SPLine = { StringMesh=35; AnyMatrix InitWrapPos = {transf3D({0,-.Srf.Radius[0],0}, &.Srf)}; InitWrapPosVecArr = {&InitWrapPos}; @@ -389,7 +389,7 @@ AnyFolder Diaphragm = { }; #endif -AnyFolder ErectorSpinae = { +MuscleGroup ErectorSpinae = { AnyMuscleViaPoint ILplL1CI = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.ErectorSpinae.ILplL1CI; AnyRefNode &Org = ....Segments.L1Seg.ILplL1CINodeR; @@ -1009,1001 +1009,935 @@ AnyFolder ErectorSpinae = { }; // End of ErectorSpinae #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ - - -#define IC_SIZE 6 - #define IC_MULTIPLIER 1 - - #if IC_TYPE == OLD - +#define IC_SIZE 6 +#define IC_MULTIPLIER 1 + + +#if IC_TYPE == OLD + + + +MuscleGroup InterCostalisExternal(searchString="*.*") = { + SplineMuscle_CreateMuscle IC_Ext_R1R2( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R1Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Right.IC_R1_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R2Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R2Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R3Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R4Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R4Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R5Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R6Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R6Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R7Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R7Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R8Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R8Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R9Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R9Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R10Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R10Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R11Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 + )= {}; + + SplineMuscle_CreateMuscle IC_Ext_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), + OriginSegment=....Segments.Right.R11Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Ext_Inf.Points, + InsertionSegment=....Segments.Right.R12Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Right.IC_R12_Ext_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 + )= {}; +}; -AnyFolder InterCostalisExternal = - { - SplineMuscle_CreateMuscle IC_Ext_R1R2( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R1Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Right.IC_R1_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R2Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R2Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R3Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R4Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R4Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R5Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R6Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R6Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R7Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R7Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R8Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R8Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R9Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R9Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R10Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 - )={}; +MuscleGroup InterCostalisInternal(searchString="*.*") = { + + + SplineMuscle_CreateMuscle IC_Int_R1R2 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R1Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Right.IC_R1_Int_Inf.Points, + InsertionSegment=....Segments.Right.R2Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R1R2 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE)+1; + //The Last element is defined manually + AnyMuscleViaPoint elem_sternum = { + AnyRefNode &Org = .....Segments.SternumSeg.Right_IC_Int_R1R2_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - SplineMuscle_CreateMuscle IC_Ext_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R10Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R11Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 - )={}; - - SplineMuscle_CreateMuscle IC_Ext_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), - OriginSegment=....Segments.Right.R11Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Ext_Inf.Points, - InsertionSegment=....Segments.Right.R12Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Right.IC_R12_Ext_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 - )={}; + }; }; - - AnyFolder InterCostalisInternal = - { - SplineMuscle_CreateMuscle IC_Int_R1R2 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R1Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Right.IC_R1_Int_Inf.Points, - InsertionSegment=....Segments.Right.R2Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R1R2 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE)+1; - //The Last element is defined manually - AnyMuscleViaPoint elem_sternum = { - AnyRefNode &Org = .....Segments.SternumSeg.Right_IC_Int_R1R2_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - + + SplineMuscle_CreateMuscle IC_Int_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R2Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Int_Inf.Points, + InsertionSegment=....Segments.Right.R3Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R2R3 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R2R3_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - }; - - - - SplineMuscle_CreateMuscle IC_Int_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R2Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Int_Inf.Points, - InsertionSegment=....Segments.Right.R3Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R2R3 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R2R3_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R3Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Int_Inf.Points, - InsertionSegment=....Segments.Right.R4Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R3R4 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R3R4_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R4Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Int_Inf.Points, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R4R5 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R4R5_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R5Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Int_Inf.Points, - InsertionSegment=....Segments.Right.R6Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R5R6 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R5R6_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - SplineMuscle_CreateMuscle IC_Int_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R6Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Int_Inf.Points, - InsertionSegment=....Segments.Right.R7Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R6R7 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R6R7_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R7Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Int_Inf.Points, - InsertionSegment=....Segments.Right.R8Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R7R8 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R7R8_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R7R8_elem_sternum; - #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R3Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Int_Inf.Points, + InsertionSegment=....Segments.Right.R4Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R3R4 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R3R4_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R4Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Int_Inf.Points, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R4R5 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R4R5_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R5Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Int_Inf.Points, + InsertionSegment=....Segments.Right.R6Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R5R6 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R5R6_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - SplineMuscle_CreateMuscle IC_Int_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R8Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Int_Inf.Points, - InsertionSegment=....Segments.Right.R9Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R8R9 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R6Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Int_Inf.Points, + InsertionSegment=....Segments.Right.R7Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R6R7 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R6R7_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R7Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Int_Inf.Points, + InsertionSegment=....Segments.Right.R8Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R7R8 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R8R9_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R8R9_elem_sternum; + AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R7R8_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R7R8_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; - - SplineMuscle_CreateMuscle IC_Int_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R9Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Int_Inf.Points, - InsertionSegment=....Segments.Right.R10Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R9R10 - )={ - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; - AnyMuscleViaPoint elem_sternum= { + }; + + SplineMuscle_CreateMuscle IC_Int_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R8Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Int_Inf.Points, + InsertionSegment=....Segments.Right.R9Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R8R9 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R8R9_elem_sternum; #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R8R9_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - }; - - SplineMuscle_CreateMuscle IC_Int_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R10Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Int_Inf.Points, - InsertionSegment=....Segments.Right.R11Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R10R11 - )={}; - - SplineMuscle_CreateMuscle IC_Int_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-1), - OriginSegment=....Segments.Right.R11Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Int_Inf.Points, - InsertionSegment=....Segments.Right.R12Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Right.IC_R12_Int_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R11R12 - )={}; - }; - - - - - - - - AnyFolder InnermostInterCostalis = - { - - SplineMuscle_CreateMuscle IC_Inn_R1R2( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R1Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Right.IC_R1_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R2Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R2Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R3Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R4Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R4Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R5Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R6Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R6Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R7Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R7Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R8Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R8Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R9Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R9Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R10Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R10Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R11Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 - )={}; - - SplineMuscle_CreateMuscle IC_Inn_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), - OriginSegment=....Segments.Right.R11Seg, - ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Inn_Inf.Points, - InsertionSegment=....Segments.Right.R12Seg, - INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Right.IC_R12_Inn_Sup.Points, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 - )={}; - - }; - #endif - - - - - - - - - - - - - - #if IC_TYPE != OLD - // #if IC_TYPE== MULTI_OFFSET + AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R9Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Int_Inf.Points, + InsertionSegment=....Segments.Right.R10Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R9R10 + )= { + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1)+1; + AnyMuscleViaPoint elem_sternum= { + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R9R10_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R9R10_elem_sternum; + #endif + AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; + + SplineMuscle_CreateMuscle IC_Int_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R10Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Int_Inf.Points, + InsertionSegment=....Segments.Right.R11Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R10R11 + )= {}; + + SplineMuscle_CreateMuscle IC_Int_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-1), + OriginSegment=....Segments.Right.R11Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Int_Inf.Points, + InsertionSegment=....Segments.Right.R12Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Right.IC_R12_Int_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisInternal.IC_Int_R11R12 + )= {}; +}; +MuscleGroup InnermostInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscle IC_Inn_R1R2( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R1Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R1.Right.IC_R1_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R2Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R2Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R2.Right.IC_R2_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R3Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R3.Right.IC_R3_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R4Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R4Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R4.Right.IC_R4_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R5Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R5.Right.IC_R5_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R6Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R6Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R6.Right.IC_R6_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R7Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R7Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R7.Right.IC_R7_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R8Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R8Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R8.Right.IC_R8_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R9Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R9Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R9.Right.IC_R9_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R10Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R10Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R10.Right.IC_R10_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R11Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 + )= {}; + + SplineMuscle_CreateMuscle IC_Inn_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-2), + OriginSegment=....Segments.Right.R11Seg, + ORIGIN_POINTS=....Data.unscaled.ModelParameters.R11.Right.IC_R11_Inn_Inf.Points, + InsertionSegment=....Segments.Right.R12Seg, + INSERTION_POINTS=....Data.unscaled.ModelParameters.R12.Right.IC_R12_Inn_Sup.Points, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 + )= {}; - AnyFolder InnermostInterCostalis ={ - - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R1R2 ( - CREATE_ELEMENTS= IC_MULTIPLIER*IC_SIZE, - OriginSegment=....Segments.Right.R1Seg, - ORIGIN_POINTS=....Segments.Right.R1Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R2Seg, - INSERTION_POINTS=....Segments.Right.R2Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R2Seg, - ORIGIN_POINTS=....Segments.Right.R2Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R3Seg, - INSERTION_POINTS=....Segments.Right.R3Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 - )={DesiredAngle = 0;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R3Seg, - ORIGIN_POINTS=....Segments.Right.R3Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R4Seg, - INSERTION_POINTS=....Segments.Right.R4Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R4Seg, - ORIGIN_POINTS=....Segments.Right.R4Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Segments.Right.R5Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 - )={DesiredAngle = 0;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R5Seg, - ORIGIN_POINTS=....Segments.Right.R5Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R6Seg, - INSERTION_POINTS=....Segments.Right.R6Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 - )={DesiredAngle = 0;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R6Seg, - ORIGIN_POINTS=....Segments.Right.R6Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R7Seg, - INSERTION_POINTS=....Segments.Right.R7Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R7Seg, - ORIGIN_POINTS=....Segments.Right.R7Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R8Seg, - INSERTION_POINTS=....Segments.Right.R8Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 - )={DesiredAngle = 0;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R8Seg, - ORIGIN_POINTS=....Segments.Right.R8Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R9Seg, - INSERTION_POINTS=....Segments.Right.R9Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), - OriginSegment=....Segments.Right.R9Seg, - ORIGIN_POINTS=....Segments.Right.R9Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R10Seg, - INSERTION_POINTS=....Segments.Right.R10Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 - )={DesiredAngle = 0;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R10Seg, - ORIGIN_POINTS=....Segments.Right.R10Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R11Seg, - INSERTION_POINTS=....Segments.Right.R11Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 - )={DesiredAngle = 0;}; +}; +#endif - - SplineMuscle_CreateMuscleMultiOffset IC_Inn_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), - OriginSegment=....Segments.Right.R11Seg, - ORIGIN_POINTS=....Segments.Right.R11Seg.IC_points.Inn_InfPoints, - InsertionSegment=....Segments.Right.R12Seg, - INSERTION_POINTS=....Segments.Right.R12Seg.IC_points.Inn_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 - )={DesiredAngle = 0;}; +#if IC_TYPE != OLD +// #if IC_TYPE== MULTI_OFFSET + + +MuscleGroup InnermostInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R1R2 ( + CREATE_ELEMENTS= IC_MULTIPLIER*IC_SIZE, + OriginSegment=....Segments.Right.R1Seg, + ORIGIN_POINTS=....Segments.Right.R1Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R2Seg, + INSERTION_POINTS=....Segments.Right.R2Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R2Seg, + ORIGIN_POINTS=....Segments.Right.R2Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R3Seg, + INSERTION_POINTS=....Segments.Right.R3Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R3Seg, + ORIGIN_POINTS=....Segments.Right.R3Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R4Seg, + INSERTION_POINTS=....Segments.Right.R4Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R4Seg, + ORIGIN_POINTS=....Segments.Right.R4Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Segments.Right.R5Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R5Seg, + ORIGIN_POINTS=....Segments.Right.R5Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R6Seg, + INSERTION_POINTS=....Segments.Right.R6Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R6Seg, + ORIGIN_POINTS=....Segments.Right.R6Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R7Seg, + INSERTION_POINTS=....Segments.Right.R7Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R7Seg, + ORIGIN_POINTS=....Segments.Right.R7Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R8Seg, + INSERTION_POINTS=....Segments.Right.R8Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R8Seg, + ORIGIN_POINTS=....Segments.Right.R8Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R9Seg, + INSERTION_POINTS=....Segments.Right.R9Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+3), + OriginSegment=....Segments.Right.R9Seg, + ORIGIN_POINTS=....Segments.Right.R9Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R10Seg, + INSERTION_POINTS=....Segments.Right.R10Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 + )= {DesiredAngle = 0;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R10Seg, + ORIGIN_POINTS=....Segments.Right.R10Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R11Seg, + INSERTION_POINTS=....Segments.Right.R11Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 + )= {DesiredAngle = 0;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Inn_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), + OriginSegment=....Segments.Right.R11Seg, + ORIGIN_POINTS=....Segments.Right.R11Seg.IC_points.Inn_InfPoints, + InsertionSegment=....Segments.Right.R12Seg, + INSERTION_POINTS=....Segments.Right.R12Seg.IC_points.Inn_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 + )= {DesiredAngle = 0;}; + }; - - - - - AnyFolder InternalInterCostalis ={ - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R1R2 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1-3), - OriginSegment=....Segments.Right.R1Seg, - ORIGIN_POINTS=....Segments.Right.R1Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R2Seg, - INSERTION_POINTS=....Segments.Right.R2Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 - )={ - DesiredAngle =-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1-3); - //The Last element is defined manually - AnyMuscleViaPoint elem_sternum = { - AnyRefNode &Org = .....Segments.SternumSeg.Right_IC_Int_R1R2_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; +MuscleGroup InternalInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R1R2 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1-3), + OriginSegment=....Segments.Right.R1Seg, + ORIGIN_POINTS=....Segments.Right.R1Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R2Seg, + INSERTION_POINTS=....Segments.Right.R2Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 + )= { + DesiredAngle =-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1-3); + //The Last element is defined manually + AnyMuscleViaPoint elem_sternum = { + AnyRefNode &Org = .....Segments.SternumSeg.Right_IC_Int_R1R2_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R1R2_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - - - - }; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R2Seg, - ORIGIN_POINTS=....Segments.Right.R2Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R3Seg, - INSERTION_POINTS=....Segments.Right.R3Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R2R3_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - - - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R3Seg, - ORIGIN_POINTS=....Segments.Right.R3Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R4Seg, - INSERTION_POINTS=....Segments.Right.R4Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R3R4_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - }; - - }; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R4Seg, - ORIGIN_POINTS=....Segments.Right.R4Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Segments.Right.R5Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R4R5_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - }; - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R5Seg, - ORIGIN_POINTS=....Segments.Right.R5Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R6Seg, - INSERTION_POINTS=....Segments.Right.R6Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R5R6_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - // AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; - + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R6Seg, - ORIGIN_POINTS=....Segments.Right.R6Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R7Seg, - INSERTION_POINTS=....Segments.Right.R7Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); -AnyMuscleViaPoint elem_sternum= { - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R6R7_elem_sternum; - AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - - }; -}; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R7Seg, - ORIGIN_POINTS=....Segments.Right.R7Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R8Seg, - INSERTION_POINTS=....Segments.Right.R8Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 - )={ - DesiredAngle=-45; + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R2Seg, + ORIGIN_POINTS=....Segments.Right.R2Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R3Seg, + INSERTION_POINTS=....Segments.Right.R3Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 + )= { + DesiredAngle=-45; NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R7R8_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R7R8_elem_sternum; - #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - //AnyDrawPLine drwLine ={AnyFloat RGB_Red={1,0,0};AnyFloat RGB_Green={0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; - + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R2R3_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R2R3_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; }; - }; - + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R3Seg, + ORIGIN_POINTS=....Segments.Right.R3Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R4Seg, + INSERTION_POINTS=....Segments.Right.R4Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R3R4_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R3R4_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R4Seg, + ORIGIN_POINTS=....Segments.Right.R4Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Segments.Right.R5Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R4R5_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R4R5_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; + }; - SplineMuscle_CreateMuscleMultiOffset IC_Int_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R8Seg, - ORIGIN_POINTS=....Segments.Right.R8Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R9Seg, - INSERTION_POINTS=....Segments.Right.R9Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { + SplineMuscle_CreateMuscleMultiOffset IC_Int_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R5Seg, + ORIGIN_POINTS=....Segments.Right.R5Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R6Seg, + INSERTION_POINTS=....Segments.Right.R6Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R5R6_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R5R6_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + // AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R6Seg, + ORIGIN_POINTS=....Segments.Right.R6Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R7Seg, + INSERTION_POINTS=....Segments.Right.R7Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R6R7_elem_sternum; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R6R7_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + + }; + }; + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R7Seg, + ORIGIN_POINTS=....Segments.Right.R7Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R8Seg, + INSERTION_POINTS=....Segments.Right.R8Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R8R9_elem_sternum; - #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R8R9_elem_sternum; + AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R7R8_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R7R8_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R7R8_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + //AnyDrawPLine drwLine = {AnyFloat RGB_Red= {1,0,0};AnyFloat RGB_Green= {0,1,0};RGB=iffun(gtfun(.LmtDot,0),RGB_Red,RGB_Green);Thickness=0.005;}; + }; - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R9Seg, - ORIGIN_POINTS=....Segments.Right.R9Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R10Seg, - INSERTION_POINTS=....Segments.Right.R10Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 - )={ - DesiredAngle=-45; - NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); - AnyMuscleViaPoint elem_sternum= { + }; + + + SplineMuscle_CreateMuscleMultiOffset IC_Int_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R8Seg, + ORIGIN_POINTS=....Segments.Right.R8Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R9Seg, + INSERTION_POINTS=....Segments.Right.R9Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R8R9_elem_sternum; #else - AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R9R10_elem_sternum; + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R8R9_elem_sternum; #endif - AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; - AnyMuscleModel MusMdl = { - F0=..MuscleModel.F0/..NumberOfElements; - Lf0=..MuscleModel.F0; - Vol0=..MuscleModel.Vol0/..NumberOfElements; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - }; - }; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R10Seg, - ORIGIN_POINTS=....Segments.Right.R10Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R11Seg, - INSERTION_POINTS=....Segments.Right.R11Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 - )={DesiredAngle=-45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Int_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), - OriginSegment=....Segments.Right.R11Seg, - ORIGIN_POINTS=....Segments.Right.R11Seg.IC_points.Int_InfPoints, - InsertionSegment=....Segments.Right.R12Seg, - INSERTION_POINTS=....Segments.Right.R12Seg.IC_points.Int_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 - )={DesiredAngle=-45;}; + AnyRefNode &Ins = .InsertionSegment.IC_Int_R8R9_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; }; - + SplineMuscle_CreateMuscleMultiOffset IC_Int_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R9Seg, + ORIGIN_POINTS=....Segments.Right.R9Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R10Seg, + INSERTION_POINTS=....Segments.Right.R10Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 + )= { + DesiredAngle=-45; + NumberOfElements = IC_MULTIPLIER*(IC_SIZE+1); + AnyMuscleViaPoint elem_sternum= { + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyRefNode &Org = .....Segments.Right.CostalCartilageSeg.Right_IC_Int_R9R10_elem_sternum; + #else + AnyRefNode &Org = .....Segments.SternalBodySeg.Right_IC_Int_R9R10_elem_sternum; + #endif + AnyRefNode &Ins = .InsertionSegment.IC_Int_R9R10_elem_sternum; + AnyMuscleModel MusMdl = { + F0=..MuscleModel.F0/..NumberOfElements; + Lf0=..MuscleModel.F0; + Vol0=..MuscleModel.Vol0/..NumberOfElements; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + }; + }; - AnyFolder ExternalInterCostalis ={ + SplineMuscle_CreateMuscleMultiOffset IC_Int_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R10Seg, + ORIGIN_POINTS=....Segments.Right.R10Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R11Seg, + INSERTION_POINTS=....Segments.Right.R11Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 + )= {DesiredAngle=-45;}; - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R1R2 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R1Seg, - ORIGIN_POINTS=....Segments.Right.R1Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R2Seg, - INSERTION_POINTS=....Segments.Right.R2Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R2R3 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R2Seg, - ORIGIN_POINTS=....Segments.Right.R2Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R3Seg, - INSERTION_POINTS=....Segments.Right.R3Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R3R4 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R3Seg, - ORIGIN_POINTS=....Segments.Right.R3Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R4Seg, - INSERTION_POINTS=....Segments.Right.R4Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R4R5 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R4Seg, - ORIGIN_POINTS=....Segments.Right.R4Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R5Seg, - INSERTION_POINTS=....Segments.Right.R5Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R5R6 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R5Seg, - ORIGIN_POINTS=....Segments.Right.R5Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R6Seg, - INSERTION_POINTS=....Segments.Right.R6Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R6R7 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R6Seg, - ORIGIN_POINTS=....Segments.Right.R6Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R7Seg, - INSERTION_POINTS=....Segments.Right.R7Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R7R8 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R7Seg, - ORIGIN_POINTS=....Segments.Right.R7Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R8Seg, - INSERTION_POINTS=....Segments.Right.R8Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 - )={DesiredAngle=45;}; - - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R8R9 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R8Seg, - ORIGIN_POINTS=....Segments.Right.R8Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R9Seg, - INSERTION_POINTS=....Segments.Right.R9Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 - )={DesiredAngle=45;}; - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R9R10 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), - OriginSegment=....Segments.Right.R9Seg, - ORIGIN_POINTS=....Segments.Right.R9Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R10Seg, - INSERTION_POINTS=....Segments.Right.R10Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 - )={DesiredAngle=45;}; + SplineMuscle_CreateMuscleMultiOffset IC_Int_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), + OriginSegment=....Segments.Right.R11Seg, + ORIGIN_POINTS=....Segments.Right.R11Seg.IC_points.Int_InfPoints, + InsertionSegment=....Segments.Right.R12Seg, + INSERTION_POINTS=....Segments.Right.R12Seg.IC_points.Int_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 + )= {DesiredAngle=-45;}; +}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R10R11 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), - OriginSegment=....Segments.Right.R10Seg, - ORIGIN_POINTS=....Segments.Right.R10Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R11Seg, - INSERTION_POINTS=....Segments.Right.R11Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 - )={DesiredAngle=45;}; - - SplineMuscle_CreateMuscleMultiOffset IC_Ext_R11R12 ( - CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), - OriginSegment=....Segments.Right.R11Seg, - ORIGIN_POINTS=....Segments.Right.R11Seg.IC_points.Ext_InfPoints, - InsertionSegment=....Segments.Right.R12Seg, - INSERTION_POINTS=....Segments.Right.R12Seg.IC_points.Ext_SupPoints, - MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 - )={DesiredAngle=45;}; - }; +MuscleGroup ExternalInterCostalis(searchString="*.*") = { + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R1R2 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R1Seg, + ORIGIN_POINTS=....Segments.Right.R1Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R2Seg, + INSERTION_POINTS=....Segments.Right.R2Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R1R2 + )= {DesiredAngle=45;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R2R3 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R2Seg, + ORIGIN_POINTS=....Segments.Right.R2Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R3Seg, + INSERTION_POINTS=....Segments.Right.R3Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R2R3 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R3R4 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R3Seg, + ORIGIN_POINTS=....Segments.Right.R3Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R4Seg, + INSERTION_POINTS=....Segments.Right.R4Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R3R4 + )= {DesiredAngle=45;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R4R5 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R4Seg, + ORIGIN_POINTS=....Segments.Right.R4Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R5Seg, + INSERTION_POINTS=....Segments.Right.R5Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R4R5 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R5R6 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R5Seg, + ORIGIN_POINTS=....Segments.Right.R5Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R6Seg, + INSERTION_POINTS=....Segments.Right.R6Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R5R6 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R6R7 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R6Seg, + ORIGIN_POINTS=....Segments.Right.R6Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R7Seg, + INSERTION_POINTS=....Segments.Right.R7Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R6R7 + )= {DesiredAngle=45;}; + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R7R8 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R7Seg, + ORIGIN_POINTS=....Segments.Right.R7Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R8Seg, + INSERTION_POINTS=....Segments.Right.R8Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R7R8 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R8R9 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R8Seg, + ORIGIN_POINTS=....Segments.Right.R8Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R9Seg, + INSERTION_POINTS=....Segments.Right.R9Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R8R9 + )= {DesiredAngle=45;}; + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R9R10 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE+1), + OriginSegment=....Segments.Right.R9Seg, + ORIGIN_POINTS=....Segments.Right.R9Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R10Seg, + INSERTION_POINTS=....Segments.Right.R10Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R9R10 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R10R11 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE), + OriginSegment=....Segments.Right.R10Seg, + ORIGIN_POINTS=....Segments.Right.R10Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R11Seg, + INSERTION_POINTS=....Segments.Right.R11Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R10R11 + )= {DesiredAngle=45;}; + + + SplineMuscle_CreateMuscleMultiOffset IC_Ext_R11R12 ( + CREATE_ELEMENTS=IC_MULTIPLIER*(IC_SIZE-4), + OriginSegment=....Segments.Right.R11Seg, + ORIGIN_POINTS=....Segments.Right.R11Seg.IC_points.Ext_InfPoints, + InsertionSegment=....Segments.Right.R12Seg, + INSERTION_POINTS=....Segments.Right.R12Seg.IC_points.Ext_SupPoints, + MUSCLE_MODEL_PARAMETERS=....MuscleModels.Right.InterCostalisExternal.IC_Ext_R11R12 + )= {DesiredAngle=45;}; +}; - #endif - - - - - - - - - - - - - - - - - - - - - - - #endif -AnyFolder LevatorCostarum = { - +MuscleGroup LevatorCostarum = { + AnyMuscleViaPoint LCBrC7R1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LevatorCostarum.LCModel_1; AnyRefNode &S4 = ....Segments.C7Seg.LCBrC7R1ROrg; @@ -2011,7 +1945,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCBrT1R2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LevatorCostarum.LCModel_2; AnyRefNode &S4 = ....Segments.T1Seg.LCBrT1R2ROrg; @@ -2083,7 +2017,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCBrT10R11 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LevatorCostarum.LCModel_11; AnyRefNode &S4 = ....Segments.T10Seg.LCBrT10R11ROrg; @@ -2099,7 +2033,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + // LONGUS AnyMuscleViaPoint LCLgT5R7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LevatorCostarum.LCModel_13; @@ -2124,7 +2058,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCLgT8R10 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LevatorCostarum.LCModel_16; AnyRefNode &S4 = ....Segments.T8Seg.LCLgT8R10ROrg; @@ -2140,7 +2074,7 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LCLgT10R12 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LevatorCostarum.LCModel_18; AnyRefNode &S4 = ....Segments.T10Seg.LCLgT10R12ROrg; @@ -2148,10 +2082,10 @@ AnyFolder LevatorCostarum = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + }; -AnyFolder LongissimusCapitis = { +MuscleGroup LongissimusCapitis = { AnyMuscleViaPoint LongissimusCapitisC3C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongissimusCapitis.LongissimusCapitisC3C0; AnyRefNode &Org = ....Segments.C3Seg.LongissimusCapitisC3C0NodeR; @@ -2224,7 +2158,7 @@ AnyFolder LongissimusCapitis = { }; }; -AnyFolder LongissimusCervicis = { +MuscleGroup LongissimusCervicis = { AnyMuscleViaPoint LongissimusCervicisT1C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongissimusCervicis.LongissimusCervicisT1C2; AnyRefNode &Org = ....Segments.T1Seg.Right.LongissimusCervicisT1Node; @@ -2232,7 +2166,7 @@ AnyFolder LongissimusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LongissimusCervicisT2C3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongissimusCervicis.LongissimusCervicisT2C3; AnyRefNode &Org = ....Segments.T2Seg.Right.LongissimusCervicisT2Node; @@ -2248,7 +2182,7 @@ AnyFolder LongissimusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LongissimusCervicisT4C5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongissimusCervicis.LongissimusCervicisT4C5; AnyRefNode &Org = ....Segments.T4Seg.Right.LongissimusCervicisT4Node; @@ -2256,7 +2190,7 @@ AnyFolder LongissimusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint LongissimusCervicisT5C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongissimusCervicis.LongissimusCervicisT5C6; AnyRefNode &Org = ....Segments.T5Seg.Right.LongissimusCervicisT5Node; @@ -2266,7 +2200,7 @@ AnyFolder LongissimusCervicis = { }; }; -AnyFolder LongusCapitis = { +MuscleGroup LongusCapitis = { AnyMuscleViaPoint LongusCapitisC6C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongusCapitis.LongusCapitisC6C0; AnyRefNode &Org = ....Segments.C6Seg.LongusCapitisC6C0NodeR; @@ -2300,7 +2234,7 @@ AnyFolder LongusCapitis = { }; }; -AnyFolder LongusColli = { +MuscleGroup LongusColli = { // LongusColliVertical AnyMuscleViaPoint LongusColliT3C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongusColli.LongusColliT3C6; @@ -2460,8 +2394,8 @@ AnyFolder LongusColli = { viewMuscle = {#include "/drawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - -// LongusColliInferiorOblique + + // LongusColliInferiorOblique AnyMuscleViaPoint LongusColliInferiorObliqueT1C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LongusColli.LongusColliInferiorObliqueT1C6; AnyRefNode &Org = ....Segments.T1Seg.Right.LongusColliT1C4Node; @@ -2485,7 +2419,7 @@ AnyFolder LongusColli = { }; }; -AnyFolder Multifidi = { +MuscleGroup Multifidi = { AnyMuscleViaPoint MFdL1L3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Multifidi.MFdL1L3; AnyRefNode &Org = ....Segments.L1Seg.MFdL1L3NodeR; @@ -2533,7 +2467,7 @@ AnyFolder Multifidi = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MFmL2L5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Multifidi.MFmL2L5; AnyRefNode &Org = ....Segments.L2Seg.MFmL2L5NodeR; @@ -2541,7 +2475,7 @@ AnyFolder Multifidi = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MFmL3S1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Multifidi.MFmL3S1; AnyRefNode &Org = ....Segments.L3Seg.MFmL3S1NodeR; @@ -2644,7 +2578,7 @@ AnyFolder Multifidi = { }; }; -AnyFolder MultifidusCervicis = { +MuscleGroup MultifidusCervicis = { AnyMuscleViaPoint MultifidusCervicisC5C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisC5C2; AnyRefNode &Org = ....Segments.C5Seg.MultifidusCervicisC5C2NodeR; @@ -2652,7 +2586,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC6C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisC6C2; AnyRefNode &Org = ....Segments.C6Seg.MultifidusCervicisC6C2NodeR; @@ -2660,7 +2594,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC6C3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisC6C3; AnyRefNode &Org = ....Segments.C6Seg.MultifidusCervicisC6C2NodeR; @@ -2668,7 +2602,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC7C3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisC7C3; AnyRefNode &Org = ....Segments.C7Seg.MultifidusCervicisC7C3NodeR; @@ -2676,7 +2610,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisC7C4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisC7C4; AnyRefNode &Org = ....Segments.C7Seg.MultifidusCervicisC7C4NodeR; @@ -2684,7 +2618,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT1C4 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT1C4; AnyRefNode &Org = ....Segments.T1Seg.MultifidusCervicisT1C4NodeR; @@ -2692,7 +2626,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT1C5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT1C5; AnyRefNode &Org = ....Segments.T1Seg.MultifidusCervicisT1C5NodeR; @@ -2700,7 +2634,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT2C5 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT2C5; AnyRefNode &Org = ....Segments.T2Seg.MultifidusCervicisT2C5NodeR; @@ -2708,7 +2642,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT2C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT2C6; AnyRefNode &Org = ....Segments.T2Seg.MultifidusCervicisT2C6NodeR; @@ -2716,7 +2650,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT3C6 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT3C6; AnyRefNode &Org = ....Segments.T3Seg.MultifidusCervicisT3C6NodeR; @@ -2724,7 +2658,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT3C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT3C7; AnyRefNode &Org = ....Segments.T3Seg.MultifidusCervicisT3C7NodeR; @@ -2732,7 +2666,7 @@ AnyFolder MultifidusCervicis = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; }; - + AnyMuscleViaPoint MultifidusCervicisT4C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.MultifidusCervicis.MultifidusCervicisT4C7; AnyRefNode &Org = ....Segments.T4Seg.MultifidusCervicisT4C7NodeR; @@ -2742,1721 +2676,1721 @@ AnyFolder MultifidusCervicis = { }; }; -AnyFolder ObliquusExternus = { +MuscleGroup ObliquusExternus = { -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - - - -#ifdef OBLIQUUS_WRAP_ON_CYLS - -AnyMuscleShortestPath OEC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_1; - AnyRefNode &Org = ....Segments.Right.R6Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OEC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_2; - AnyRefNode &Org = ....Segments.Right.R7Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif - - SPLine.StringMesh=60; + #ifdef OBLIQUUS_WRAP_ON_CYLS - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + AnyMuscleShortestPath OEC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_1; + AnyRefNode &Org = ....Segments.Right.R6Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_3; - AnyRefNode &Org = ....Segments.Right.R8Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif + AnyMuscleShortestPath OEC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_2; + AnyRefNode &Org = ....Segments.Right.R7Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + AnyMuscleShortestPath OEC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_3; + AnyRefNode &Org = ....Segments.Right.R8Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_4; - AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + AnyMuscleShortestPath OEC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_4; + AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; }; - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_5= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_5; - AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf0 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf0 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.OutwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn10.Translate.OutwardCyl; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_6; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn11; + AnyMuscleShortestPath OEC_5= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_5; + AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf0 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf0 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.OutwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn10.Translate.OutwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.VerticalCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn10.Translate.OutwardCyl; - SPLine.StringMesh=240; + AnyMuscleShortestPath OEC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_6; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn11; + + // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.VerticalCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn10.Translate.OutwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + viewForce.Visible ??= Off; + }; - SPLine ={ - AnyMatrix InitWrapPos = { - // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), - }; - InitWrapPosVecArr = {&InitWrapPos}; + + AnyMuscleShortestPath OEC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_7; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn10; + + // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn08.Translate.VerticalCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.OutwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + // transf3D({0,-1.1*.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_7; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn10; - - // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn08.Translate.VerticalCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.OutwardCyl; - - SPLine.StringMesh=240; - SPLine ={ - AnyMatrix InitWrapPos = { - // transf3D({0,-1.1*.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-1.1*.srf2.radius, 0.5*.srf2.Length}, &.srf2), - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_8= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_8; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_00; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_9= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_9; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_0; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_10; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_11; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_12; - AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -#endif - -#ifndef OBLIQUUS_WRAP_ON_CYLS - - - -AnyMuscleShortestPath OEC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_1; - AnyRefNode &Org = ....Segments.Right.R6Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif + AnyMuscleViaPoint OEC_8= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_8; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_00; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) - }; + AnyMuscleViaPoint OEC_9= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_9; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_0; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_10; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleViaPoint OEC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_11; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OEC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_2; - AnyRefNode &Org = ....Segments.Right.R7Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif - - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_3; - AnyRefNode &Org = ....Segments.Right.R8Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + AnyMuscleViaPoint OEC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_12; + AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + #endif + #ifndef OBLIQUUS_WRAP_ON_CYLS -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - - SPLine.StringMesh=60; - - - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.9)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// }; -// #endif - + AnyMuscleShortestPath OEC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_1; + AnyRefNode &Org = ....Segments.Right.R6Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif - AnyMatrix InitWrapPos = { - transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), - transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + + + + InitWrapPosVecArr = {&InitWrapPos}; }; - - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_4; - AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif + AnyMuscleShortestPath OEC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_2; + AnyRefNode &Org = ....Segments.Right.R7Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #else -// //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - - SPLine.StringMesh=60; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -//AnyMatrix InitWrapPos = { -// transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), -// -// // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.85)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.95)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3) -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.95)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) -// -// -// }; -// #endif - AnyMatrix InitWrapPos = { + AnyMuscleShortestPath OEC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_3; + AnyRefNode &Org = ....Segments.Right.R8Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + + + + SPLine.StringMesh=60; + + + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.9)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // }; + // #endif + + + AnyMatrix InitWrapPos = { transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), - //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - }; - - InitWrapPosVecArr = {&InitWrapPos}; + transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + }; + + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_5= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_5; - AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 - AnyParamSurf &srf0 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; - #else - AnyParamSurf &srf0 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; - #endif - -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - SPLine.StringMesh=240; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), -// // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), -// -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// -// }; -// #endif -// -// -// -// #if MESH_TYPE == "QUAD" -//AnyMatrix InitWrapPos = { -// transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), -// //transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.85)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.85)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - }; - - InitWrapPosVecArr = {&InitWrapPos}; - }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -// -AnyMuscleShortestPath OEC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_6; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn11; - //AnySurfTriCylMesh &mesh4= Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// #endif - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - + AnyMuscleShortestPath OEC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_4; + AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf1 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf1 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #else + // //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + + SPLine.StringMesh=60; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + //AnyMatrix InitWrapPos = { + // transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + // + // // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.85)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.95)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3) + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.95)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) + // + // + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({0,.srf1.MajorRadius+.srf1.MinorRadius, 0}, &.srf1), + //transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + //transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OEC_5= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_5; + AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + AnyParamSurf &srf0 =....Segments.Right.CostalCartilageSeg.WrappingTorusR10.Surf; + #else + AnyParamSurf &srf0 =....Segments.SternalBodySeg.Right.ObliquusWrapping.Surf; + #endif + + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + // // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + // + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // + // }; + // #endif + // + // + // + // #if MESH_TYPE == "QUAD" + //AnyMatrix InitWrapPos = { + // transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + // //transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.85)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.85)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4) + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({0,.srf0.MajorRadius+.srf0.MinorRadius, 0}, &.srf0), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=240; - - SPLine ={ -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// -// }; -// #endif -// -// -// -// #if MESH_TYPE == "QUAD" -// -// AnyMatrix InitWrapPos = { -// // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// -// }; -// #endif - AnyMatrix InitWrapPos = { + // + AnyMuscleShortestPath OEC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_6; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn11; + //AnySurfTriCylMesh &mesh4= Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // #endif + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + + SPLine.StringMesh=240; + + SPLine = { + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // + // }; + // #endif + // + // + // + // #if MESH_TYPE == "QUAD" + // + // AnyMatrix InitWrapPos = { + // // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // + // }; + // #endif + AnyMatrix InitWrapPos = { transf3D({.mesh4.Radius[0],0,0}, &.mesh4), transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + + InitWrapPosVecArr = {&InitWrapPos}; }; - - - InitWrapPosVecArr = {&InitWrapPos}; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OEC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_7; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn10; + // AnySurfTriCylMesh &mesh0 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // #endif + + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // + // }; + // #endif + // + // + // #if MESH_TYPE == "QUAD" + // + // AnyMatrix InitWrapPos = { + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*20*4]+{0.01,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*20*4]+{0.01,0,0}, &.mesh5) + // }; + // #endif + + AnyMatrix InitWrapPos = { + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any" }; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OEC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_7; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Abdominal.Layer_Pelvic2.BaseSegAnterior.VolumePoints.Right.nn10; - // AnySurfTriCylMesh &mesh0 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; - // AnySurfTriCylMesh &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// #endif - -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - SPLine.StringMesh=240; - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// -// }; -// #endif -// -// -// #if MESH_TYPE == "QUAD" -// -// AnyMatrix InitWrapPos = { -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.8)+2*20*4]+{0.01,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.85)+2*20*4]+{0.01,0,0}, &.mesh5) -// }; -// #endif - - AnyMatrix InitWrapPos = { -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), - }; - - InitWrapPosVecArr = {&InitWrapPos}; + + AnyMuscleViaPoint OEC_8= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_8; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_00; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_9= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_9; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_0; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_10; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_11; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OEC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_12; + AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + #endif + + #endif + + + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ + AnyMuscleViaPoint OEC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_1; + AnyRefNode &Org = ....Segments.Right.R6Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_2; + AnyRefNode &Org = ....Segments.Right.R7Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_3; + AnyRefNode &Org = ....Segments.Right.R8Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_4; + AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_5; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_8= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_8; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_00; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_9= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_9; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_0; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_10; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_11; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OEC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_12; - AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -#endif - -#endif - - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ - AnyMuscleViaPoint OEC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_1; - AnyRefNode &Org = ....Segments.Right.R6Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_2; - AnyRefNode &Org = ....Segments.Right.R7Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_3; - AnyRefNode &Org = ....Segments.Right.R8Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_4; - AnyRefNode &Org = ....Segments.Right.R9Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_5; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Buckle.Segments.BuckleSeg.Right.ObliquusExternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_6; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusExternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_7; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusExternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint OEC_8= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_8; - AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusExternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; + AnyMuscleViaPoint OEC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_6; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusExternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_7; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusExternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint OEC_8= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusExternus.OEC_8; + AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusExternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; #endif }; -AnyFolder ObliquusInternus = { - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - -#ifdef OBLIQUUS_WRAP_ON_CYLS - - -AnyMuscleViaPoint OIC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_1; - AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - - -AnyMuscleViaPoint OIC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_2; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_3; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_4; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_5; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_6; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 +MuscleGroup ObliquusInternus = { + + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ + + #ifdef OBLIQUUS_WRAP_ON_CYLS + + + AnyMuscleViaPoint OIC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_1; + AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_2; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_3; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_4; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_5; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_6; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.ObliquusInternus_1; - #else + #else AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_1; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - - AnyParamSurf &srf4 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn04.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf4.radius, 0.5*.srf4.Length}, &.srf4) - }; - InitWrapPosVecArr = {&InitWrapPos}; + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + + AnyParamSurf &srf4 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn04.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf4.radius, 0.5*.srf4.Length}, &.srf4) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_7; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + + + AnyMuscleShortestPath OIC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_7; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.ObliquusInternus_2; - #else + #else AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_2; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn08.Translate.InwardCyl; + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn08.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + AnyMuscleShortestPath OIC_8 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; + // AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; + // AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; + AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Right.nn06; + + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Right.nn10.Translate.InwardCyl; + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn08.Translate.InwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_8 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; -// AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; -// AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; - AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Right.nn06; - - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Right.nn10.Translate.InwardCyl; - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn08.Translate.InwardCyl; - - SPLine.StringMesh=240; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + + + + + + AnyMuscleShortestPath OIC_8_extra = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_R; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Right.nn10.Translate.InwardCyl; + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn08.Translate.InwardCyl; + + SPLine.StringMesh=240; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - - - - - - - -AnyMuscleShortestPath OIC_8_extra = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_R; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Right.nn10.Translate.InwardCyl; - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn08.Translate.InwardCyl; - - SPLine.StringMesh=240; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + AnyMuscleShortestPath OIC_9 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_9; + AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + //AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Right.nn11.Translate.InwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn10.Translate.InwardCyl; + AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), + transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_9 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_9; - AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - - //AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer2WrappingPoints.Right.nn11.Translate.InwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn10.Translate.InwardCyl; - AnyParamSurf &srf3 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - // transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2), - transf3D({0,-.srf3.radius, 0.5*.srf3.Length}, &.srf3) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + AnyMuscleShortestPath OIC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_10; + AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn11.Translate.InwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - -AnyMuscleShortestPath OIC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_10; - AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer3WrappingPoints.Right.nn11.Translate.InwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn09.Translate.InwardCyl; - SPLine.StringMesh=60; - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) - }; - InitWrapPosVecArr = {&InitWrapPos}; - }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_11; - AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn11.Translate.InwardCyl; - AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn08.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), - transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) - }; - InitWrapPosVecArr = {&InitWrapPos}; + AnyMuscleShortestPath OIC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_11; + AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn11.Translate.InwardCyl; + AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn08.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1), + transf3D({0,-.srf2.radius, 0.5*.srf2.Length}, &.srf2) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_12; - AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn09.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { - transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) - }; - InitWrapPosVecArr = {&InitWrapPos}; + + + AnyMuscleShortestPath OIC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_12; + AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn09.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { + transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) + }; + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_13= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_13; - AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; - - AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn11.Translate.InwardCyl; - - SPLine.StringMesh=60; - - SPLine ={ - AnyMatrix InitWrapPos = { + + AnyMuscleShortestPath OIC_13= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_13; + AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; + + AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn11.Translate.InwardCyl; + + SPLine.StringMesh=60; + + SPLine = { + AnyMatrix InitWrapPos = { transf3D({0,-.srf1.radius, 0.5*.srf1.Length}, &.srf1) }; InitWrapPosVecArr = {&InitWrapPos}; }; - - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -#endif - -#ifndef OBLIQUUS_WRAP_ON_CYLS -AnyMuscleViaPoint OIC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_1; - AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - - -AnyMuscleViaPoint OIC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_2; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_3; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_4; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleViaPoint OIC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_5; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_6; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + #endif + + #ifndef OBLIQUUS_WRAP_ON_CYLS + AnyMuscleViaPoint OIC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_1; + AnyRefNode &Org = ....Segments.Right.R12Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_2; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_3; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusExternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_4; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleViaPoint OIC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_5; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusExternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + + AnyMuscleShortestPath OIC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_6; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.ObliquusInternus_1; - #else + #else AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_1; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; - // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// #endif + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // #endif AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - - SPLine.StringMesh=60; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// //transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - - AnyMatrix InitWrapPos = { - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + + SPLine.StringMesh=60; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // //transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + + AnyMatrix InitWrapPos = { + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_7; - #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 + + AnyMuscleShortestPath OIC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_7; + #if BM_TRUNK_THORACIC_STERNUM_TOPOLOGY == 4 AnyRefNode &Org = ....Segments.Right.CostalCartilageSeg.ObliquusInternus_2; - #else + #else AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_2; - #endif - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - -//// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3_extra = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh2; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - SPLine.StringMesh=240; - - SPLine ={ - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -//// transf3D({0,.mesh3_extra.Radius[1],0}, &.mesh3_extra), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + #endif + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + + //// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3_extra = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh2; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + SPLine.StringMesh=240; + + SPLine = { + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + //// transf3D({0,.mesh3_extra.Radius[1],0}, &.mesh3_extra), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_8 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_R; - // AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Right.nn05; - - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; -//// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3_extra = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh2; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif -// AnySurfEllipsoid &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.mesh3; -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - - -SPLine.StringMesh=240; - -SPLine ={ - // SolverVersion=3; - // StringSurfaceMap={{Off,Off,Off,Off},{On,On,On,On}}; //no wrap before after via - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0},&.mesh3), -//// transf3D({0,.mesh3_extra.Radius[1],0},&.mesh3_extra), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// // transf3D({0.0,2*.srf1.MajorRadius,-.srf1.MajorRadius}, &.srf1), -// // transf3D(.mesh1.Points[52]+{0.03,0,0}, &.mesh1), -// // transf3D(.mesh1.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*4]+{0.01,0,0}, &.mesh1), -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -//// transf3D(mesh.Points[floor(.mesh.MeshSize*4]+{0.01,0,0}, &.mesh), -// -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - AnyMatrix InitWrapPos = { -// transf3D({.mesh1.Radius[0],0,0}, &.mesh1), -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - }; - - - InitWrapPosVecArr = {&InitWrapPos}; -}; -viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; -viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_9 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_9; - AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; - AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Right.nn06; - - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - - //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -//#ifndef WRAPPING_TEST -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3_extra = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh2; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif -//#else -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; -//#endif - - - SPLine.StringMesh=240; -// #ifndef WRAPPING_TEST - - SPLine ={ -// StringSurfaceMap={{Off,Off,Off,Off},{On,On,On,On}}; //no wrap before after via -// StringSurfaceMap={{Off,Off,Off},{On,On,On}}; //no wrap before after via - StringSurfaceMap={{Off,Off},{On,On}}; //no wrap before after via - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -//// transf3D({0,.mesh3_extra.Radius[1],0}, &.mesh3_extra), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.6)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + AnyMuscleShortestPath OIC_8 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_Via_2_R; + // AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Right.nn05; + + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + //// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3_extra = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh2; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + // AnySurfEllipsoid &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.mesh3; + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + + SPLine.StringMesh=240; + + SPLine = { + // SolverVersion=3; + // StringSurfaceMap= {{Off,Off,Off,Off},{On,On,On,On}}; //no wrap before after via + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0},&.mesh3), + //// transf3D({0,.mesh3_extra.Radius[1],0},&.mesh3_extra), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // // transf3D({0.0,2*.srf1.MajorRadius,-.srf1.MajorRadius}, &.srf1), + // // transf3D(.mesh1.Points[52]+{0.03,0,0}, &.mesh1), + // // transf3D(.mesh1.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*4]+{0.01,0,0}, &.mesh1), + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + //// transf3D(mesh.Points[floor(.mesh.MeshSize*4]+{0.01,0,0}, &.mesh), + // + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif + AnyMatrix InitWrapPos = { + // transf3D({.mesh1.Radius[0],0,0}, &.mesh1), + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + }; + + + InitWrapPosVecArr = {&InitWrapPos}; + + }; - - InitWrapPosVecArr = {None,&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - -// #else -// SPLine ={ -// StringSurfaceMap={{Off},{On}}; //no wrap before after via -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh3_extra.Radius[1],0}, &.mesh3_extra), -// }; -// #endif -// -// -// -// InitWrapPosVecArr = {None,&InitWrapPos}; -// }; -// #endif - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleShortestPath OIC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_10; - AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; - // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; - //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -//// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// #else -// AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// #endif - - AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - - SPLine.StringMesh=240; - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh2.Radius[0],0,0}, &.mesh2), -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// -// }; -// #endif -// -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh2.Radius[1],0}, &.mesh2), -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// }; -// #endif -// -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7) +2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6) +2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - AnyMatrix InitWrapPos = { - transf3D({.mesh2.Radius[0],0,0}, &.mesh2), - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + AnyMuscleShortestPath OIC_9 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_9; + AnyRefNode &Org = ....Segments.SternalBodySeg.Xiphoid_DiaphragmNodeR; + AnyRefNode &Via = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.TransversusPoints.Right.nn06; + + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + //AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + //#ifndef WRAPPING_TEST + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3_extra = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh2; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + //#else + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + //#endif + + + SPLine.StringMesh=240; + // #ifndef WRAPPING_TEST + + SPLine = { + // StringSurfaceMap= {{Off,Off,Off,Off},{On,On,On,On}}; //no wrap before after via + // StringSurfaceMap= {{Off,Off,Off},{On,On,On}}; //no wrap before after via + StringSurfaceMap= {{Off,Off},{On,On}}; //no wrap before after via + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + //// transf3D({0,.mesh3_extra.Radius[1],0}, &.mesh3_extra), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.8)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.6)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + InitWrapPosVecArr = {None,&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + + // #else + // SPLine = { + // StringSurfaceMap= {{Off},{On}}; //no wrap before after via + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh3_extra.Radius[1],0}, &.mesh3_extra), + // }; + // #endif + // + // + // + // InitWrapPosVecArr = {None,&InitWrapPos}; + // }; + // #endif + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; + AnyMuscleShortestPath OIC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_10; + AnyRefNode &Org = ....Abdominal.Layer_L1.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + //// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // #else + // AnySurfTriCylMesh &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // #endif + + AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=240; + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // + // }; + // #endif + // + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh2.Radius[1],0}, &.mesh2), + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // }; + // #endif + // + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // transf3D(.mesh2.Points[floor(.mesh2.MeshSize*0.75)+2*.mesh2.MeshSize*6]+{0.02,0,0}, &.mesh2), + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.7) +2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.65)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.6) +2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + transf3D({.mesh2.Radius[0],0,0}, &.mesh2), + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + }; + + InitWrapPosVecArr = {&InitWrapPos}; + }; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + + }; -}; - - -AnyMuscleShortestPath OIC_11 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_11; - AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - -//// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -//// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; -//// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// -// #else -// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #endif - - AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - SPLine.StringMesh=300; - - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// -// transf3D({.mesh3.Radius[0],0,0}, &.mesh3), -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// -// }; -// #endif -// -// -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh3.Radius[1],0}, &.mesh3), -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// -// }; -// #endif -// -// -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// -// transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// #endif - AnyMatrix InitWrapPos = { + AnyMuscleShortestPath OIC_11 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_11; + AnyRefNode &Org = ....Abdominal.Layer_L2.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + + //// AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + //// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; + //// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // + // #else + // AnySurfTriCylMesh &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #endif + + AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=300; + + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // + // transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // + // }; + // #endif + // + // + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh3.Radius[1],0}, &.mesh3), + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // + // }; + // #endif + // + // + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // + // transf3D(.mesh3.Points[floor(.mesh3.MeshSize*0.75)+2*.mesh3.MeshSize*6]+{0.02,0,0}, &.mesh3), + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.7)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // #endif + AnyMatrix InitWrapPos = { + + transf3D({.mesh3.Radius[0],0,0}, &.mesh3), + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + }; - transf3D({.mesh3.Radius[0],0,0}, &.mesh3), - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -// - -AnyMuscleShortestPath OIC_12 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_12; - AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - - // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn11.Translate.InwardCyl; - // AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn08.Translate.InwardCyl; -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; -//// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// -// #else -// AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #endif - AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - - - SPLine.StringMesh=240; - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// -// transf3D({.mesh4.Radius[0],0,0}, &.mesh4), -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// -// }; -// #endif -// -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh4.Radius[1],0}, &.mesh4), -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// -// transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.75)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - AnyMatrix InitWrapPos = { + + // + + AnyMuscleShortestPath OIC_12 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_12; + AnyRefNode &Org = ....Abdominal.Layer_L3.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + + // AnyParamSurf &srf1 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer4WrappingPoints.Right.nn11.Translate.InwardCyl; + // AnyParamSurf &srf2 =....Abdominal.ObliquusWrapping.WrappingSeg.Layer5WrappingPoints.Right.nn08.Translate.InwardCyl; + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.Right.mesh; + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; + //// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // + // #else + // AnySurfTriCylMesh &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #endif + AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh3; + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + + SPLine.StringMesh=240; + + SPLine = { - transf3D({.mesh4.Radius[0],0,0}, &.mesh4), - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // + // transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // + // }; + // #endif + // + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh4.Radius[1],0}, &.mesh4), + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // + // transf3D(.mesh4.Points[floor(.mesh4.MeshSize*0.75)+2*.mesh4.MeshSize*6]+{0.02,0,0}, &.mesh4), + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif + AnyMatrix InitWrapPos = { + + transf3D({.mesh4.Radius[0],0,0}, &.mesh4), + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - - -AnyMuscleShortestPath OIC_13 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_13; - AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - - -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; -//// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; -// #else -// AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; -// -// #endif - AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; - - SPLine.StringMesh=60; - - SPLine ={ - - -// #if MESH_TYPE == "ELLIPSOID" -// AnyMatrix InitWrapPos = { -// transf3D({.mesh5.Radius[0],0,0}, &.mesh5), -// }; -// #endif -// #if MESH_TYPE == "ELLIPSOID_SIDE" -// AnyMatrix InitWrapPos = { -// transf3D({0,.mesh5.Radius[1],0}, &.mesh5), -// }; -// #endif -// -// #if MESH_TYPE == "QUAD" -// AnyMatrix InitWrapPos = { -// -// transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) -// }; -// -// #endif - AnyMatrix InitWrapPos = { - transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + + AnyMuscleShortestPath OIC_13 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_13; + AnyRefNode &Org = ....Abdominal.Layer_L4.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + + + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.Right.mesh; + //// AnySurfEllipsoid &meshpelvis = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_Pelvic1.BaseSegAnterior.mesh; + // #else + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // #endif + AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh3; + + + SPLine.StringMesh=60; + + SPLine = { + + + // #if MESH_TYPE == "ELLIPSOID" + // AnyMatrix InitWrapPos = { + // transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + // }; + // #endif + // #if MESH_TYPE == "ELLIPSOID_SIDE" + // AnyMatrix InitWrapPos = { + // transf3D({0,.mesh5.Radius[1],0}, &.mesh5), + // }; + // #endif + // + // #if MESH_TYPE == "QUAD" + // AnyMatrix InitWrapPos = { + // + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*6]+{0.02,0,0}, &.mesh5) + // }; + // + // #endif + AnyMatrix InitWrapPos = { + transf3D({.mesh5.Radius[0],0,0}, &.mesh5), + }; + + InitWrapPosVecArr = {&InitWrapPos}; }; - - InitWrapPosVecArr = {&InitWrapPos}; + + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_14= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_14; - AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; - - // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - // - // SPLine.StringMesh=60; - // - // SPLine ={ - // AnyMatrix InitWrapPos = { - // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*4]+{0.01,0,0}, &.mesh5) - // - // }; - // InitWrapPosVecArr = {&InitWrapPos}; - // }; - // - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; -#endif - - -#endif - -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ -AnyMuscleViaPoint OIC_1 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_1; - AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusInternusNode; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_1; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_2 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_2; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusInternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_2; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_3 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_3; - AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusInternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_3; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_4 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_4; - AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_5 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_5; - AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_6 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_6; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_1; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_7 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_7; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_2; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_8 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_3; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_9 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_9; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_4; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_9; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; - -AnyMuscleViaPoint OIC_10 = { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_10; - AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_5; - AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_10; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; -}; -#endif + AnyMuscleViaPoint OIC_14= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_14; + AnyRefNode &Org = ....Abdominal.Layer_L5.BaseSegAnterior.mid; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; + + // AnySurfTriCylMesh &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; + // + // SPLine.StringMesh=60; + // + // SPLine = { + // AnyMatrix InitWrapPos = { + // transf3D(.mesh5.Points[floor(.mesh5.MeshSize*0.65)+2*.mesh5.MeshSize*4]+{0.01,0,0}, &.mesh5) + // + // }; + // InitWrapPosVecArr = {&InitWrapPos}; + // }; + // + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + #endif + + + #endif + + #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ + AnyMuscleViaPoint OIC_1 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_1; + AnyRefNode &Org = ....Segments.Right.R11Seg.ObliquusInternusNode; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_1; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_2 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_2; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusInternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_2; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_3 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_3; + AnyRefNode &Org = ....Segments.Right.R10Seg.ObliquusInternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_3; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_4 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_4; + AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_4; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_5 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_5; + AnyRefNode &Org = ....Segments.SternalBodySeg.Right.ObliquusInternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_5; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_6 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_6; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_1; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_6; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_7 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_7; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_2; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_7; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_8 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_8; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_3; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_8; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_9 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_9; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_4; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_9; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint OIC_10 = { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.ObliquusInternus.OIC_10; + AnyRefNode &Org = ....Buckle.Segments.BuckleSeg.Right.ObliquusInternusNode_5; + AnyRefNode &Ins = ....Segments.PelvisSeg.Right.ObliquusInternusNode_10; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + #endif }; // Psoas is separated since it is used by the legs in certain BM configurations #include "PsoasMajorRight.any" -AnyFolder QuadratusLumborum = { +MuscleGroup QuadratusLumborum = { AnyMuscleViaPoint QLC12Lat_CILat = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.QuadratusLumborum.QL_1; AnyRefNode &Org = ....Segments.Right.R12Seg.QLC12Lat_CINode1R; @@ -4697,7 +4631,7 @@ AnyFolder QuadratusLumborum = { }; -AnyFolder RectusAbdominis = { +MuscleGroup RectusAbdominis = { #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_BUCKLE_ @@ -4728,19 +4662,19 @@ AnyFolder RectusAbdominis = { #if RECTUS_MUSCLE_LINE == SP - AnyMuscleShortestPath RA_1 = { + AnyMuscleShortestPath RA_1 = { AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_CO6_2_R; - + AnySurfEllipsoid &mesh1 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L1.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh2 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L2.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh3 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L3.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh4 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L4.BaseSegAnterior.mesh; AnySurfEllipsoid &mesh5 = Main.HumanModel.BodyModel.Trunk.Abdominal.Layer_L5.BaseSegAnterior.mesh; - - SPLine.StringMesh=100; - SPLine ={ + + SPLine.StringMesh=100; + SPLine = { AnyMatrix InitWrapPos = { transf3D({.mesh1.Radius,0,0}, &.mesh1), transf3D({.mesh2.Radius,0,0}, &.mesh2), @@ -4749,7 +4683,7 @@ AnyFolder RectusAbdominis = { transf3D({.mesh5.Radius,0,0}, &.mesh5), }; }; - + AnyRefNode &Ins = ....Segments.PelvisSeg.RA_1_R; viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; @@ -4851,15 +4785,15 @@ AnyFolder RectusAbdominis = { F0 = .....MuscleModels.Right.RectusAbdominis.RA_2.F0; }; }; - + #else -// #if RECTUS_MUSCLE_LINE == VIA + // #if RECTUS_MUSCLE_LINE == VIA - AnyMuscleViaPoint RA_1 = { + AnyMuscleViaPoint RA_1 = { AnyRefNode &Org = ....Segments.SternalBodySeg.RACP_CO6_2_R; - + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; @@ -4873,7 +4807,7 @@ AnyFolder RectusAbdominis = { AnyRefNode &Ins = ....Segments.PelvisSeg.RA_1_R; }; - AnyMuscleViaPoint RA_2 = { + AnyMuscleViaPoint RA_2 = { viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; viewForce.Visible ??= Off; AnyMuscleModel& MusMdl = ....MuscleModels.Right.RectusAbdominis.RA_2; @@ -4887,7 +4821,7 @@ AnyFolder RectusAbdominis = { AnyRefNode &Ins = ....Segments.PelvisSeg.RA_2_R; }; #endif - + #endif @@ -5089,7 +5023,7 @@ AnyFolder RectusAbdominis = { #endif }; -AnyFolder Scalenus = { +MuscleGroup Scalenus = { AnyMuscleViaPoint ScalenusAnteriorR1C6 = { AnyMuscleModel &MusMdl= ....MuscleModels.Right.Scalenus.ScalenusAnteriorR1C6; AnyRefNode &Org = ....Segments.C6Seg.Right.ScalenusAnteriorR1C6Node; @@ -5185,7 +5119,7 @@ AnyFolder Scalenus = { // Model needs the Hyoid bone. The hyoid muscles try to stabilize the trachea and play a // vital part in swallowing and speech. -AnyFolder Hyoid = { +MuscleGroup Hyoid = { AnyMuscleViaPoint LumpedHyoidStC0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.LumpedHyoid.LumpedHyoidStC0; AnyRefNode &Org = ....Segments.SkullSeg.LumpedHyoidT1C0NodeR; @@ -5195,7 +5129,7 @@ AnyFolder Hyoid = { }; }; -AnyFolder SemispinalisCapitis = { +MuscleGroup SemispinalisCapitis = { AnyMuscleViaPoint SemispinalisCapitisC4C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.SemispinalisCapitis.SemispinalisCapitisC4C0; AnyRefNode &Org = ....Segments.C4Seg.SemispinalisCapitisC4C0NodeR; @@ -5272,7 +5206,7 @@ AnyFolder SemispinalisCapitis = { }; }; -AnyFolder SemispinalisCervicis = { +MuscleGroup SemispinalisCervicis = { AnyMuscleViaPoint SemispinalisCervicisT1C2 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.SemispinalisCervicis.SemispinalisCervicisT1C2; AnyRefNode &Org = ....Segments.T1Seg.SemispinalisCervicisT1C2NodeR; @@ -5322,7 +5256,7 @@ AnyFolder SemispinalisCervicis = { }; }; -AnyFolder SemispinalisThoracis = { +MuscleGroup SemispinalisThoracis = { AnyMuscleViaPoint SSTT12T4 = { @@ -5394,7 +5328,7 @@ AnyFolder SemispinalisThoracis = { }; }; -AnyFolder SerratusPosteriorSuperior = { +MuscleGroup SerratusPosteriorSuperior = { AnyMuscleViaPoint SPSR2C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.SerratusPosteriorSuperior.SPSR2C7; @@ -5429,7 +5363,7 @@ AnyFolder SerratusPosteriorSuperior = { }; }; -AnyFolder SerratusPosteriorInferior = { +MuscleGroup SerratusPosteriorInferior = { AnyMuscleViaPoint SPIL2R12 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.SerratusPosteriorInferior.SPIL2R12; @@ -5468,7 +5402,7 @@ AnyFolder SerratusPosteriorInferior = { }; }; -AnyFolder SpleniusCapitis = { +MuscleGroup SpleniusCapitis = { AnyMuscleViaPoint SpleniusCapitisC7C0 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.SpleniusCapitis.SpleniusCapitisC7C0; AnyRefNode &Org = ....Segments.SkullSeg.SpleniusCapitisNodeR; @@ -5499,7 +5433,7 @@ AnyFolder SpleniusCapitis = { }; }; -AnyFolder SpleniusCervicis = { +MuscleGroup SpleniusCervicis = { AnyMuscleViaPoint SpleniusCervicisT3C1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.SpleniusCervicis.SpleniusCervicisT3C1; AnyRefNode &Org = ....Segments.T3Seg.Right.SpleniusCervicisNode; @@ -5532,7 +5466,7 @@ AnyFolder SpleniusCervicis = { }; #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ -AnyFolder Subcostalis = { +MuscleGroup Subcostalis = { AnyMuscleViaPoint SCR1R3 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.Subcostalis.SCModel_1; AnyRefNode &R1 = ....Segments.Right.R1Seg.SCR1R3_R_Org; @@ -5671,7 +5605,7 @@ AnyFolder Subcostalis = { }; #endif -AnyFolder ThoracicMultifidi = { +MuscleGroup ThoracicMultifidi = { AnyMuscleViaPoint MFT4T1 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.ThoracicMultifidi.MFT4T1; AnyRefFrame &Org = ....Segments.T4Seg.MFT4T1NodeROrg; @@ -5973,7 +5907,7 @@ AnyFolder ThoracicMultifidi = { }; #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ -AnyFolder RotatoresBrevis = { +MuscleGroup RotatoresBrevis = { AnyMuscleViaPoint RotatoresBrevisT1C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.RotatoresBrevis.RotatoresBrevis_1; AnyRefFrame &Org = ....Segments.T1Seg.Right.RotatoresBrevisT1C7Node; @@ -6060,7 +5994,7 @@ AnyFolder RotatoresBrevis = { }; }; -AnyFolder RotatoresLongus = { +MuscleGroup RotatoresLongus = { AnyMuscleViaPoint RotatoresLongusT2C7 = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.RotatoresLongus.RotatoresLongus_1; AnyRefFrame &Org = ....Segments.T2Seg.Right.RotatoresLongusT2C7Node; @@ -6140,7 +6074,7 @@ AnyFolder RotatoresLongus = { }; }; -AnyFolder TransversusThoracis = { +MuscleGroup TransversusThoracis = { AnyMuscleViaPoint TrThR2S = { AnyMuscleModel &MusMdl = ....MuscleModels.Right.TransversusThoracis.TransvThModel_1; AnyRefNode &R2 = ....Segments.Right.R2Seg.TrThR2SNodeROrg; @@ -6240,36 +6174,36 @@ AnyFolder TransversusThoracis = { #endif #if BM_TRUNK_MUSCLES & BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - AnyFolder PelvicFloor = { - AnyMuscleViaPoint Puporectalis1= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.Puporectalis.Puporectalis_1; - AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis1NodeR; - AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis1NodeR; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint Puporectalis2= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.Puporectalis.Puporectalis_2; - AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis2NodeR; - AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis2NodeR; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - - AnyMuscleViaPoint Pupococcygeus1= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.Pupococcygeus.Pupococcygeus_1; - AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus1NodeR; - AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus1NodeR; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; - AnyMuscleViaPoint Pupococcygeus2= { - AnyMuscleModel &MusMdl = ....MuscleModels.Right.Pupococcygeus.Pupococcygeus_2; - AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus2NodeR; - AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus2NodeR; - viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; - viewForce.Visible ??= Off; - }; +MuscleGroup PelvicFloor = { + AnyMuscleViaPoint Puporectalis1= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.Puporectalis.Puporectalis_1; + AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis1NodeR; + AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis1NodeR; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; }; + AnyMuscleViaPoint Puporectalis2= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.Puporectalis.Puporectalis_2; + AnyRefNode &Org = ....Segments.PelvisSeg.Puporectalis2NodeR; + AnyRefNode &Ins = ....Segments.SacrumSeg.Puporectalis2NodeR; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + + AnyMuscleViaPoint Pupococcygeus1= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.Pupococcygeus.Pupococcygeus_1; + AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus1NodeR; + AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus1NodeR; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; + AnyMuscleViaPoint Pupococcygeus2= { + AnyMuscleModel &MusMdl = ....MuscleModels.Right.Pupococcygeus.Pupococcygeus_2; + AnyRefNode &Org = ....Segments.PelvisSeg.Pupococcygeus2NodeR; + AnyRefNode &Ins = ....Segments.SacrumSeg.Pupococcygeus2NodeR; + viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"}; + viewForce.Visible ??= Off; + }; +}; #endif -#endif +#endif \ No newline at end of file diff --git a/Body/AAUHuman/Trunk/SelectedOutput/TrunkMuscleActivityEnvelope.any b/Body/AAUHuman/Trunk/SelectedOutput/TrunkMuscleActivityEnvelope.any index 8bd3800f7..5ae50b9f2 100644 --- a/Body/AAUHuman/Trunk/SelectedOutput/TrunkMuscleActivityEnvelope.any +++ b/Body/AAUHuman/Trunk/SelectedOutput/TrunkMuscleActivityEnvelope.any @@ -1,17 +1,13 @@ SelectedOutput.Trunk.Muscles = { - + AnySearchFun MuscleList = { #if BM_TRUNK_MUSCLES == OFF - AnySearchFun MuscleList = { - Search = "....Trunk.JointMuscles.*.*.*.Object.Muscle.*.Activity"; - }; + Search = "....Trunk.JointMuscles.*.*.*.Object.Muscle.*.Activity"; #else - AnySearchFun MuscleList = { - Search = {"....Trunk.Muscles.*.*.*.Activity", "....Trunk.Muscles.*.*.Activity"}; - }; - + Search = {"....Trunk.Muscles.*.*.*.Activity", "....Trunk.Muscles.*.*.Activity"}; #endif + }; - AnyFloat MuscleActivities = MuscleList(); - AnyVar Envelope = max(MuscleActivities); -}; //End Muscles + AnyFloat MuscleActivities = MuscleList(); + AnyVar Envelope = max(MuscleActivities); +}; diff --git a/Body/AAUHuman/Trunk/TrunkData1.1/InterpolFunWithSPar.any b/Body/AAUHuman/Trunk/TrunkData1.1/InterpolFunWithSPar.any index 23c727441..0aefea18c 100644 --- a/Body/AAUHuman/Trunk/TrunkData1.1/InterpolFunWithSPar.any +++ b/Body/AAUHuman/Trunk/TrunkData1.1/InterpolFunWithSPar.any @@ -25,13 +25,13 @@ AnyFolder Parametric={ // AnyFloat MidPoint = mean(Data); }; - AnyFixedRefFrame GlobalRef ={ - AnyDrawPointCloud drw ={ - Visible = Off; - Points=..Fun.Data'; - Points3D=On; - RGB={0,1,0}; - PointStyle.Size=0.005; - }; - }; +// AnyFixedRefFrame GlobalRef ={ +// AnyDrawPointCloud drw ={ +// Visible = Off; +// Points=..Fun.Data'; +// Points3D=On; +// RGB={0,1,0}; +// PointStyle.Size=0.005; +// }; +// }; }; \ No newline at end of file diff --git a/Body/AAUHuman/Trunk/TrunkModel.root.any b/Body/AAUHuman/Trunk/TrunkModel.root.any index 43946dae1..6faf9fdbb 100644 --- a/Body/AAUHuman/Trunk/TrunkModel.root.any +++ b/Body/AAUHuman/Trunk/TrunkModel.root.any @@ -44,29 +44,29 @@ AnyFolder Segments = { /* Joint muscle section */ -AnyFolder JointMuscles = { - AnyFolder Cervical = {}; - AnyFolder Thorax = {}; - AnyFolder CostoSternal = {}; - AnyFolder Lumbar = {}; - - #if (BM_TRUNK_MUSCLES == _MUSCLES_NONE_) & (BM_TRUNK_THORACIC_MODEL != _THORACIC_MODEL_RIGID_) & (BM_TRUNK_THORACIC_MODEL != _THORACIC_MODEL_USERDEFINED_) - // TODO get jnt muscles working. - //Thorax = {#include "JointMusclesThoracic.any"} //Adds muscles to the joints in the thoracic spine - #endif - - - #if (BM_TRUNK_THORACIC_MODEL != _THORACIC_MODEL_FLEXIBLE_) - // TODO get working. - // for now costosternal joint muscles are always on to account for residual - //CostoSternal = {#include "JointMusclesRibCage.any"}; //Adds muscles to the joints for the ribs - #endif - - #if BM_TRUNK_MUSCLES == OFF +#if BM_TRUNK_MUSCLES == OFF + AnyFolder JointMuscles = { + AnyFolder Cervical = {}; + AnyFolder Thorax = {}; + AnyFolder CostoSternal = {}; + AnyFolder Lumbar = {}; + + #if (BM_TRUNK_MUSCLES == _MUSCLES_NONE_) & (BM_TRUNK_THORACIC_MODEL != _THORACIC_MODEL_RIGID_) & (BM_TRUNK_THORACIC_MODEL != _THORACIC_MODEL_USERDEFINED_) + // TODO get jnt muscles working. + //Thorax = {#include "JointMusclesThoracic.any"} //Adds muscles to the joints in the thoracic spine + #endif + + + #if (BM_TRUNK_THORACIC_MODEL != _THORACIC_MODEL_FLEXIBLE_) + // TODO get working. + // for now costosternal joint muscles are always on to account for residual + //CostoSternal = {#include "JointMusclesRibCage.any"}; //Adds muscles to the joints for the ribs + #endif + Lumbar = {#include "JointMusclesLumbar.any"}; //Adds muscles to the joints in the lumbar spine Cervical = {#include "JointMusclesCervical.any"}; //Adds muscles to the joints in the cervical spine - #endif -}; + }; +#endif AnyFolder Joints = { @@ -89,39 +89,39 @@ AnyFolder Joints = { /* Muscle definition section */ - -#if BM_TRUNK_MUSCLES -#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ - #include "MeshForWrapping.any" -#endif -#endif - AnyFolder Muscles = { - #include "MusclesMid.any" - AnyFolder Right = { - #include "MusclesRight.any" - }; - AnyFolder Left = { - #include "MusclesLeft.any" - }; + #include "MusclesMid.any" + AnyFolder Right = { + #include "MusclesRight.any" + }; + AnyFolder Left = { + #include "MusclesLeft.any" }; +}; - #if (BM_TRUNK_MUSCLES == _MUSCLES_NONE_) & (BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_) - #include "AbdomenPassiveReactions.any" - #endif - - #if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ +#if BM_TRUNK_CAVITY_MODEL == _CAVITY_MODEL_VOLUME_ #include "Abdominal/AbdominalPressureModel.any" + + #if BM_TRUNK_MUSCLES + Abdominal = {#include "MeshForWrapping.any"}; #endif - #if (BM_TRUNK_CAVITY_MODEL != _CAVITY_MODEL_VOLUME_) & BM_TRUNK_MUSCLES - #include "Buckle.any" + + #if BM_TRUNK_MUSCLES == _MUSCLES_NONE_ + Abdominal = {#include "AbdomenPassiveReactions.any"}; #endif +#endif + + +#if (BM_TRUNK_CAVITY_MODEL != _CAVITY_MODEL_VOLUME_) & BM_TRUNK_MUSCLES + #include "Buckle.any" +#endif #if BM_TRUNK_THORACIC_MODEL == _THORACIC_MODEL_FLEXIBLE_ #include "ThoracicCavity.any" #endif + #if BM_TRUNK_MUSCLES | ( BM_LEG_MODEL & ((BM_LEG_MUSCLES_LEFT & BM_LEG_LEFT) | (BM_LEG_MUSCLES_RIGHT & BM_LEG_RIGHT))) AnyFolder MuscleModels = { #if BM_TRUNK_MUSCLES == _MUSCLES_3E_HILL_ diff --git a/Body/AAUHuman/bm-parameters.toml b/Body/AAUHuman/bm-parameters.toml index 958e5c6fe..99c86dfb0 100644 --- a/Body/AAUHuman/bm-parameters.toml +++ b/Body/AAUHuman/bm-parameters.toml @@ -1359,3 +1359,9 @@ nicename = "Global Reference Frame" default = "OFF" valuetype = "integer" descr = "A compatability switch to include the trunk selected outputs joint reaction force from AMMR 2.4" + +[parameters.BM_COMPATIBILITY_MUSCLE_STRUCTURE] +default = "OFF" +valuetype = "integer" +descr = "A compatability switch to add the model tree structure of the muscles from AMMR 4. Use this option to easily load older models." + diff --git a/CHANGELOG.md b/CHANGELOG.md index aebf099ce..66b06c46a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,18 @@ ## AMMR 4.0 beta -:::{warning} -The default pelvis model used in all models have changed. The pelvis morphology now comes from trunk pelivs. The toplogy remain unchanged as the leg model pelvis is morphed to match the Trunk. See below how to control this behaviour. +:::{admonition} Default pelvis changed. +:class: warning +The default pelvis morphology now comes from trunk pelivs. The toplogy remain unchanged as the leg model pelvis is morphed to match the Trunk. See [below how to control this behaviour](changes-to-default-pelivs-morphology). +::: + +:::{admonition} Muscles locations restructured +:class: warning +Muscles elements are now grouped into folders representing the physiological muscles. +You can [enable backwards compatibility](changes-to-muscles-locations) by setting: +```AnyScriptDoc +#define BM_COMPATIBILITY_MUSCLE_STRUCTURE ON +``` ::: **Fixed:** @@ -59,6 +69,8 @@ The default pelvis model used in all models have changed. The pelvis morphology **Changed:** +(changes-to-default-pelivs-morphology)= + * The default pelvis morphology is now the one from the trunk model, as oposed to the pelvis belonging to whatever leg model has been selected. This was done to get a consistent trunk model and considering all the recent improvements to the trunk. This option can be controlled with: @@ -68,7 +80,19 @@ The default pelvis model used in all models have changed. The pelvis morphology ``` In practice, this means that the morphology of the leg pelvis is moprhed to match the Trunk pelvis. - Using `_MORPH_TRUNK_TO_LEG_` instead will revert to the old behaviour. + Using `_MORPH_TRUNK_TO_LEG_` instead will revert to the old behaviour. + +(changes-to-muscles-locations)= + +* The muscles of the arm and TLEM2 leg models have been reorganized in the body model. The + individual muscle elements are grouped into folders that represent the physiological + muscles (e.g., all Soleus Medial elements are collected in a Soleus Medial folder). This + change affects the path to the actual muscle elements throughout the model. The complete + AMMR has been updated to support this. To allow users a smooth transition to the new + structure, a `BM_COMPATIBILITY_MUSCLE_STRUCTURE` switch has been temporarily + introduced. This switch will create backward-compatible references to the muscles as + they are defined in AMMR 3.x. This BM switch will be deprecated in a future AMMR + version. (ammr-3.1.0-changelog)= ## AMMR 3.1.0 (2024-??-??) diff --git a/Docs/migration.md b/Docs/migration.md index 2d966f676..0cf5177d1 100644 --- a/Docs/migration.md +++ b/Docs/migration.md @@ -1,176 +1,18 @@ -# Update models to AMMR 3 +# Howto: Update old models Models created in earlier versions of AnyBody may need to be updated to work with -AnyBody 8 and the new model repository (AMMR 3.0). +newest version of AnyBody and the new model repository (AMMR). -This document outlines important changes which may break -older models or change results. +If you are upgrading a model from AMMR version 3. +Please see this migration guide: [Update models to AMMR 4](migration3to4.md). -:::{tip} +If you are upgrading a model from AMMR version 2, please also consult this migration guide: [Update models to AMMR 3](migration2to3.md). -See the last part of this document for a list of concrete errors and deprecation -warnings and how to fix them. -::: +```{toctree} +:includehidden: true +:maxdepth: 1 -## Model changes - -### Trunk and pelvis neutral posture - -The trunk model in AMMR 3.0 changes which posture is considered -neutral. This was done in preparation for a new [detailed thoracic -model](#thoracic-model) which will be available in [AMMR 4.0](https://github.com/anybody/ammr). Pelvic tilt for the model has been updated as well as the the neutral orientation of the thoracic segment. - -::: {warning} -These postural changes will affect older applications. Especially, in models -where trunk joint angles are driven directly and in models where a driver is applied directly on the pelvis segmental reference frame. -::: - -### MoCap models - -#### Pelvic markers - -Changes to the pelvic tilt mean that pelvic markers located relative to the -pelvis anatomical frame will appear to have moved slightly. This is most -noticeable for markers on the posterior part of the pelvis, such as the PSIS -markers. The Y component of the marker position may need to be adjusted to -achieve the same marker position and joint angle output. - -If markers are placed relative to bony landmarks (using the `PlaceMarkerAt=` -argument) this problem will often not occur. - -#### Foot markers - -Changes to the anatomical frame of the foot and talus segment may have resulted -in slight movement of markers. Adjust the Y component as necessary to maintain -the desired marker position and joint angle output. - - -## Load time errors - -:::{dropdown} `Scale_Leg_Pelvis : Unresolved object` - - -``` -ERROR(SCR.PRS9) : some-file.any(##) : 'Scale_Leg_Pelvis' : Unresolved object -``` - -The functions `Scale_Leg_Pelvis` and `Scale_Trunk_Pelvis` on the pelvis segment have been moved inside the `AnatomicalFrame` folder. -Update your code to `AnatomicalFrame.Scale_Leg_Pelvis`. - -::: - - -:::{dropdown} `MusPar : Unresolved object` - - -``` -ERROR(SCR.PRS9) : some-file.any(##) : 'MusPar' : Unresolved object -``` - -The `MusPar` folder have been renamed to `MuscleModels`. - -::: - - - -:::{dropdown} `PCSAfactor : Unresolved object` - -``` -ERROR(SCR.PRS9) : xxx.any(##) : 'PCSAfactor' : Unresolved object -``` - -This could be cause by the fact that the `MuscleParameters.Muscles.PCSAfactor` is now located at `MuscleModels.DefaultMusPar.PCSAfactor` - -::: - - -:::{dropdown} `StringMesh : Error in expression` - -``` -ERROR(SCR.EXP0) : Ligaments.any(18) : Defined at : Class_CreateLigament.any(47) : StringMesh : Error in expression. Please refer to the following error messages for details ... -ERROR(SCR.EXP1) : Ligaments.any(18) : Defined at : Class_CreateLigament.any(47) : Operator '=' : Illegal operation for given argument types : 'AnyInt[Undefined]' '=' 'AnyFloatVar' +migration3to4 +migration2to3 ``` - -The `StringMesh` variable have changed type from `AnyVar` to `AnyInt`. So if `StringMesh` is assigned from an other variable, make sure that it has the type `AnyInt`. - -::: - -## Deprecation warnings - -Below is a set of possible errors you may encounter if old models are used with AMMR 3.0. - - -:::{dropdown} `AnyViaPointMuscle : Deprecated class` - -``` -WARNING(SYS3) : ... : AnyViaPointMuscle : Deprecated class : Class 'AnyViaPointMuscle' was renamed to 'AnyMuscleViaPoint' -``` -Some class names for `AnyMuscle` have been deprecated. Just rename them. - -* `AnyViaPointMuscle` --> `AnyMuscleViaPoint` -* `AnyShortestPathMuscle` --> `AnyMuscleShortestPath` - -::: - - -:::{dropdown} `AnyShortestPathMuscle : Deprecated class` - -``` -WARNING(SYS3) : ... : AnyShortestPathMuscle : Deprecated class : Class 'AnyShortestPathMuscle' was renamed to 'AnyMuscleShortestPath' -``` -Some class names for `AnyMuscle` have been deprecated. Just rename them. - -* `AnyViaPointMuscle` --> `AnyMuscleViaPoint` -* `AnyShortestPathMuscle` --> `AnyMuscleShortestPath` - -::: - - - -:::{dropdown} `Deprecated use of AnySurf*Fit classes` - - -``` -ERROR(OBJ.MCH.SURF4) : Custom_Seg_Shank.any(114) : Surf : Deprecated use of AnySurf*Fit classes identified. Compatibility mode entered. -> 1) Use new concept by remove initializations of sRel and ARel (Recommended). -> 2) Read the long error description to see how to maintain backwards compatibility of your model. -``` - -The class `AnySurfCylinderFit` now inherits directly from `AnyRefNode` and creates a reference frame directly. -So they should no longer be nested inside existing reference frames to calculate the position and orientation. - -Imagine the following code: - -```AnyScriptDoc - -AnyRefNode Outer = -{ - sRel = SurfFit.sRel; - ARel = SurfFit.ARel; - - AnySurfCylinderFit SurfFit = - { - Points = ...; - Length = ...; - }; -}; - -``` -The `Outer` class gets the position and orientation from the inner `AnySurfCylinderFit` class. -This should be changed to: - -```AnyScriptDoc -AnySurfCylinderFit Outer = -{ - Points = ...; - Length = ...; -}; - -``` - -In fact, the original would no longer give the correct result given the new properties of `AnySurfCylinderFit` as reference frame. -So AnyBody detects the old usage pattern and reverts to a 'Compatibility' mode. - -::: - diff --git a/Docs/migration2to3.md b/Docs/migration2to3.md new file mode 100644 index 000000000..bf6d3c1f1 --- /dev/null +++ b/Docs/migration2to3.md @@ -0,0 +1,175 @@ +# Updating from AMMR 2 + +This document outlines important changes which may break +older model from AMMR version 2, when loading with newer versions of +AnyBody. This document outlines the changes from AMMR 2 to 3, but will also +apply when updating to newer versions of AnyBody. + +:::{tip} + +See the last part of this document for a list of concrete errors and deprecation +warnings and how to fix them. + +::: + +## Model changes + +### Trunk and pelvis neutral posture + +The trunk model in AMMR 3.0 changes which posture is considered +neutral. This was done in preparation for a new [detailed thoracic +model](#thoracic-model) which will be available in [AMMR 4.0](https://github.com/anybody/ammr). Pelvic tilt for the model has been updated as well as the the neutral orientation of the thoracic segment. + +::: {warning} +These postural changes will affect older applications. Especially, in models +where trunk joint angles are driven directly and in models where a driver is applied directly on the pelvis segmental reference frame. +::: + +### MoCap models + +#### Pelvic markers + +Changes to the pelvic tilt mean that pelvic markers located relative to the +pelvis anatomical frame will appear to have moved slightly. This is most +noticeable for markers on the posterior part of the pelvis, such as the PSIS +markers. The Y component of the marker position may need to be adjusted to +achieve the same marker position and joint angle output. + +If markers are placed relative to bony landmarks (using the `PlaceMarkerAt=` +argument) this problem will often not occur. + +#### Foot markers + +Changes to the anatomical frame of the foot and talus segment may have resulted +in slight movement of markers. Adjust the Y component as necessary to maintain +the desired marker position and joint angle output. + + +## Load time errors + +:::{dropdown} `Scale_Leg_Pelvis : Unresolved object` + + +``` +ERROR(SCR.PRS9) : some-file.any(##) : 'Scale_Leg_Pelvis' : Unresolved object +``` + +The functions `Scale_Leg_Pelvis` and `Scale_Trunk_Pelvis` on the pelvis segment have been moved inside the `AnatomicalFrame` folder. +Update your code to `AnatomicalFrame.Scale_Leg_Pelvis`. + +::: + + +:::{dropdown} `MusPar : Unresolved object` + + +``` +ERROR(SCR.PRS9) : some-file.any(##) : 'MusPar' : Unresolved object +``` + +The `MusPar` folder have been renamed to `MuscleModels`. + +::: + + + +:::{dropdown} `PCSAfactor : Unresolved object` + +``` +ERROR(SCR.PRS9) : xxx.any(##) : 'PCSAfactor' : Unresolved object +``` + +This could be cause by the fact that the `MuscleParameters.Muscles.PCSAfactor` is now located at `MuscleModels.DefaultMusPar.PCSAfactor` + +::: + + +:::{dropdown} `StringMesh : Error in expression` + +``` +ERROR(SCR.EXP0) : Ligaments.any(18) : Defined at : Class_CreateLigament.any(47) : StringMesh : Error in expression. Please refer to the following error messages for details ... +ERROR(SCR.EXP1) : Ligaments.any(18) : Defined at : Class_CreateLigament.any(47) : Operator '=' : Illegal operation for given argument types : 'AnyInt[Undefined]' '=' 'AnyFloatVar' +``` + +The `StringMesh` variable have changed type from `AnyVar` to `AnyInt`. So if `StringMesh` is assigned from an other variable, make sure that it has the type `AnyInt`. + +::: + +## Deprecation warnings + +Below is a set of possible errors you may encounter if old models are used with AMMR 3.0. + + +:::{dropdown} `AnyViaPointMuscle : Deprecated class` + +``` +WARNING(SYS3) : ... : AnyViaPointMuscle : Deprecated class : Class 'AnyViaPointMuscle' was renamed to 'AnyMuscleViaPoint' +``` +Some class names for `AnyMuscle` have been deprecated. Just rename them. + +* `AnyViaPointMuscle` --> `AnyMuscleViaPoint` +* `AnyShortestPathMuscle` --> `AnyMuscleShortestPath` + +::: + + +:::{dropdown} `AnyShortestPathMuscle : Deprecated class` + +``` +WARNING(SYS3) : ... : AnyShortestPathMuscle : Deprecated class : Class 'AnyShortestPathMuscle' was renamed to 'AnyMuscleShortestPath' +``` +Some class names for `AnyMuscle` have been deprecated. Just rename them. + +* `AnyViaPointMuscle` --> `AnyMuscleViaPoint` +* `AnyShortestPathMuscle` --> `AnyMuscleShortestPath` + +::: + + + +:::{dropdown} `Deprecated use of AnySurf*Fit classes` + + +``` +ERROR(OBJ.MCH.SURF4) : Custom_Seg_Shank.any(114) : Surf : Deprecated use of AnySurf*Fit classes identified. Compatibility mode entered. +> 1) Use new concept by remove initializations of sRel and ARel (Recommended). +> 2) Read the long error description to see how to maintain backwards compatibility of your model. +``` + +The class `AnySurfCylinderFit` now inherits directly from `AnyRefNode` and creates a reference frame directly. +So they should no longer be nested inside existing reference frames to calculate the position and orientation. + +Imagine the following code: + +```AnyScriptDoc + +AnyRefNode Outer = +{ + sRel = SurfFit.sRel; + ARel = SurfFit.ARel; + + AnySurfCylinderFit SurfFit = + { + Points = ...; + Length = ...; + }; +}; + +``` +The `Outer` class gets the position and orientation from the inner `AnySurfCylinderFit` class. +This should be changed to: + +```AnyScriptDoc +AnySurfCylinderFit Outer = +{ + Points = ...; + Length = ...; +}; + +``` + +In fact, the original would no longer give the correct result given the new properties of `AnySurfCylinderFit` as reference frame. +So AnyBody detects the old usage pattern and reverts to a 'Compatibility' mode. + +::: + diff --git a/Docs/migration3to4.md b/Docs/migration3to4.md new file mode 100644 index 000000000..43c7cf2af --- /dev/null +++ b/Docs/migration3to4.md @@ -0,0 +1,61 @@ +# Updating from AMMR 3 + +Models created in earlier versions of AnyBody may need to be updated to work with +AnyBody 8.1 and the new model repository (AMMR 4.0). + +This document outlines important changes which may break +older models or change results. + + + +## Model changes + +### Default pelvis + +The default pelvis morphology is now the one from the trunk model, as oposed to +the pelvis belonging to whatever leg model has been selected. This was done to +get a consistent trunk model and considering all the recent improvements to the +trunk. This option can be controlled with: + +```AnyScriptDoc +#define BM_LEG_TRUNK_INTERFACE _MORPH_LEG_TO_TRUNK_ +``` + +In practice, this means that the morphology of the leg pelvis is moprhed to +match the Trunk pelvis. Using `_MORPH_TRUNK_TO_LEG_` instead will revert to the +old behaviour. + +### Trunk changes + +The trunk model in AMMR 4.0 is completly new, and many parts of the model structure has changed. + +::: {warning} +These postural changes will affect older applications. Especially, in models +where trunk joint angles are driven directly and in models where a driver is applied directly on the pelvis segmental reference frame. +::: + +### Muscle groups in the model tree + +Muscles elements are now grouped into folders representing the physiological muscles. + +References to their old locations may there break. You can enable backwards compatibility by setting: + +```AnyScriptDoc +#define BM_COMPATIBILITY_MUSCLE_STRUCTURE ON +``` + +This add the old strucuture in addition to the new one, and should make it easier to update the model. + + +### MoCap models + + +## Load time errors + + +## Deprecation warnings diff --git a/Tests/BM combinations/test_bm_compatibility_switches.any b/Tests/BM combinations/test_bm_compatibility_switches.any index 94ee4c765..85a7b170b 100644 --- a/Tests/BM combinations/test_bm_compatibility_switches.any +++ b/Tests/BM combinations/test_bm_compatibility_switches.any @@ -1,27 +1,46 @@ //define = [ -// {}, +// {'BM_COMPATIBILITY_MUSCLE_STRUCTURE':'ON'}, // {'BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF':'ON'}, //] #include "libdef.any" #ifndef TEST_NAME -//#define BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF ON +// #define BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF ON + #define BM_COMPATIBILITY_MUSCLE_STRUCTURE ON #endif - -Main = -{ - // #path HTML_DOC "/bm_config/index.html" +Main = { #include "\HumanModel.any" AnyOperationDummy RunApplication = {}; AnyObjectPtr trunk_24_compatibility = ObjSearch("Main.HumanModel.BodyModel.SelectedOutput.Trunk.JointReactionForce.C2C1FlexionExtensionMoment"); + #if BM_COMPATIBILITY_24_TRUNK_SELECTED_OUTPUTS_JRF - AnyInt ShouldNotExist = assert(eqfun(NumElemOf(trunk_24_compatibility),1)); + AnyInt ShouldNotExist = assert(eqfun(NumElemOf(trunk_24_compatibility),1)); #else - AnyInt ShouldExist = assert(eqfun(NumElemOf(trunk_24_compatibility),0)); + AnyInt ShouldExist = assert(eqfun(NumElemOf(trunk_24_compatibility),0)); #endif + + + // the old structure is replaced with AnyRefObjects to the new muscle locations (which is inside the same folder) + // so in order to check the locations without accidentally picking up the 'real muscle objects we do: + // -search all members in the muscle folder + // -select all references with a filter + // -resolve the refernces into real objects + // -filter only muscles objects + // This allows us to check if any references (that points to muscles) exist in the folder + + // NB. could have been cool if ObjSearch could resolve references when applying class filter as argument... + AnyObjectPtr arm_muscles_30_location = ObjFilterByClass(ObjRefResolve(ObjFilterByClass(ObjSearch("Main.HumanModel.BodyModel.Right.ShoulderArm.Mus.*"), "AnyRefObject")), "AnyMuscle"); + AnyInt OldStructure = bool(NumElemOf(arm_muscles_30_location)); + + #if BM_COMPATIBILITY_MUSCLE_STRUCTURE == ON + AnyInt testOldStructureFound = assert(OldStructure); + #else + AnyInt testOldStructureNotFound = assert(not(OldStructure)); + #endif + }; \ No newline at end of file