Example 264: Fitting host mesh to match slave mesh node positions

This example uses the Xi coords of a set of 3D points (in face.ipxi - created by example 261) together with their target locations (in face_target.ipdata) to fit the nodes of a 4-element 18-node bicubic-linear host mesh. Distortion of the host mesh serves to match To view the host mesh and source data and target data, run the CMGUI comfile cmiss_input/draw.com


The comfile run by this example is as follows:

#
# Fitting host mesh to match slave mesh node positions
#



# Command updated by fixcom.sh on Wed Aug 23 17:48:18 NZT 2000
# Old command: assign variable HOSTREG 1
$HOSTREG = 1


# Command updated by fixcom.sh on Wed Aug 23 17:48:18 NZT 2000
# Old command: assign variable SLAVEREG 2
$SLAVEREG = 2


fem def coor 3,1
fem def base;r;trilinear_bilinear;example
fem def regi;r;two;example

Additional testing commands:


#
# Define the host and slave meshes
#
fem def node;r;host;example  reg $HOSTREG
fem def elem;r;host;example  reg $HOSTREG
fem def node;r;slave;example reg $SLAVEREG
fem def elem;r;slave;example reg $SLAVEREG

#
# Export the original host and slave meshes
#
fem export node;host as host reg $HOSTREG
fem export elem;host as host reg $HOSTREG
fem export node;slave_orig as slave_orig reg $SLAVEREG
fem export elem;slave_orig as slave_orig reg $SLAVEREG

#
# Deform the slave mesh according to the host mesh xi's
#
fem def xi;r;slave;example node
fem up mesh position of 2 in 1
fem export node;slave_cust as slave_cust reg $SLAVEREG offset 100
fem export elem;slave_cust as slave_cust reg $SLAVEREG offset_elem 100


fem li node reg all


Files used by this example are:

Name                       Modified     Size

example_264.com 24-Aug-2000 389 draw.com 10-Apr-2000 158 host.exelem 10-Apr-2000 3.5k host.exnode 10-Apr-2000 994 host.ipelem 10-Apr-2000 393 host.ipnode 10-Apr-2000 1.8k junk.ipregi 10-Apr-2000 93 slave.ipelem 10-Apr-2000 394 slave.ipnode 10-Apr-2000 1.1k slave.ipxi 10-Apr-2000 344 slave_cust.exelem 10-Apr-2000 1.7k slave_cust.exnode 10-Apr-2000 612 slave_orig.exelem 10-Apr-2000 1.7k slave_orig.exnode 10-Apr-2000 612 test_output.com 10-Apr-2000 737 trilinear_bilinear.ipbase 10-Apr-2000 2.4k two.ipregi 10-Apr-2000 93

Download the entire example:

Name                      Modified     Size

examples_2_26_264.tar.gz 19-Aug-2006 5.2k

Testing status by version:

StatusTestedReal time (s)
i686-linux
cmSuccessSun Mar 6 00:01:42 20161
cm-debugSuccessSat Mar 5 00:01:58 20160
mips-irix
cmSuccessSun Aug 19 01:24:13 20073
cm-debugSuccessWed Aug 15 01:22:36 20075
cm-debug-clear-mallocSuccessSat Aug 18 01:23:32 20079
cm-debug-clear-malloc7SuccessMon Aug 20 01:21:37 20079
cm64SuccessSun Aug 19 01:24:30 20073
cm64-debugSuccessTue Aug 21 01:19:27 20075
cm64-debug-clear-mallocSuccessThu Apr 1 10:12:18 20042
rs6000-aix
cmSuccessWed Mar 4 01:06:55 20090
cm-debugSuccessMon Mar 2 01:06:16 20091
cm64SuccessWed Mar 4 01:06:55 20090
cm64-debugSuccessTue Mar 3 01:11:37 20091
x86_64-linux
cmSuccessSun Mar 6 00:01:01 20160
cm-debugSuccessSat Mar 5 00:01:12 20160

Testing status by file:


Html last generated: Sun Mar 6 05:50:13 2016

Input last modified: Tue Jul 9 00:07:58 2002


CMISS Help / Examples / 2 / 26 / 264