CoarseTranslation Class Reference
Last update: 16.07.2025This algorithms automatically translates one structure to the center of origin of the other. More...
Public Types | |
| enum | Type { eNEUTRAL_TRANS =0, eCOARSE_TRANS, eCOARSE_ROT, eCOARSE_ROT_TRANS, eFINE_ROT_TRANS, eFINE_ROT_TRANS_PREALIGNED } |
| an enum type defining the type of the derived class More... | |
Public Member Functions | |
| applyTransformation (MeshMapperBase mapper, Structure ref_structure, Structure other_structure) | |
| Applies the coordinate transformation to the other_structure. More... | |
| virtual bool | doesNonRigid () const |
| virtual bool | doesNonRigid ()=0 |
| virtual bool | doesRotate () const |
| virtual bool | doesRotate ()=0 |
| virtual bool | doesTranslate () const |
| virtual bool | doesTranslate ()=0 |
| virtual string | generateScriptOfSettingsDefinition (string variable_ident) |
| generates a script string (Lua) that is used to build up this object. More... | |
| virtual Type | trafoType () |
Public Attributes | |
| 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. More... | |
Detailed Description
This algorithms automatically translates one structure to the center of origin of the other.
The center of origin is defined by the boundary surface of both structures.
Member Enumeration Documentation
◆ Type
|
inherited |
an enum type defining the type of the derived class
| Enumerator | |
|---|---|
| eNEUTRAL_TRANS | Neutral transformation. |
| eCOARSE_TRANS | |
| eCOARSE_ROT | |
| eCOARSE_ROT_TRANS | |
| eFINE_ROT_TRANS | |
| eFINE_ROT_TRANS_PREALIGNED | FineRigidTransformation of pre-aligned point clouds. |
Member Function Documentation
◆ applyTransformation()
|
inherited |
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
-
[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()
|
pure virtualinherited |
- Returns
- true if this transformation applies a non-rigid operation
Implemented in NeutralCoorTransformation, and CoarseRotation.
◆ doesRotate()
|
pure virtualinherited |
- Returns
- true if this transformation applies a rigid rotation
Implemented in NeutralCoorTransformation, and CoarseRotation.
◆ doesTranslate()
|
pure virtualinherited |
- Returns
- true if this transformation applies a rigid translation
Implemented in NeutralCoorTransformation, and CoarseRotation.
◆ generateScriptOfSettingsDefinition()
|
virtual |
generates a script string (Lua) that is used to build up this object.
- Returns
- the script code, ends with newline.
- Parameters
-
variable_ident the ident of the Lua variable that contains the MeshMapper object
Implements CoorTransformationBase.
◆ trafoType()
|
virtual |
- Returns
- the type of the transformation
Implements CoorTransformationBase.
Member Data Documentation
◆ trafo_ref_node_set
|
inherited |
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.