math:centroid
Version: 0.0.0
Description
Computes centroid of field1 and field2, using fieldOut = field1*(1.-fact)+field2*(fact). Only works by index.
Inputs
| Input | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 Required | fieldA | field, fields_container | field or fields container with only one field is expected |
| Pin 1 Required | fieldB | field, fields_container | field or fields container with only one field is expected |
| Pin 2 Required | factor | double | Scalar |
Outputs
| Output | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 | field | field |
Configurations
| Name | Expected type(s) | Default value | Description |
|---|---|---|---|
| mutex | bool | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |
| num_threads | int32 | 0 | Number of threads to use to run in parallel |
| run_in_parallel | bool | true | Loops are allowed to run in parallel if the value of this config is set to true. |
| work_by_index | bool | true | If this option is set to true, loops and comparisons by entity will be done by index instead of ids. |
Scripting
Category: math
Plugin: core
Scripting name: None
Full name: None
Internal name: centroid
License: None
Changelog
- Version 0.0.0: Initial release.