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

# ExportGeometry Struct Reference

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

Defines the interface for exporting a deformed geometry to a file The coordinates to be exported are either:

## Public Types

| Type | Name |
| - | - |
| enum | [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) \{  [UNINITIALIZED](#acf1b366f46b9570951935096bc25e2e6af096820742c38363e9d6c33e7c932780) = 0, [STL](#acf1b366f46b9570951935096bc25e2e6a3a8b3333d20fa8bfc7a658976116142c), [LSDYNA](#acf1b366f46b9570951935096bc25e2e6ae3ed41cd8fb28b6c00b37ec52b7cb6b7), [NASTRAN](#acf1b366f46b9570951935096bc25e2e6ae47615bbaba7255ab17b5475d3ba6f12),  [ANSYS\_MECHANICAL\_DAT](#acf1b366f46b9570951935096bc25e2e6ade3177a1c4bcd64ecd84cd388c6726a5)  } Defines the format of a file. |

## Public Member Functions

| Type | Name |
| - | - |
| | [ExportGeometry](#ae65ff1ee9cfeca8e51a9bb090026c3f4) () default constructor |
| bool | [isAnyCoordinateSet](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#a7fe742a326ed093610a77be41f0d5daf) () Returns true if any node coordinate needs to be modified. |
| bool | [isXCoordinateSet](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#a3d06db310cea1faa5f35b16e4a863883) () |
| bool | [isYCoordinateSet](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#ace43862f6f933e57005e4d669bf95ec8) () |
| bool | [isZCoordinateSet](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#af263b289cd0bc9436b144c942ba18b9d) () |
| | [save](#a6a338dc4344270fcbccadf5667ef12f9) ([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)) exports the geometry |

## Public Attributes

| Type | Name |
| - | - |
|  number | [coor\_increment\_factor](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#ae41d9f831e08fa05af4ff8562081865f) defines the scaling factor for coordinate increments (default: 1.0) |
| [enum\_format\_type](#acf1b366f46b9570951935096bc25e2e6) | [file\_format](#a36f06489f13fd31d60f437a4624ac63a) the source file format |
|  string | [file\_name](#a755d42f2e9c635ce2213e0efad62b796) the name of the source file relative to the base path |
|  bool | [mesh\_stabilization](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#ab017799d29c8279bc2b4976f4aa3e4d0) is true, some stabilization algorithms are applied |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [node\_coor\_increment\_x](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#a2716ab8a487117f921f7a6827212d79f) X node coordinate deviation If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. This coordinate is computed by adding the respective value to the node coordinate of the reference structure. |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [node\_coor\_increment\_y](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#aeb73eaa26c8065e09713c94bcd61b920) Y node coordinate deviation If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. This coordinate is computed by adding the respective value to the node coordinate of the reference structure. |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [node\_coor\_increment\_z](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#a33fde5ec2727661509ed1414a90db1bd) Z node coordinate deviation If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. This coordinate is computed by adding the respective value to the node coordinate of the reference structure. |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [node\_coor\_x](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#a159f2eb0ab4b04af4c6f560808af08b6) X node coordinate If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [node\_coor\_y](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#aa0300af1da21afa4e43fd0e64533e189) Y node coordinate If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. |
| [DataObjectPtr](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_ptr.md) | [node\_coor\_z](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#a5cc7124a1cba852c8dba82d827896358) Z node coordinate If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. |
|  bool | [replace\_files](#a2f8b3cba47ad64fb6bda4b6428a032d3) if true, then existing files will be replaced (else: error is thrown) |
|  bool | [throw\_error\_on\_unstable\_mesh](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_modify_mesh_base.md#ac92d2c3e8ade2a17ee2edb8eb6747008) if true then an error/exception will be created if some mesh smoothening errors remain after stabilization |

## Detailed Description

Defines the interface for exporting a deformed geometry to a file The coordinates to be exported are either:

* The coordinate of the reference structure
* the given node coordinate
* the sum of the reference structure coordinate and the given coordinate increment (displacement) The user can specify the three coordinate components (x,y,z) individually.

## Member Enumeration Documentation

### enum\_format\_type

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

Defines the format of a file.

> [!NOTE]
>
> In order to stay compatible with existing script files, do only append new items to this list! This list will directly influence the sort order in the item vector

| Enumerator | |
| - | - |
| UNINITIALIZED | not initialized |
| STL | STL format. |
| LSDYNA | LS-DYNA K format. |
| NASTRAN | Nastran. |
| ANSYS\_MECHANICAL\_DAT | ANSYS Mechanical input file format. |

## Member Function Documentation

### isAnyCoordinateSet()

```cpp theme={null}
bool isAnyCoordinateSet()
```

`inherited`

Returns true if any node coordinate needs to be modified.

**Returns**

True if any node coordinate (absolute or increment) is set. False, otherwise.

### isXCoordinateSet()

```cpp theme={null}
bool isXCoordinateSet()
```

`inherited`

**Returns**

True if the X node coordinate (absolute or increment) is set. False, otherwise.

### isYCoordinateSet()

```cpp theme={null}
bool isYCoordinateSet()
```

`inherited`

**Returns**

True if the Y node coordinate (absolute or increment) is set. False, otherwise.

### isZCoordinateSet()

```cpp theme={null}
bool isZCoordinateSet()
```

`inherited`

**Returns**

True if the Z node coordinate (absolute or increment) is set. False, otherwise.

### save()

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

exports the geometry

**Parameters**

| Name | Description |
| - | - |
| database | the database where all objects are to be stored |

## Member Data Documentation

### node\_coor\_increment\_x

```cpp theme={null}
DataObjectPtr node_coor_increment_x
```

`inherited`

X node coordinate deviation If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. This coordinate is computed by adding the respective value to the node coordinate of the reference structure.

> [!NOTE]
>
> This option is ignored if node\_coor\_x is set

### node\_coor\_increment\_y

```cpp theme={null}
DataObjectPtr node_coor_increment_y
```

`inherited`

Y node coordinate deviation If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. This coordinate is computed by adding the respective value to the node coordinate of the reference structure.

> [!NOTE]
>
> This option is ignored if node\_coor\_y is set

### node\_coor\_increment\_z

```cpp theme={null}
DataObjectPtr node_coor_increment_z
```

`inherited`

Z node coordinate deviation If the neither the coordinate nor the deviation along a specific axis direction is set (i.e. empty pointer), then the reference coordinates will be used. The dataobject refers to database.indexMapper index space. This coordinate is computed by adding the respective value to the node coordinate of the reference structure.

> [!NOTE]
>
> This option is ignored if node\_coor\_z is set
