Skip to main content

oSP3D Script API 2024 R1

MeshMapper_Ray Class Reference

Last update: 16.07.2025

imports data from an incompatible mesh More...

Public Types

typedef boost::shared_ptr< CoorTransformationBaseCoorTransformationBasePtr
 a pointer to a rigid transformation algorithm object
 
enum  Type {
  eCOMPATIBLE =0, eINCOMPATIBLE, eINCOMPATIBLE_CPP, eINCOMPATIBLE_RAY,
  eGRID, eP2VOLUME, eMORPHED_MESH
}
 an enum type defining the type of the derived class More...
 

Public Member Functions

virtual string generateScriptOfSettingsDefinition (string variable_ident)
 
virtual Type mapperType ()
 
virtual string mapperTypeIdent ()
 
 MeshMapper_Ray ()
 constructor
 

Public Attributes

bool add_offset_to_deviation
 if true, then the offset is added to the detected deviation vectors.
 
number maximum_search_distance
 destructor More...
 
number offset_x
 the x component of the offset to the reference mesh
 
number offset_y
 the y component of the offset to the reference mesh
 
number offset_z
 the z component of the offset to the reference mesh
 
bool overwrite_existing
 If true, then existing data objects will be replaced. More...
 
number ray_x
 the x component of the direction vector
 
number ray_y
 the y component of the direction vector
 
number ray_z
 the z component of the direction vector
 
string transferred_data_ident_prefix
 The prefix for re-transferred data. More...
 
bool use_half_space_test_for_associating_faces
 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
 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...
 
bool use_reference_node_set
 if true, then only the nodes in the reference node set of the reference mesh are used in the projection on the contactor side.
 

Detailed Description

imports data from an incompatible mesh

Member Enumeration Documentation

◆ Type

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

Member Data Documentation

◆ maximum_search_distance

number maximum_search_distance

destructor

the maximum search distance (default: infinity)

◆ overwrite_existing

bool overwrite_existing

If true, then existing data objects will be replaced.

This option is used by transferData

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

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

Connect with Ansys