Transformation

You can reposition the source mesh to the target mesh if they are not co-located. Transformation also rotates the vector and tensor fields accordingly.

Use the <transformSpecifications> wrapper element to specify transformations to move the source mesh to the target mesh.

Use the <transformSpec> element to specify the translation and/or rotation to move the source to a target mesh. The name attribute is an internal reference name. Specify the component instance using the <componentInstance> element, and use the <region> element to identify the interface region to be repositioned.

Specify a translation vector using the <translation> element and/or a rotation matrix using the <rotationMatrix> element.

Example

The following example illustrates how to reposition a mesh:

<transformSpecifications>
      <transformSpec name = "MeshTransformation-1">
            <componentInstance>Actor-2</componentInstance>
            <region>WettedSurface</region>
            <translation>0, 12, 0</translation>
            <rotationMatrix>0.819152, -0.573576, 0, 0.573576, 0.819152, 0, 0, 0, 1</rotationMatrix>
      </transformSpec>
</transformSpecifications>