Example d34: Face fitting of a rectus femoris muscle

This example illustrates face fitting of a rectus femoris muscle to data from the visible man

Linear mesh with data set overlayed Fitted faces
Fig. 1 Linear mesh with data set overlayed Fig. 2 Fitted faces


The comfile run by this example is as follows:

###################################################
#
# This example illustrates face fitting of the 
# rectus femoris muscle to data from the visible man
#
###################################################

$tot_itt=5;
fem def para;r;rectus_volume;example
fem def coord 3,1
fem def nodes;r;linear_volume_rectus;example
fem def bases;r;bicubic_linear;example
fem def elem;r;linear_volume_rectus;example

fem update nodes derivative 1 linear;   
fem update nodes derivative 2 linear; 
fem update nodes derivative 3 linear; 

#fem export node;initial_volume_rectus as initial_volume_rectus offset 1000
#fem export elem;initial_volume_rectus as initial_volume_rectus offset_elem 1000 

fem def field;r;volume_rectus;example   
fem def elem;r;volume_rectus;example field
fem update field from geometry               

fem def data;r;rectus_femoris;example
#fem exp data;rectus_femoris as rectus_femoris

#fem def xi;c closest_face external 
#fem def xi;w volume_rectus closest_face external            
fem def xi;r;rectus_femoris;example closest_face external
fem li data error                             

for ($fit_itt=1; $fit_itt<=$tot_itt; $fit_itt=$fit_itt+1)
{
  fem def fit;r;volume_rectus;example geometry 
  fem fit
  fem update node fit
  fem update scale_factor normalise
  fem def xi;c closest_face external 
  system "echo ' ======================================================' "    
  fem li data error
  system "echo ' ITERATION ${fit_itt} DONE' "
  system "echo ' ======================================================' "
}

#fem export nodes;final_volume_rectus as final_volume_rectus offset 2000
#fem export elem;final_volume_rectus as final_volume_rectus offset_elem 2000 

Additional testing commands:



Files used by this example are:

Name                         Modified     Size

example_d34.com 11-Aug-2004 1.7k bicubic_linear.ipbase 11-Aug-2004 6.0k linear_volume_rectus.ipelem 11-Aug-2004 9.8k linear_volume_rectus.ipnode 11-Aug-2004 9.0k no_preferance.ipfit 13-Apr-2007 3.6k rectus_femoris.ipdata 11-Aug-2004 117k rectus_femoris.ipxi 11-Aug-2004 142k rectus_volume.ippara 11-Aug-2004 6.0k test_output.com 22-Aug-2004 0 two.ipbase 11-Aug-2004 2.4k view.com 11-Aug-2004 3.0k volume_rectus.ipelfd 11-Aug-2004 8.1k volume_rectus.ipfiel 11-Aug-2004 31k volume_rectus.ipfit 13-Apr-2007 3.6k

Download the entire example:

Name                      Modified     Size

examples_d_d3_d34.tar.gz 14-Apr-2007 131k

Testing status by version:

StatusTestedReal time (s)
hpc_cmo64_irixSuccessSun Jul 31 01:37:08 200519
rs6000-aix
cm64SuccessWed Mar 4 01:12:28 20096
x86_64-linux
cmSuccessSun Mar 6 00:01:12 20162

Testing status by file:


Html last generated: Sun Mar 6 05:51:26 2016

Input last modified: Fri Apr 13 10:41:30 2007


CMISS Help / Examples / d / d3 / d34