distribute_MUs_in_muscle: Place MUs somewhere in the muscle area.

View source: R/setup_muscles.r

distribute_MUs_in_muscleR Documentation

Place MUs somewhere in the muscle area.

Description

Distribute MUs throughout the base muscle's assigned area, taking care of assumed fiber densities, muscle boundaries, etc. This is a purely technical function; the algorithm used for MU placement must be provided externally via 'muscle$MU_distributor'.

Usage

distribute_MUs_in_muscle(muscle, MUs)

Arguments

muscle

A single muscle object, must have element 'MU_distributor'.

MUs

A list of MU objects.

Details

Returned objects have one very important property: $transform, which transforms coordinates relative to the MU base region (a (0,1)x(0,1) square) into coordinates relative to the muscle's base region (also a [0,1]x[0,1] square). It is a function that takes 2D vectors with values between 0 and 1 in both dimensions. The same is true for its return values.

Value

A list of modified MU objects with assigned geometrical properties.


ime-luebeck/semgsim documentation built on April 14, 2022, 11:02 p.m.