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

# CoorTransformationBase Class Reference

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

An abstract base class that provides a generic API for different methods that apply rigid coordinate transformations.

## Public Types

| Type | Name |
| - | - |
| enum | [Type](#a1d1cfd8ffb84e947f82999c682b666a7) \{  [eNEUTRAL\_TRANS](#a1d1cfd8ffb84e947f82999c682b666a7a2d5c3933900d9305ee3ab4eaf1c8eb41) =0, [eCOARSE\_TRANS](#a1d1cfd8ffb84e947f82999c682b666a7a8ac858363c69f6aa4f5c8c53707e59d9), [eCOARSE\_ROT](#a1d1cfd8ffb84e947f82999c682b666a7aea911dad52b010b8282c411af58e6539), [eCOARSE\_ROT\_TRANS](#a1d1cfd8ffb84e947f82999c682b666a7a4f10521c7d01709e9fe29913bc74dc47),  [eFINE\_ROT\_TRANS](#a1d1cfd8ffb84e947f82999c682b666a7a8f71931fda1acc6fdf8e362cbb879ebb), [eFINE\_ROT\_TRANS\_PREALIGNED](#a1d1cfd8ffb84e947f82999c682b666a7a639264569cf302a509a30ecd4f9742f3)  } an enum type defining the type of the derived class |

## Public Member Functions

| Type | Name |
| - | - |
| | [applyTransformation](#afdd491598da35029e3a478c72526fe8c) ([MeshMapperBase](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_mesh_mapper_base.md) mapper, [Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) ref\_structure, [Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) other\_structure) Applies the coordinate transformation to the other\_structure. |
| virtual bool | [doesNonRigid](#ac87710c0a9a888274234344ca0aae257) ()=0 |
| virtual bool | [doesRotate](#ae1841e85a58acb38cc648818485e265f) ()=0 |
| virtual bool | [doesTranslate](#a0c6d1696bb7fa057700433a238ac628b) ()=0 |
| virtual string | [generateScriptOfSettingsDefinition](#a5f5fbbea63d66795a7350e53e99d5c59) (string variable\_ident)=0 generates a script string (Lua) that is used to build up this object. |
| virtual [Type](#a1d1cfd8ffb84e947f82999c682b666a7) | [trafoType](#a6f3bf49f542989a2d568060325588a3f) ()=0 |

## Public Attributes

| Type | Name |
| - | - |
| std::pair\< string, string > | [trafo\_ref\_node\_set](#a82e5d668866e3c7af7831eb0463db6f1) The ident of the reference node set the transformation algorithms will be limited to set up their optimization criterion. |

## Detailed Description

An abstract base class that provides a generic API for different methods that apply rigid coordinate transformations.

Examples are:

* [CoarseTranslation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_translation.md)
* [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md)
* [CoarseRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rigid_transformation.md)
* [FineRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_fine_rigid_transformation.md)

## Member Enumeration Documentation

### Type

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

an enum type defining the type of the derived class

| Enumerator | |
| - | - |
| eNEUTRAL\_TRANS | Neutral transformation. |
| eCOARSE\_TRANS | [CoarseTranslation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_translation.md). |
| eCOARSE\_ROT | [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md). |
| eCOARSE\_ROT\_TRANS | [CoarseRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rigid_transformation.md). |
| eFINE\_ROT\_TRANS | [FineRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_fine_rigid_transformation.md). |
| eFINE\_ROT\_TRANS\_PREALIGNED | [FineRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_fine_rigid_transformation.md) of pre-aligned point clouds. |

## Member Function Documentation

### applyTransformation()

```cpp theme={null}
applyTransformation(
    MeshMapperBase mapper,
    Structure ref_structure,
    Structure other_structure
)
```

Applies the coordinate transformation to the other\_structure.

If a transformation reference node set has been defined, only those nodes included in the sets will be used to determine the transformation matrix. Otherwise all nodes of both structures will be used for the determination algorithm. Nevertheless, the transformation itself will be applied to all nodes of the other\_structure. It might also occur, that the reference node set cannot be found in the other\_structure. In such a case, the reference node set will be projected onto the segments of the other\_structure and used as virtual node set.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | mapper | A back reference to the current mesh mapper. This one might be needed if a defined reference node set cannot be found in the other\_structure |
| \[in] | ref\_structure | The reference mesh |
| \[in,out] | other\_structure | On input the imported mesh. On output the mesh with modified coordinates. |

### doesNonRigid()

```cpp theme={null}
virtual bool doesNonRigid()
```

`pure virtual`

**Returns**

true if this transformation applies a non-rigid operation

Implemented in [NeutralCoorTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_neutral_coor_transformation.md#a6e9fff1a6c26387078d83c1609c2edc0), and [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md#a6e9fff1a6c26387078d83c1609c2edc0).

### doesRotate()

```cpp theme={null}
virtual bool doesRotate()
```

`pure virtual`

**Returns**

true if this transformation applies a rigid rotation

Implemented in [NeutralCoorTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_neutral_coor_transformation.md#a2db558b5b102b9a6effd23683effa336), and [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md#a2db558b5b102b9a6effd23683effa336).

### doesTranslate()

```cpp theme={null}
virtual bool doesTranslate()
```

`pure virtual`

**Returns**

true if this transformation applies a rigid translation

Implemented in [NeutralCoorTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_neutral_coor_transformation.md#a9dfae9c4461dc2b2e4ccb32245c94dcb), and [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md#a9dfae9c4461dc2b2e4ccb32245c94dcb).

### generateScriptOfSettingsDefinition()

```cpp theme={null}
virtual string generateScriptOfSettingsDefinition(string variable_ident)
```

`pure virtual`

generates a script string (Lua) that is used to build up this object.

**Returns**

the script code, ends with newline.

**Parameters**

| Name | Description |
| - | - |
| variable\_ident | the ident of the Lua variable that contains the MeshMapper object |

Implemented in [NeutralCoorTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_neutral_coor_transformation.md#ac225d733c7c2cc84e76682c9f5b4c7d2), [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md#ac225d733c7c2cc84e76682c9f5b4c7d2), [CoarseRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rigid_transformation.md#ac225d733c7c2cc84e76682c9f5b4c7d2), and [CoarseTranslation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_translation.md#ac225d733c7c2cc84e76682c9f5b4c7d2).

### trafoType()

```cpp theme={null}
virtual Type trafoType()
```

`pure virtual`

**Returns**

the type of the transformation

Implemented in [NeutralCoorTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_neutral_coor_transformation.md#a54b19d55d0fc1d118b49c425a6b71d12), [CoarseRotation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rotation.md#a54b19d55d0fc1d118b49c425a6b71d12), [CoarseRigidTransformation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_rigid_transformation.md#a54b19d55d0fc1d118b49c425a6b71d12), and [CoarseTranslation](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_coarse_translation.md#a54b19d55d0fc1d118b49c425a6b71d12).

## Member Data Documentation

### trafo\_ref\_node\_set

```cpp theme={null}
std::pair< string, string > trafo_ref_node_set
```

The ident of the reference node set the transformation algorithms will be limited to set up their optimization criterion.

A pair consisting of the part ident as first and the set ident as second member.
