Specifications

37
that it goes from its origin to insertion via a number of predefined points. The via-points are the
AnyRefNodes defined in the second and third property lines. If you have a muscle that goes in a straight line
from origin to insertion, then you can just define two points like we have done here. If you have a more
complicated muscle path, then all you need to do is to add the points in between the origin and insertion.
The physiological behavior of the muscle is defined by the first property
AnyMuscleModel &MusMdl = ..Muscles.MusMdl;
You can see that it points right back to the muscle model we started out by creating. Notice the two leading
dots. Finally, the line
AnyDrawMuscle DrwMus = {};
ensures that the muscle is visible in the graphics window. Lets have a look at it. If you have the Model View
window (you know, the one with the rendering of the model in it) open, then just hit F7. If you don't have
the Model View window open, choose Window -> Model View (new) from the pull down menus at the top of
the main frame. You should see a thick, red line connecting the muscle's origin and insertion points. There
are other ways to visualize muscles, but we shall save that for the dedicated the muscle tutorial
.
Notice that the muscle's position on the body might be a little strange because we have not yet positioned
the segments relative to each other by a kinematic analysis.
All the other muscles are defined in the same way:
//---------------------------------
AnyViaPointMuscle Brachialis = {
AnyMuscleModel &MusMdl = ..Muscles.MusMdl;
AnyRefNode &Org = ..Segs.UpperArm.Brachialis;
AnyRefNode &Ins = ..Segs.ForeArm.Brachialis;
AnyDrawMuscle DrwMus = {};
};
//---------------------------------
AnyViaPointMuscle DeltodeusA = {
AnyMuscleModel &MusMdl = ..Muscles.MusMdl;
AnyRefNode &Org = ..GlobalRef.DeltodeusA;
AnyRefNode &Ins = ..Segs.UpperArm.DeltodeusA;
AnyDrawMuscle DrwMus = {};
};
//---------------------------------
AnyViaPointMuscle DeltodeusB = {
AnyMuscleModel &MusMdl = ..Muscles.MusMdl;
AnyRefNode &Org = ..GlobalRef.DeltodeusB;
AnyRefNode &Ins = ..Segs.UpperArm.DeltodeusB;
AnyDrawMuscle DrwMus = {};
};
//---------------------------------
AnyViaPointMuscle Brachioradialis = {
AnyMuscleModel &MusMdl = ..Muscles.MusMdl;
AnyRefNode &Org = ..Segs.UpperArm.Brachioradialis;
AnyRefNode &Ins = ..Segs.ForeArm.Brachioradialis;
AnyDrawMuscle DrwMus = {};
};
//---------------------------------
AnyViaPointMuscle BicepsShort = {
AnyMuscleModel &MusMdl = ..Muscles.MusMdl;
AnyRefNode &Org = ..Segs.UpperArm.BicepsShort;
AnyRefNode &Ins = ..Segs.ForeArm.Biceps;
AnyDrawMuscle DrwMus = {};