|
a |
|
b/Docs/bm_config/index.md |
|
|
1 |
(bm-config)= |
|
|
2 |
|
|
|
3 |
# Configuring the Body Model |
|
|
4 |
|
|
|
5 |
The body model can be configured in multiple ways. This include what limb |
|
|
6 |
segments are include, the type of muscles, scaling etc. |
|
|
7 |
|
|
|
8 |
All these choises are controlled through a number of switches called Body Model |
|
|
9 |
(BM) parameters. BM parameters are always prefixed with `BM_` and written in |
|
|
10 |
uppercase. |
|
|
11 |
|
|
|
12 |
## Simple example |
|
|
13 |
|
|
|
14 |
The example below configures a model with no arms and enables the 3-element Hill |
|
|
15 |
muscles model on the legs. |
|
|
16 |
|
|
|
17 |
:::{note} |
|
|
18 |
:class: margin |
|
|
19 |
Some parameters have simple {ammr:bm_constant}`ON`/{ammr:bm_constant}`OFF` |
|
|
20 |
options, while others have more options. |
|
|
21 |
::: |
|
|
22 |
|
|
|
23 |
```{code-block} AnyScriptDoc |
|
|
24 |
:emphasize-lines: 1-3 |
|
|
25 |
|
|
|
26 |
#define BM_ARM_LEFT OFF |
|
|
27 |
#define BM_ARM_RIGHT OFF |
|
|
28 |
#define BM_LEG_MUSCLES_BOTH _MUSCLES_3E_HILL_ |
|
|
29 |
|
|
|
30 |
// Now include the HumanModel |
|
|
31 |
#include "<ANYBODY_PATH_BODY>\HumanModel.any" |
|
|
32 |
``` |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
The next section shows an overview of what BM statements are available for the different body parts. |
|
|
37 |
|
|
|
38 |
## BM parameters |
|
|
39 |
|
|
|
40 |
:::{tip} |
|
|
41 |
:class: margin |
|
|
42 |
Most models can also be configured using the |
|
|
43 |
{doc}`BM plugin </bm_config/bm_plugin>`. |
|
|
44 |
::: |
|
|
45 |
|
|
|
46 |
There are body model parameters for configuring each body part, controlling scaling, controlling the default |
|
|
47 |
mannequin drivers (click to see tutorial on {ref}`modelling from scratch <MannequinDriver>`), as well as other global options for the model. |
|
|
48 |
|
|
|
49 |
See the following links for details on BM parameters related to different body parts and modelling options: |
|
|
50 |
|
|
|
51 |
```{toctree} |
|
|
52 |
:maxdepth: 1 |
|
|
53 |
|
|
|
54 |
leg |
|
|
55 |
arm |
|
|
56 |
trunk |
|
|
57 |
mannequin |
|
|
58 |
scaling |
|
|
59 |
joint_type |
|
|
60 |
other |
|
|
61 |
bm_plugin |
|
|
62 |
``` |
|
|
63 |
|
|
|
64 |
## All Parameters and constants |
|
|
65 |
|
|
|
66 |
The full list of all the parameter and their options is available in the links below: |
|
|
67 |
|
|
|
68 |
```{toctree} |
|
|
69 |
:maxdepth: 1 |
|
|
70 |
|
|
|
71 |
bm_statements |
|
|
72 |
bm_constants |
|
|
73 |
``` |