    

 ## On this page

  

 

 # ExportGeometry Struct Reference

 Last update: 16.07.2025 

Defines the interface for exporting a deformed geometry to a file The coordinates to be exported are either: [More...](struct_export_geometry.xhtml#details)

## <a name="pub-types"></a>Public Types

enum [enum\_format\_type](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6) {   
 [UNINITIALIZED](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6af096820742c38363e9d6c33e7c932780) = 0, [STL](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6a3a8b3333d20fa8bfc7a658976116142c), [LSDYNA](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6ae3ed41cd8fb28b6c00b37ec52b7cb6b7), [NASTRAN](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6ae47615bbaba7255ab17b5475d3ba6f12),   
 [ANSYS\_MECHANICAL\_DAT](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6ade3177a1c4bcd64ecd84cd388c6726a5)  
 } Defines the format of a file. [More...](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6)  
 ## <a name="pub-methods"></a>Public Member Functions

<a id="ae65ff1ee9cfeca8e51a9bb090026c3f4"></a> [ExportGeometry](struct_export_geometry.xhtml#ae65ff1ee9cfeca8e51a9bb090026c3f4) () default constructor   
 bool [isAnyCoordinateSet](class_modify_mesh_base.xhtml#a7fe742a326ed093610a77be41f0d5daf) () Returns true if any node coordinate needs to be modified. [More...](#a7fe742a326ed093610a77be41f0d5daf)  
 bool [isXCoordinateSet](class_modify_mesh_base.xhtml#a3d06db310cea1faa5f35b16e4a863883) () bool [isYCoordinateSet](class_modify_mesh_base.xhtml#ace43862f6f933e57005e4d669bf95ec8) () bool [isZCoordinateSet](class_modify_mesh_base.xhtml#af263b289cd0bc9436b144c942ba18b9d) ()  [save](struct_export_geometry.xhtml#a6a338dc4344270fcbccadf5667ef12f9) ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b)) exports the geometry [More...](#a6a338dc4344270fcbccadf5667ef12f9)  
 ## <a name="pub-attribs"></a>Public Attributes

<a id="ae41d9f831e08fa05af4ff8562081865f"></a>number [coor\_increment\_factor](class_modify_mesh_base.xhtml#ae41d9f831e08fa05af4ff8562081865f) defines the scaling factor for coordinate increments (default: 1.0)   
 <a id="a36f06489f13fd31d60f437a4624ac63a"></a>[enum\_format\_type](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6) [file\_format](struct_export_geometry.xhtml#a36f06489f13fd31d60f437a4624ac63a) the source file format   
 <a id="a755d42f2e9c635ce2213e0efad62b796"></a>string [file\_name](struct_export_geometry.xhtml#a755d42f2e9c635ce2213e0efad62b796) the name of the source file relative to the base path   
 <a id="ab017799d29c8279bc2b4976f4aa3e4d0"></a>bool [mesh\_stabilization](class_modify_mesh_base.xhtml#ab017799d29c8279bc2b4976f4aa3e4d0) is true, some stabilization algorithms are applied   
 [DataObjectPtr](class_data_object_ptr.xhtml) [node\_coor\_increment\_x](class_modify_mesh_base.xhtml#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. [More...](#a2716ab8a487117f921f7a6827212d79f)  
 [DataObjectPtr](class_data_object_ptr.xhtml) [node\_coor\_increment\_y](class_modify_mesh_base.xhtml#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. [More...](#aeb73eaa26c8065e09713c94bcd61b920)  
 [DataObjectPtr](class_data_object_ptr.xhtml) [node\_coor\_increment\_z](class_modify_mesh_base.xhtml#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. [More...](#a33fde5ec2727661509ed1414a90db1bd)  
 <a id="a159f2eb0ab4b04af4c6f560808af08b6"></a>[DataObjectPtr](class_data_object_ptr.xhtml) [node\_coor\_x](class_modify_mesh_base.xhtml#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.   
 <a id="aa0300af1da21afa4e43fd0e64533e189"></a>[DataObjectPtr](class_data_object_ptr.xhtml) [node\_coor\_y](class_modify_mesh_base.xhtml#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.   
 <a id="a5cc7124a1cba852c8dba82d827896358"></a>[DataObjectPtr](class_data_object_ptr.xhtml) [node\_coor\_z](class_modify_mesh_base.xhtml#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.   
 <a id="a2f8b3cba47ad64fb6bda4b6428a032d3"></a>bool [replace\_files](struct_export_geometry.xhtml#a2f8b3cba47ad64fb6bda4b6428a032d3) if true, then existing files will be replaced (else: error is thrown)   
 <a id="ac92d2c3e8ade2a17ee2edb8eb6747008"></a>bool [throw\_error\_on\_unstable\_mesh](class_modify_mesh_base.xhtml#ac92d2c3e8ade2a17ee2edb8eb6747008) if true then an error/exception will be created if some mesh smoothening errors remain after stabilization   
 <a id="details" name="details"></a>## 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

<a id="acf1b366f46b9570951935096bc25e2e6"></a>## [◆ ](#acf1b366f46b9570951935096bc25e2e6)enum\_format\_type

 enum [enum\_format\_type](struct_export_geometry.xhtml#acf1b366f46b9570951935096bc25e2e6)

Defines the format of a file.

NoteIn 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<a id="acf1b366f46b9570951935096bc25e2e6af096820742c38363e9d6c33e7c932780"></a>UNINITIALIZED not initialized

<a id="acf1b366f46b9570951935096bc25e2e6a3a8b3333d20fa8bfc7a658976116142c"></a>STL STL format.

<a id="acf1b366f46b9570951935096bc25e2e6ae3ed41cd8fb28b6c00b37ec52b7cb6b7"></a>LSDYNA LS-DYNA K format.

<a id="acf1b366f46b9570951935096bc25e2e6ae47615bbaba7255ab17b5475d3ba6f12"></a>NASTRAN Nastran.

<a id="acf1b366f46b9570951935096bc25e2e6ade3177a1c4bcd64ecd84cd388c6726a5"></a>ANSYS\_MECHANICAL\_DAT ANSYS Mechanical input file format.





## Member Function Documentation

<a id="a7fe742a326ed093610a77be41f0d5daf"></a>## [◆ ](#a7fe742a326ed093610a77be41f0d5daf)isAnyCoordinateSet()

 bool isAnyCoordinateSet  ( )   inherited 

Returns true if any node coordinate needs to be modified.

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



<a id="a3d06db310cea1faa5f35b16e4a863883"></a>## [◆ ](#a3d06db310cea1faa5f35b16e4a863883)isXCoordinateSet()

 bool isXCoordinateSet  ( )   inherited 

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



<a id="ace43862f6f933e57005e4d669bf95ec8"></a>## [◆ ](#ace43862f6f933e57005e4d669bf95ec8)isYCoordinateSet()

 bool isYCoordinateSet  ( )   inherited 

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



<a id="af263b289cd0bc9436b144c942ba18b9d"></a>## [◆ ](#af263b289cd0bc9436b144c942ba18b9d)isZCoordinateSet()

 bool isZCoordinateSet  ( )   inherited 

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



<a id="a6a338dc4344270fcbccadf5667ef12f9"></a>## [◆ ](#a6a338dc4344270fcbccadf5667ef12f9)save()

 save  ( [Structure](class_structure.xhtml)  *database*) 

exports the geometry

Parameters databasethe database where all objects are to be stored 



## Member Data Documentation

<a id="a2716ab8a487117f921f7a6827212d79f"></a>## [◆ ](#a2716ab8a487117f921f7a6827212d79f)node\_coor\_increment\_x

 [DataObjectPtr](class_data_object_ptr.xhtml) 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.

NoteThis option is ignored if node\_coor\_x is set 



<a id="aeb73eaa26c8065e09713c94bcd61b920"></a>## [◆ ](#aeb73eaa26c8065e09713c94bcd61b920)node\_coor\_increment\_y

 [DataObjectPtr](class_data_object_ptr.xhtml) 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.

NoteThis option is ignored if node\_coor\_y is set 



<a id="a33fde5ec2727661509ed1414a90db1bd"></a>## [◆ ](#a33fde5ec2727661509ed1414a90db1bd)node\_coor\_increment\_z

 [DataObjectPtr](class_data_object_ptr.xhtml) 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.

NoteThis option is ignored if node\_coor\_z is set