View source: R/setup_muscles.r
distribute_MUs_reg | R Documentation |
Deterministically create a regular grid of MU positions across the muscle cross section for a muscle with a rectangular base shape. Assign the same area
distribute_MUs_reg(MUs, num_MUs_x, num_MUs_y, overlap = 0)
MUs |
A list of MU objects. Must contain |
num_MUs_x |
The number of MUs to be placed in one row in x direction. |
num_MUs_y |
The number of MUs to be placed in one row in y direction. |
overlap |
The amount of overlap to occur between neighboring MU regions.
Currently, only |
The MU areas are obtained by simple division of the unit square into a (num_MUs_x x num_MUs_y) grid. No randomness is involved in the MU distribution. All MUs are of the same size. Currently, only exact division of the muscle area into MU areas is implemeted, i.e., no overlapping MUs and no muscle sections without MUs.
A list of MU objects, containing the elements of MUs
but with
additional properties:
"$pos"The relative 2-D position (i.e. from [0,1] x [0,1]) of the MUs center on the muscle cross section.
"$length_x"The relative size of the MU's surrounding rectangle box in x direction on the muscle cross section. Value between 0 and 1. Used to transform coordinates relative to the MU area to coordinates relative to the muscle area.
"$length_y"The relative size of the MU's surrounding rectangle box in y direction on the muscle cross section. Value between 0 and 1. Used to transform coordinates relative to the MU area to coordinates relative to the muscle area.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.