> ## 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.

# IncompatibleMeshMapperByProjection Class Reference

Part of [Mesh mapper](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__meshmapper)

Imports data from an incompatible mesh.

## Public Types

| Type | Name |
| - | - |
|  typedef boost::shared\_ptr\< [CoorTransformationBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coor_transformation_base.md) > | [CoorTransformationBasePtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a7c3eb7b21b8e3254d697b15a4192a7fe) a pointer to a rigid transformation algorithm object |
| enum | [Type](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7) \{  [eCOMPATIBLE](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7a459203ce56429dc8706ca2740bd69841) =0, [eINCOMPATIBLE](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7abb012f96e4409688aa1c1b06b645f184), [eINCOMPATIBLE\_CPP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7a29ad298ad8ef76fee66b8f94a6d463c3), [eINCOMPATIBLE\_RAY](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7a5a8514eef49d57792d68c382249f7e77),  [eGRID](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7a284b6ad33acf2df5fcd062adc42ad59c), [eP2VOLUME](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7adede4088d718f7458095afc816edd231), [eMORPHED\_MESH](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7afc6b02161f5d04720e7f94015730e580)  } an enum type defining the type of the derived class |

## Public Member Functions

| Type | Name |
| - | - |
|  virtual string | **generateScriptOfSettingsDefinition** (string variable\_ident) |
| | [IncompatibleMeshMapperByProjection](#afd4e3d7fb752e8344c8477fb74d9b079) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) constructor |
|  virtual [Type](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md#a1d1cfd8ffb84e947f82999c682b666a7) | **mapperType** () |
|  virtual string | **mapperTypeIdent** () |

## Public Attributes

| Type | Name |
| - | - |
|  bool | [deviations\_along\_boundary\_normal](#ae7320dfe5b79f04926b5794f5593b9de) if true, then the algorithm will enforce colinearity of the normal vectors of the reference mesh boundary and the coordinate deviations. Default: true |
| bool | [number\_sided\_projection](#aa2671490b3d6f1995d621f6a567d64f0) destructor |
| bool | [overwrite\_existing](#ade25e60bd85c8b4abd4f5b416cae0eb9) If true, then existing data objects will be replaced. |
| string | [transferred\_data\_ident\_prefix](#ae79cc32e0a89d7a67bb2cfc469d95e6a) The prefix for re-transferred data. |
|  bool | [use\_half\_space\_test\_for\_associating\_faces](#a25dc38ad33af95b4c9b51c09e532c46f) if true, the algorithm tries to associate the correct boundary segments by assuming that the normal vectors of linked segments point into the same half space. Default: true |

## Detailed Description

Imports data from an incompatible mesh.

* The meshes can be incompatible (and deformed)
* Deformations may be of medium size, i.e. they must be detectable by a direct closest point projection onto the boundary (segments, edges or nodes - whatever feature is closest)
* Eroded elements can not be detected
* Non-matching boundary portions (due to cut-offs, holes, etc.) can not be detected
* Zones with erroneous detection or with larger distance than the maximum search distance are marked as eroded elements
* Coordinate deviations are the true deviation vectors. They are not necesarily parallel to the nodal normal vectors of the boundary. Hence, you can not use the normal deviations for simulation of deformed geometries.
* If nodal normal deviations are imported, interior nodes and boundary nodes with incorrect normal will be marked as eroded in the deviation objects.
* If number-sided node-to-segment projection is used, one can treat differently fine meshes better.
* [Element](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_element.md) data objects are imported by converting them to node objects, project theme and convert them back to element objects. This will introduce some degree of data smoothing.
* The choice of the maximum search distance may affect the performance significantly.
* The ability of simulating geometry deviations can be restored by enforcing the colinearity of the normal vectors of the reference mesh boundary and the deviation vectors

## Member Enumeration Documentation

### Type

```cpp theme={null}
enum Type
```

`inherited`

an enum type defining the type of the derived class

| Enumerator | |
| - | - |
| eCOMPATIBLE | compatible mesh mapper |
| eINCOMPATIBLE | incompatible mesh mapper |
| eINCOMPATIBLE\_CPP | incompatible mesh mapper (closest point projection) |
| eINCOMPATIBLE\_RAY | incompatible mesh mapper (along user-specified direction) |
| eGRID | grid mesh mapper |
| eP2VOLUME | point-to-volume mesh mapper |
| eMORPHED\_MESH | mesh mapper used morphing |

## Constructor & Destructor Documentation

### IncompatibleMeshMapperByProjection()

```cpp theme={null}
IncompatibleMeshMapperByProjection(Structure database)
```

constructor

**Parameters**

| Name | Description |
| - | - |
| database | The database structure we refer to. Used to compute default values. |

## Member Data Documentation

### number\_sided\_projection

```cpp theme={null}
bool number_sided_projection
```

**Initial value:**

```lua theme={null}
{}

    number maximum_search_distance
```

destructor

if true, then one uses number-sided node-to-segment detection, else only one-sided node-to-segment (reference-to-design) detection is used. Default: false

### overwrite\_existing

```cpp theme={null}
bool overwrite_existing
```

If true, then existing data objects will be replaced.

This option is used by transferData

### transferred\_data\_ident\_prefix

```cpp theme={null}
string transferred_data_ident_prefix
```

The prefix for re-transferred data.

transferData is able to transfer the data to the new database, and to transfer the same data back This strategy allows to check the error that is obtained when transferring data between two meshes, since one can compare it with the original data on the same mesh. If the prefix is an empty string, then no data will be created. Else one choses the new quantity ident as "prefix\[original\_quantity\_ident]"
