    

 ## On this page

  

 

 # composite:map\_to\_reference\_surface\_operator

 Last update: 31.07.2026 

**Version: 0.0.0**

## Description

Maps values from a min and max field container, according to a mapping defined in a Property field. The property field contains a list of ids for every entity. The operator then computes the minimum/maximum of all the linked entities in the list. The maximum is computed according to the 'value' label. An output container is generated that contains the value, mode, global\_layer\_in\_stack, local\_layer\_in\_element and solid\_element\_id. Example: - Mapping field {1: {4,5}, 2: {8}} - Max Container with the following fields: -- value {4: 10, 5:20, 8: 30} -- mode {4: 1, 5: 2, 8: 3} -- layer\_index {4: 3, 5: 5, 8: 7} -- layers per element field: {4: 3, 5: 7, 8: 2}Will result in an Max Container with the following fields: -- value {1: 20, 2: 30} -- mode {1: 2, 2: 3} -- global\_layer\_in\_stack {1: 8, 2: 17} -- local\_layer\_in\_element {1: 5, 2: 7} -- solid\_element\_id {1: 5, 2: 8} And similarly for the min container.

## Inputs

InputNameExpected type(s)Description**Pin 0**   
Requiredmapping\_field[`property_field`](../../core-concepts/dpf-types.md#property-field)Mapping property field. Contains a list of ids for every entity.**Pin 1**   
Requiredmin\_container[`fields_container`](../../core-concepts/dpf-types.md#fields-container)Min fields container. Container that contains value, mode and layer index field with the minimum values.**Pin 2**   
Requiredmax\_container[`fields_container`](../../core-concepts/dpf-types.md#fields-container)Max fields container. Container that contains value, mode and layer index field with the maximum values.**Pin 3**   
Requiredlayers\_per\_element[`property_field`](../../core-concepts/dpf-types.md#property-field)Property field that contains the number of layers for each element.**Pin 7**   
Requiredmesh[`abstract_meshed_region`](../../core-concepts/dpf-types.md#meshed-region)Meshed region of reference surface. Used as the support for the output fields.## Outputs

OutputNameExpected type(s)Description**Pin 0**min\_container[`fields_container`](../../core-concepts/dpf-types.md#fields-container)Min Container. Contains five fields with the values, modes, global\_layer\_in\_stack, local\_layer\_in\_element and solid\_element\_id**Pin 1**max\_container[`fields_container`](../../core-concepts/dpf-types.md#fields-container)Max Container. Contains five fields with the values, modes, global\_layer\_in\_stack, local\_layer\_in\_element and solid\_element\_id## Configurations

NameExpected type(s)Default valueDescription**mutex**[`bool`](../../core-concepts/dpf-types.md#standard-types)falseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.## Scripting

**Category**: composite

**Plugin**: composite

**Scripting name**: map\_to\_reference\_surface\_operator

**Full name**: composite.map\_to\_reference\_surface\_operator

**Internal name**: composite::map\_to\_reference\_surface\_operator

**License**: None

## Changelog

- Version 0.0.0: Initial release.