    

 ## On this page

  

 

 # MeshMapper\_Ray Class Reference

 Last update: 16.07.2025 

imports data from an incompatible mesh [More...](class_mesh_mapper___ray.xhtml#details)

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

<a id="a7c3eb7b21b8e3254d697b15a4192a7fe"></a>typedef boost::shared\_ptr&lt; [CoorTransformationBase](class_coor_transformation_base.xhtml) &gt; [CoorTransformationBasePtr](class_mesh_mapper_base.xhtml#a7c3eb7b21b8e3254d697b15a4192a7fe) a pointer to a rigid transformation algorithm object   
 enum [Type](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7) {   
 [eCOMPATIBLE](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7a459203ce56429dc8706ca2740bd69841) =0, [eINCOMPATIBLE](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7abb012f96e4409688aa1c1b06b645f184), [eINCOMPATIBLE\_CPP](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7a29ad298ad8ef76fee66b8f94a6d463c3), [eINCOMPATIBLE\_RAY](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7a5a8514eef49d57792d68c382249f7e77),   
 [eGRID](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7a284b6ad33acf2df5fcd062adc42ad59c), [eP2VOLUME](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7adede4088d718f7458095afc816edd231), [eMORPHED\_MESH](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7afc6b02161f5d04720e7f94015730e580)  
 } an enum type defining the type of the derived class [More...](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7)  
 ## <a name="pub-methods"></a>Public Member Functions

<a id="ac225d733c7c2cc84e76682c9f5b4c7d2"></a>virtual string **generateScriptOfSettingsDefinition** (string variable\_ident) <a id="aed5aa97ce27c71905a5f29493dbffef6"></a>virtual [Type](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7) **mapperType** () <a id="a5c42ba8c9ccf82aa3241bea39388223d"></a>virtual string **mapperTypeIdent** () <a id="ae918c8e7ca06023b5aa8bd64ab2b3dfc"></a> [MeshMapper\_Ray](class_mesh_mapper___ray.xhtml#ae918c8e7ca06023b5aa8bd64ab2b3dfc) () constructor   
 ## <a name="pub-attribs"></a>Public Attributes

<a id="a834cc6bbd493201332159c1af8facc7e"></a>bool [add\_offset\_to\_deviation](class_mesh_mapper___ray.xhtml#a834cc6bbd493201332159c1af8facc7e) if true, then the offset is added to the detected deviation vectors.   
 number [maximum\_search\_distance](class_mesh_mapper___ray.xhtml#ac94d772107063be0645673d9156260dd) destructor [More...](#ac94d772107063be0645673d9156260dd)  
 <a id="ad4e70c1e25e4b302401e855737311613"></a>number [offset\_x](class_mesh_mapper___ray.xhtml#ad4e70c1e25e4b302401e855737311613) the x component of the offset to the reference mesh   
 <a id="a3cc33bdebe396bd366d6f90bf4db94c8"></a>number [offset\_y](class_mesh_mapper___ray.xhtml#a3cc33bdebe396bd366d6f90bf4db94c8) the y component of the offset to the reference mesh   
 <a id="ac51e80d987e5d67c6d63e66fe2cbcc66"></a>number [offset\_z](class_mesh_mapper___ray.xhtml#ac51e80d987e5d67c6d63e66fe2cbcc66) the z component of the offset to the reference mesh   
 bool [overwrite\_existing](class_mesh_mapper___ray.xhtml#ade25e60bd85c8b4abd4f5b416cae0eb9) If true, then existing data objects will be replaced. [More...](#ade25e60bd85c8b4abd4f5b416cae0eb9)  
 <a id="a1379192cc58ef763a3602bba5635758f"></a>number [ray\_x](class_mesh_mapper___ray.xhtml#a1379192cc58ef763a3602bba5635758f) the x component of the direction vector   
 <a id="ab18ac8d36e0e7948cfd2129f9f5f50f2"></a>number [ray\_y](class_mesh_mapper___ray.xhtml#ab18ac8d36e0e7948cfd2129f9f5f50f2) the y component of the direction vector   
 <a id="af2cd7d65ad2244fa54cc55d4bb4d340c"></a>number [ray\_z](class_mesh_mapper___ray.xhtml#af2cd7d65ad2244fa54cc55d4bb4d340c) the z component of the direction vector   
 string [transferred\_data\_ident\_prefix](class_mesh_mapper___ray.xhtml#ae79cc32e0a89d7a67bb2cfc469d95e6a) The prefix for re-transferred data. [More...](#ae79cc32e0a89d7a67bb2cfc469d95e6a)  
 <a id="a25dc38ad33af95b4c9b51c09e532c46f"></a>bool [use\_half\_space\_test\_for\_associating\_faces](class_mesh_mapper___ray.xhtml#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.   
 bool [use\_other\_reference\_node\_set](class_mesh_mapper___ray.xhtml#a393478609eb7352fa6ef03969634db35) If true, then only the nodes in the reference node set of the reference mesh of the source database are used in the projection on the target side. [More...](#a393478609eb7352fa6ef03969634db35)  
 <a id="ad0f3248d847b16ce1863e98c8e41d451"></a>bool [use\_reference\_node\_set](class_mesh_mapper___ray.xhtml#ad0f3248d847b16ce1863e98c8e41d451) if true, then only the nodes in the reference node set of the reference mesh are used in the projection on the contactor side.   
 <a id="details" name="details"></a>## Detailed Description

imports data from an incompatible mesh



## Member Enumeration Documentation

<a id="a1d1cfd8ffb84e947f82999c682b666a7"></a>## [◆ ](#a1d1cfd8ffb84e947f82999c682b666a7)Type

 enum [Type](class_mesh_mapper_base.xhtml#a1d1cfd8ffb84e947f82999c682b666a7)  inherited 

an enum type defining the type of the derived class

Enumerator<a id="a1d1cfd8ffb84e947f82999c682b666a7a459203ce56429dc8706ca2740bd69841"></a>eCOMPATIBLE compatible mesh mapper

<a id="a1d1cfd8ffb84e947f82999c682b666a7abb012f96e4409688aa1c1b06b645f184"></a>eINCOMPATIBLE incompatible mesh mapper

<a id="a1d1cfd8ffb84e947f82999c682b666a7a29ad298ad8ef76fee66b8f94a6d463c3"></a>eINCOMPATIBLE\_CPP incompatible mesh mapper (closest point projection)

<a id="a1d1cfd8ffb84e947f82999c682b666a7a5a8514eef49d57792d68c382249f7e77"></a>eINCOMPATIBLE\_RAY incompatible mesh mapper (along user-specified direction)

<a id="a1d1cfd8ffb84e947f82999c682b666a7a284b6ad33acf2df5fcd062adc42ad59c"></a>eGRID grid mesh mapper

<a id="a1d1cfd8ffb84e947f82999c682b666a7adede4088d718f7458095afc816edd231"></a>eP2VOLUME point-to-volume mesh mapper

<a id="a1d1cfd8ffb84e947f82999c682b666a7afc6b02161f5d04720e7f94015730e580"></a>eMORPHED\_MESH mesh mapper used morphing





## Member Data Documentation

<a id="ac94d772107063be0645673d9156260dd"></a>## [◆ ](#ac94d772107063be0645673d9156260dd)maximum\_search\_distance

 number maximum\_search\_distance

destructor

the maximum search distance (default: infinity)





<a id="ade25e60bd85c8b4abd4f5b416cae0eb9"></a>## [◆ ](#ade25e60bd85c8b4abd4f5b416cae0eb9)overwrite\_existing

 bool overwrite\_existing

If true, then existing data objects will be replaced.

This option is used by transferData





<a id="ae79cc32e0a89d7a67bb2cfc469d95e6a"></a>## [◆ ](#ae79cc32e0a89d7a67bb2cfc469d95e6a)transferred\_data\_ident\_prefix

 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\]"





<a id="a393478609eb7352fa6ef03969634db35"></a>## [◆ ](#a393478609eb7352fa6ef03969634db35)use\_other\_reference\_node\_set

 bool use\_other\_reference\_node\_set

If true, then only the nodes in the reference node set of the reference mesh of the source database are used in the projection on the target side.

This option can only be used if the complete database is to be transferred to another.