Location: Human whole-body scaffold @ db3cda4a210e / human.cmgui

Author:
elias-soltani <egha355@aucklanduni.ac.nz>
Date:
2021-05-03 09:23:08+12:00
Desc:
Added files for morphing between body coorinates and human body
Permanent Source URI:
https://models.cellml.org/workspace/651/rawfile/db3cda4a210e7748c42b18bf3daad447bd0e85fa/human.cmgui

gfx read nodes align.exf time 0
gfx read node scaffold.exf time 1
gfx read node human1_fit1.exf time 3.5
gfx read nodes vagus_networks_renumber.exf

gfx define field abdomen_boundary and fields abdomen "core boundary"
gfx define field thorax_boundary and fields thorax "core boundary"
gfx define field neck_boundary and fields "neck core" "core boundary"
gfx define field head_boundary and fields "head core" "core boundary"
gfx define field reftime constant 3.5;
gfx define field coordinates_reftime coordinate_system rectangular_cartesian time_lookup field coordinates time_field reftime;
gfx define field host_location coordinate_system rectangular_cartesian find_mesh_location find_exact mesh mesh3d mesh_field coordinates_reftime source_field coordinates;
gfx define field host_coordinates coordinate_system rectangular_cartesian embedded element_xi host_location field coordinates;


gfx create material trans_blue normal_mode ambient 0.3 0.6 1 diffuse 0.3 0.6 1 emission 0 0 0 specular 0.1 0.1 0.1 alpha 0.3 shininess 0.2;
gfx create material trans_pink normal_mode ambient 1 0.8 0.8 diffuse 1 0.8 0.8 emission 0 0 0 specular 0.1 0.1 0.1 alpha 0.2 shininess 0.2;
gfx create material trans_red normal_mode ambient 1 0.3 0.3 diffuse 1 0.3 0.4 emission 0 0 0 specular 0.1 0.1 0.1 alpha 0.3 shininess 0.2;

gfx modify g_element "/" general clear;
gfx modify g_element "/" lines domain_mesh1d subgroup "left vagus" coordinate host_coordinates face all tessellation default LOCAL line_width 2 line line_base_size 0 select_on material magenta selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup "right vagus" coordinate host_coordinates face all tessellation default LOCAL line_width 2 line line_base_size 0 select_on material green selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup "spinal cord" coordinate coordinates face all tessellation default LOCAL line_width 3 line line_base_size 0 select_on material cyan selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup "core boundary" coordinate coordinates face all tessellation default LOCAL line line_base_size 0 select_on material default selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup "skin epidermis" coordinate coordinates face all tessellation default LOCAL line line_base_size 0 select_on material default selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup diaphragm coordinate coordinates face all tessellation default LOCAL select_on material red selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup thorax_boundary coordinate coordinates face xi3_0 tessellation default LOCAL select_on material trans_red selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup head_boundary coordinate coordinates face xi3_0 tessellation default LOCAL select_on material trans_blue selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup "skin epidermis" coordinate coordinates face all tessellation default LOCAL select_on material trans_pink selected_material default_selected render_shaded;

gfx create win 1
gfx modify window 1 view perspective eye_point -1754.46 -674.795 1108.99 interest_point 0 -103 1198.75 up_vector 0.275166 -0.898141 0.342967 view_angle 40 near_clipping_plane 92.3734 far_clipping_plane 3749.37 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1;
#gfx modify window 1 view perspective
gfx mod win 1 set slow
#gfx mod win 1 image view_all
#gfx edit scwene