Example 6: addmesh / match

The objective is to join two meshes to create a third using the addmesh/match command. Two rectangular meshes are combined. The match option concatenates two meshes but allows the second to be translated, rotated, and scaled.

 

Images of GMV output

 


”” “”](image/addmesh_match/addmesh_mesh1.gif”> [mesh1](image/addmesh_match/addmesh_mesh1.gif”> ”” “”](image/addmesh_match/addmesh_mesh2.gif”> [mesh2](image/addmesh_match/addmesh_mesh2.gif”> ”” “”](image/addmesh_match/addmesh_mesh3.gif”> [mesh3](/test/md/image/addmesh_match/addmesh_mesh3.gif”> —————————————————————————————————————————————————————- —————————————————————————————————————————————————————- —————————————————————————————————————————————————————————

 

Input file

read   gmv   input_mesh3.gmv  cmo1

read   gmv   input_mesh4.gmv  cmo2

addmesh   match   cmo3   cmo1   cmo2 / &

      2.0 0.0 0.0 / 3.0 0.0 0.0 / 2.0 0.0 2.0 &

      2.0 0.0 0.0 / 2.0 1.0 0.0 / 2.0 0.0 2.0

filter 1 0 0

dump   gmv   output_match.gmv  cmo3

cmo/status

cmo/printatt//-all-/minmax

quality

finish