> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# mapping:prepare mechanical native mapping with point cloud

**Version: 0.0.0**

## Description

Prepare mapping of source data from source mesh to target mesh by operating the source\_mesh/target\_mesh weights computation. This operator will use a point cloud based algorithm. This operator needs to be used with the apply mechanical native mapping associated one.

## Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation.
Some inputs are required, while others are optional and provide additional configuration.
Each parameter is detailed in the sections that follow the table.

| Pin number | Name | Status | Expected type(s) |
| - | - | - | - |
| **0** | [source\_mesh](#input_0) | Required | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field) |
| **1** | [target\_mesh](#input_1) | Required | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field) |
| **3** | [target\_mesh\_scoping](#input_3) | | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping) |
| **4** | [unit](#input_4) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **5** | [location](#input_5) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **6** | [dimensionality](#input_6) | Required | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **7** | [e\_shell\_layers](#input_7) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **8** | [html\_report\_path](#input_8) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **10** | [weighting\_type](#input_10) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **11** | [outside\_option](#input_11) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **12** | [num\_outside\_points](#input_12) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **13** | [max\_outside\_distance](#input_13) | | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **14** | [search\_limit](#input_14) | | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **15** | [bounding\_box\_sizing](#input_15) | | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **16** | [geometry\_type](#input_16) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **17** | [shell\_thickness\_factor](#input_17) | | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **100** | [is\_element\_centroidal\_data\_mapping](#input_100) | | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **101** | [projection\_options](#input_101) | | [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree) |
| **102** | [dynamic\_coordinate\_system](#input_102) | | [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree) |
| **103** | [source\_dimension](#input_103) | | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **104** | [wb\_external\_data\_info](#input_104) | | [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree) |

### source\_mesh (Pin 0)

* **Required:** Yes
* **Expected type(s):** [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field)

Source mesh. Can be a meshed region or a node coordinates field.

### target\_mesh (Pin 1)

* **Required:** Yes
* **Expected type(s):** [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region), [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field)

Target mesh. Can be a meshed region or a node coordinates field.

### target\_mesh\_scoping (Pin 3)

* **Required:** No
* **Expected type(s):** [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping)

Target mesh scoping. If used, ensure to give only the elements where results are expected into source mesh input to have optimized computation.

### unit (Pin 4)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Unit of the result to map

### location (Pin 5)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Location of the result to map. If elemental, this input needs to be specified.

### dimensionality (Pin 6)

* **Required:** Yes
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Dimensionality of the result to map (for example it will be 3 for a displacement along (x, y, z) axes).

### e\_shell\_layers (Pin 7)

* **Required:** No
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

EShellLayers enum value if field has shell layers

### html\_report\_path (Pin 8)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Path for html report (for example 'my\_disk/my\_report.html'). If set, an html report will be generated and exported to the html file. If not set, nothing will be generated.

### weighting\_type (Pin 10)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default 'triangulation'. Can also be 'weighted\_average'.

### outside\_option (Pin 11)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is 'weighted\_average'. Can also be 'ignore', 'projection', 'nearest\_node'.

### num\_outside\_points (Pin 12)

* **Required:** No
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is 3

### max\_outside\_distance (Pin 13)

* **Required:** No
* **Expected type(s):** [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is 0.0

### search\_limit (Pin 14)

* **Required:** No
* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is 20

### bounding\_box\_sizing (Pin 15)

* **Required:** No
* **Expected type(s):** [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Pinball area. Default is 0.0.

### geometry\_type (Pin 16)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is 'volume'. Can also be 'surface'.

### shell\_thickness\_factor (Pin 17)

* **Required:** No
* **Expected type(s):** [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is '0.0'

### is\_element\_centroidal\_data\_mapping (Pin 100)

* **Required:** No
* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is 'false'. Set to 'true' if the source elemental data is representing as element centroidal nodal data

### projection\_options (Pin 101)

* **Required:** No
* **Expected type(s):** [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree)

Default is empty. This data tree contains 2D projection options for mapping 2D to 3D

### dynamic\_coordinate\_system (Pin 102)

* **Required:** No
* **Expected type(s):** [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree)

Default is empty. This data tree contains the dynamic coordinate system for performing rigid body transformation on the source mesh

### source\_dimension (Pin 103)

* **Required:** No
* **Expected type(s):** [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Default is empty string. The string contains either "2D" or "3D" which specifies the source dimension

### wb\_external\_data\_info (Pin 104)

* **Required:** No
* **Expected type(s):** [`data_tree`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#data-tree)

Default is empty. This data tree contains the Rigid & Analytical transformations specified in the workbench external data system

## Outputs

This table lists the output pins for this operator.
Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing.
Each output is detailed in the sections that follow the table.

| Pin number | Name | Expected type(s) |
| - | - | - |
| **0** | [source\_mesh](#output_0) | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region) |
| **1** | [source\_mesh\_id](#output_1) | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **2** | [target\_mesh](#output_2) | [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region) |
| **3** | [target\_mesh\_id](#output_3) | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |
| **4** | [mapping\_manager\_data](#output_4) | |
| **6** | [target\_scoping](#output_6) | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping) |
| **7** | [unmapped\_nodes\_scoping](#output_7) | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping) |
| **8** | [outside\_nodes\_scoping](#output_8) | [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping) |
| **9** | [mapping\_error\_codes](#output_9) | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) |

### source\_mesh (Pin 0)

* **Expected type(s):** [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region)

Source mesh

### source\_mesh\_id (Pin 1)

* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Source mesh id

### target\_mesh (Pin 2)

* **Expected type(s):** [`abstract_meshed_region`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#meshed-region)

Target mesh

### target\_mesh\_id (Pin 3)

* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

Target mesh id

### mapping\_manager\_data (Pin 4)

* **Expected type(s):**

### target\_scoping (Pin 6)

* **Expected type(s):** [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping)

Target scoping

### unmapped\_nodes\_scoping (Pin 7)

* **Expected type(s):** [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping)

Unmapped nodes scoping

### outside\_nodes\_scoping (Pin 8)

* **Expected type(s):** [`scoping`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#scoping)

Outside nodes scoping

### mapping\_error\_codes (Pin 9)

* **Expected type(s):** [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)

contains the error codes from the mapping manager kernel

## Configurations

This operator supports [configuration options](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/operator-configurations.md) that modify its behavior.

### [mutex](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/operator-configurations.md#mutex)

* **Expected type(s):** [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types)
* **Default value:** false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

## Scripting

This operator can be accessed through scripting interfaces using these identifiers.

**Category**: mapping

**Plugin**: N/A

**Scripting name**: prepare\_mechanical\_native\_mapping\_point\_cloud

**Full name**: mapping.prepare\_mechanical\_native\_mapping\_point\_cloud

**Internal name**: mechanical\_native\_mapping::prepare::point\_cloud

**License**: any\_dpf\_supported\_increments

## Examples

These examples demonstrate how to use this operator in different programming environments.
Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

<details>
  <summary>C++</summary>

  ```cpp theme={null}
  #include "dpf_api.h"

  ansys::dpf::Operator op("mechanical_native_mapping::prepare::point_cloud"); // operator instantiation
  op.connect(0, my_source_mesh);
  op.connect(1, my_target_mesh);
  op.connect(3, my_target_mesh_scoping);
  op.connect(4, my_unit);
  op.connect(5, my_location);
  op.connect(6, my_dimensionality);
  op.connect(7, my_e_shell_layers);
  op.connect(8, my_html_report_path);
  op.connect(10, my_weighting_type);
  op.connect(11, my_outside_option);
  op.connect(12, my_num_outside_points);
  op.connect(13, my_max_outside_distance);
  op.connect(14, my_search_limit);
  op.connect(15, my_bounding_box_sizing);
  op.connect(16, my_geometry_type);
  op.connect(17, my_shell_thickness_factor);
  op.connect(100, my_is_element_centroidal_data_mapping);
  op.connect(101, my_projection_options);
  op.connect(102, my_dynamic_coordinate_system);
  op.connect(103, my_source_dimension);
  op.connect(104, my_wb_external_data_info);
  ansys::dpf::MeshedRegion my_source_mesh = op.getOutput<ansys::dpf::MeshedRegion>(0);
  int my_source_mesh_id = op.getOutput<int>(1);
  ansys::dpf::MeshedRegion my_target_mesh = op.getOutput<ansys::dpf::MeshedRegion>(2);
  int my_target_mesh_id = op.getOutput<int>(3);
   my_mapping_manager_data = op.getOutput<>(4);
  ansys::dpf::Scoping my_target_scoping = op.getOutput<ansys::dpf::Scoping>(6);
  ansys::dpf::Scoping my_unmapped_nodes_scoping = op.getOutput<ansys::dpf::Scoping>(7);
  ansys::dpf::Scoping my_outside_nodes_scoping = op.getOutput<ansys::dpf::Scoping>(8);
  int my_mapping_error_codes = op.getOutput<int>(9);
  ```
</details>

<details>
  <summary>CPython</summary>

  ```python theme={null}
  import ansys.dpf.core as dpf

  op = dpf.operators.mapping.prepare_mechanical_native_mapping_point_cloud() # operator instantiation
  op.inputs.source_mesh.connect(my_source_mesh)
  op.inputs.target_mesh.connect(my_target_mesh)
  op.inputs.target_mesh_scoping.connect(my_target_mesh_scoping)
  op.inputs.unit.connect(my_unit)
  op.inputs.location.connect(my_location)
  op.inputs.dimensionality.connect(my_dimensionality)
  op.inputs.e_shell_layers.connect(my_e_shell_layers)
  op.inputs.html_report_path.connect(my_html_report_path)
  op.inputs.weighting_type.connect(my_weighting_type)
  op.inputs.outside_option.connect(my_outside_option)
  op.inputs.num_outside_points.connect(my_num_outside_points)
  op.inputs.max_outside_distance.connect(my_max_outside_distance)
  op.inputs.search_limit.connect(my_search_limit)
  op.inputs.bounding_box_sizing.connect(my_bounding_box_sizing)
  op.inputs.geometry_type.connect(my_geometry_type)
  op.inputs.shell_thickness_factor.connect(my_shell_thickness_factor)
  op.inputs.is_element_centroidal_data_mapping.connect(my_is_element_centroidal_data_mapping)
  op.inputs.projection_options.connect(my_projection_options)
  op.inputs.dynamic_coordinate_system.connect(my_dynamic_coordinate_system)
  op.inputs.source_dimension.connect(my_source_dimension)
  op.inputs.wb_external_data_info.connect(my_wb_external_data_info)
  my_source_mesh = op.outputs.source_mesh()
  my_source_mesh_id = op.outputs.source_mesh_id()
  my_target_mesh = op.outputs.target_mesh()
  my_target_mesh_id = op.outputs.target_mesh_id()
  my_mapping_manager_data = op.outputs.mapping_manager_data()
  my_target_scoping = op.outputs.target_scoping()
  my_unmapped_nodes_scoping = op.outputs.unmapped_nodes_scoping()
  my_outside_nodes_scoping = op.outputs.outside_nodes_scoping()
  my_mapping_error_codes = op.outputs.mapping_error_codes()
  ```
</details>

<details>
  <summary>IPython</summary>

  ```python theme={null}
  import mech_dpf
  import Ans.DataProcessing as dpf

  op = dpf.operators.mapping.prepare_mechanical_native_mapping_point_cloud() # operator instantiation
  op.inputs.source_mesh.Connect(my_source_mesh)
  op.inputs.target_mesh.Connect(my_target_mesh)
  op.inputs.target_mesh_scoping.Connect(my_target_mesh_scoping)
  op.inputs.unit.Connect(my_unit)
  op.inputs.location.Connect(my_location)
  op.inputs.dimensionality.Connect(my_dimensionality)
  op.inputs.e_shell_layers.Connect(my_e_shell_layers)
  op.inputs.html_report_path.Connect(my_html_report_path)
  op.inputs.weighting_type.Connect(my_weighting_type)
  op.inputs.outside_option.Connect(my_outside_option)
  op.inputs.num_outside_points.Connect(my_num_outside_points)
  op.inputs.max_outside_distance.Connect(my_max_outside_distance)
  op.inputs.search_limit.Connect(my_search_limit)
  op.inputs.bounding_box_sizing.Connect(my_bounding_box_sizing)
  op.inputs.geometry_type.Connect(my_geometry_type)
  op.inputs.shell_thickness_factor.Connect(my_shell_thickness_factor)
  op.inputs.is_element_centroidal_data_mapping.Connect(my_is_element_centroidal_data_mapping)
  op.inputs.projection_options.Connect(my_projection_options)
  op.inputs.dynamic_coordinate_system.Connect(my_dynamic_coordinate_system)
  op.inputs.source_dimension.Connect(my_source_dimension)
  op.inputs.wb_external_data_info.Connect(my_wb_external_data_info)
  my_source_mesh = op.outputs.source_mesh.GetData()
  my_source_mesh_id = op.outputs.source_mesh_id.GetData()
  my_target_mesh = op.outputs.target_mesh.GetData()
  my_target_mesh_id = op.outputs.target_mesh_id.GetData()
  my_mapping_manager_data = op.outputs.mapping_manager_data.GetData()
  my_target_scoping = op.outputs.target_scoping.GetData()
  my_unmapped_nodes_scoping = op.outputs.unmapped_nodes_scoping.GetData()
  my_outside_nodes_scoping = op.outputs.outside_nodes_scoping.GetData()
  my_mapping_error_codes = op.outputs.mapping_error_codes.GetData()
  ```
</details>

## Changelog

* Version 0.0.0: Initial release.
