Skip to content

Commit

Permalink
Add intial wrapping guess for calf muscles
Browse files Browse the repository at this point in the history
This fixes a warning from Plantaris1 and the muscle wrapping solver.
  • Loading branch information
melund committed Apr 27, 2023
1 parent f1b093a commit 771fe9d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Body/AAUHuman/LegTLEM/Mus.any
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ AnyMuscleShortestPath SoleusMedialis1 = {
AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis1Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
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};
};
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand All @@ -119,6 +126,7 @@ AnyMuscleShortestPath SoleusMedialis2 = {
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand All @@ -131,6 +139,7 @@ AnyMuscleShortestPath SoleusMedialis3 = {
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand All @@ -143,6 +152,7 @@ AnyMuscleShortestPath SoleusLateralis1 = {
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand All @@ -155,6 +165,7 @@ AnyMuscleShortestPath SoleusLateralis2 = {
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand All @@ -167,6 +178,7 @@ AnyMuscleShortestPath SoleusLateralis3 = {
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand All @@ -185,6 +197,7 @@ AnyMuscleShortestPath GastrocnemiusLateralis1 = {
AnyRefNode &Via10 =..Seg.Foot.GastrocnemiusLateralis1SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.GastrocnemiusLateralis1Node;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = {None,None,None,&.SoleusMedialis1.SPLine.InitWrapPos, None};
AnyDrawMuscle DrwMus = {
#include "../DrawSettings/MusDrawSettings.any"
};
Expand All @@ -204,6 +217,7 @@ AnyMuscleShortestPath GastrocnemiusMedialis1 = {
AnyRefNode &Via8 =..Seg.Foot.GastrocnemiusMedialis1SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.GastrocnemiusMedialis1Node;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = {None,None,None, None, None, &.SoleusMedialis1.SPLine.InitWrapPos, None};
AnyDrawMuscle DrwMus = {
#include "../DrawSettings/MusDrawSettings.any"
};
Expand Down Expand Up @@ -3019,9 +3033,10 @@ AnyMuscleShortestPath Plantaris1 = {
AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
AnyRefNode &Via1 =..Seg.Foot.Plantaris1SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.Plantaris1Node;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = {&.SoleusMedialis1.SPLine.InitWrapPos, None};
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"
};
};
Expand Down

0 comments on commit 771fe9d

Please sign in to comment.