Example 262: Fit host mesh parameters to match target data locations

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 the Xi pts of the host mesh to their target locations. To view the host mesh and source data and target data, run the CMGUI comfile ../view.com


The comfile run by this example is as follows:

#Anthropomorphic fits: Update host mesh geom coords & export mesh
#
fem de coor;r;host;example              #3D r.c. coords
fem de base;r;host;example              #bicubic-linear
#
#Read host mesh into region 1
fem de node;r;host;example           
fem de elem;r;host;example    
fem de fiel;r;host;example              #define 3 field variables
fem de elem;r;host;example field
#
fem group elem 1..4 as allelems
#
#Read data points (these are deformed nodes of face mesh)
fem de data;r;face_target;example       #read coords data points
#
#Read their Xi coords within the cube (material pts)
fem de xi;r;face;example                #read Xi positions of data pts
fem li data error               #show starting error
#
#Fit host mesh to put face material pts at specified deformed locations
fem de fit;r;host;example geom      
fem fit
#
#Update host mesh geometry & export fitted mesh + target data
fem update nodes
fem list data error             #show final error
fem export nodes;host_fit as host_fit
fem export elements;host_fit as host_fit
fem export data;face_target as target_data
fem quit

Files used by this example are:

Name                Modified     Size

example_262.com 10-Apr-2000 1.1k baseface.exnode 10-Apr-2000 48k face.ipxi 10-Apr-2000 5.8k face_target.exdata 10-Apr-2000 4.0k face_target.ipdata 10-Apr-2000 3.5k fixipfiel.sh 10-Apr-2000 488 fox_anthro.com 10-Apr-2000 558 host.ipbase 10-Apr-2000 6.0k host.ipcoor 10-Apr-2000 588 host.ipelem 10-Apr-2000 1.5k host.ipelfd 10-Apr-2000 1.1k host.ipfiel 10-Apr-2000 14k host.ipfit 13-Apr-2007 2.0k host.ipnode 10-Apr-2000 16k host_fit.exelem 10-Apr-2000 11k host_fit.exnode 10-Apr-2000 11k std_face.exnode 10-Apr-2000 50k view.com 09-Feb-2005 689

Download the entire example:

Name                      Modified     Size

examples_2_26_262.tar.gz 14-Apr-2007 55k

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

Input last modified: Fri Apr 13 10:31:28 2007


CMISS Help / Examples / 2 / 26 / 262