Location: Human whole-body scaffold with embedded organs @ 5e697a8aa71a / view.cmgui

Author:
elias-soltani <egha355@aucklanduni.ac.nz>
Date:
2021-06-11 13:45:00+12:00
Desc:
Add the files
Permanent Source URI:
https://models.cellml.org/workspace/6ab/rawfile/5e697a8aa71ad0212593d0280f56403128e52202/view.cmgui

################
### Materials###
################
gfx create material black normal_mode ambient 0 0 0 diffuse 0 0 0 emission 0 0 0 specular 0.3 0.3 0.3 alpha 1 shininess 0.2;
gfx create material lung 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.46 shininess 0.2;
gfx create material blue normal_mode ambient 0 0 1 diffuse 0 0 1 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material bone normal_mode ambient 0.7 0.7 0.6 diffuse 0.9 0.9 0.7 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material brown normal_mode ambient 0.5 0.25 0 diffuse 0.5 0.25 0 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material cyan normal_mode ambient 0 1 1 diffuse 0 1 1 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material default normal_mode ambient 1 1 1 diffuse 1 1 1 emission 0 0 0 specular 0 0 0 alpha 1 shininess 0;
gfx create material default_selected normal_mode ambient 1 0.2 0 diffuse 1 0.2 0 emission 0 0 0 specular 0 0 0 alpha 1 shininess 0;
gfx create material gold normal_mode ambient 1 0.4 0 diffuse 1 0.7 0 emission 0 0 0 specular 0.5 0.5 0.5 alpha 1 shininess 0.3;
gfx create material gray50 normal_mode ambient 0.5 0.5 0.5 diffuse 0.5 0.5 0.5 emission 0.5 0.5 0.5 specular 0.5 0.5 0.5 alpha 1 shininess 0.2;
gfx create material green normal_mode ambient 0 1 0 diffuse 0 1 0 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material grey25 normal_mode ambient 0.25 0.25 0.25 diffuse 0.25 0.25 0.25 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material grey50 normal_mode ambient 0.5 0.5 0.5 diffuse 0.5 0.5 0.5 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material grey75 normal_mode ambient 0.75 0.75 0.75 diffuse 0.75 0.75 0.75 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material magenta normal_mode ambient 1 0 1 diffuse 1 0 1 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material muscle normal_mode ambient 0.4 0.14 0.11 diffuse 0.5 0.12 0.1 emission 0 0 0 specular 0.3 0.5 0.5 alpha 1 shininess 0.2;
gfx create material orange normal_mode ambient 1 0.5 0 diffuse 1 0.5 0 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material red normal_mode ambient 1 0 0 diffuse 1 0 0 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
gfx create material silver normal_mode ambient 0.4 0.4 0.4 diffuse 0.7 0.7 0.7 emission 0 0 0 specular 0.5 0.5 0.5 alpha 1 shininess 0.3;
gfx create material tissue normal_mode ambient 0.9 0.7 0.5 diffuse 0.9 0.7 0.5 emission 0 0 0 specular 0.2 0.2 0.3 alpha 1 shininess 0.2;
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.5 shininess 0.2;
gfx create material transparent_gray50 normal_mode ambient 0.5 0.5 0.5 diffuse 0.5 0.5 0.5 emission 0.5 0.5 0.5 specular 0.5 0.5 0.5 alpha 0 shininess 0.2;
gfx create material white normal_mode ambient 1 1 1 diffuse 1 1 1 emission 0 0 0 specular 0 0 0 alpha 1 shininess 0;
gfx create material yellow normal_mode ambient 1 1 0 diffuse 1 1 0 emission 0 0 0 specular 0.1 0.1 0.1 alpha 1 shininess 0.2;
################
### Tess     ###
################
gfx define tessellation default minimum_divisions "1" refinement_factors "12" circle_divisions 12;
gfx define tessellation default_points minimum_divisions "1" refinement_factors "1" circle_divisions 12;
################
### Loading  ###
################
gfx read elem whole-heart.exf node_offset 10000 line_offset 10000 element_offset 10000 face_offset 10000
gfx read elem whole-colon.exf node_offset 20000 line_offset 20000 element_offset 20000 face_offset 20000
gfx read elem whole-lung.exf node_offset 300000 line_offset 310000 element_offset 320000 face_offset 330000
gfx read elem whole-bladder.exf node_offset 50000 line_offset 50000 element_offset 50000 face_offset 50000
gfx read elem both-vagus.exf node_offset 60000 line_offset 60000 element_offset 60000 face_offset 60000
gfx read elem whole-stomach.exf node_offset 70000 line_offset 70000 element_offset 70000 face_offset 70000
gfx read elem whole-body.exf node_offset 80000 line_offset 80000 element_offset 80000 face_offset 80000
gfx read elem whole-brainstem.exf node_offset 90000 line_offset 90000 element_offset 90000 face_offset 90000

################
### GRAPHICS ###
################
gfx modify g_element "/" general clear;
gfx modify g_element "/" lines domain_mesh1d subgroup both-vagus coordinate coordinates face all tessellation default LOCAL line line_base_size 1.5 select_on material gold selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup diaphragm coordinate coordinates face all tessellation default LOCAL line line_base_size 5 select_on material muscle 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 muscle selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-body coordinate coordinates exterior face all tessellation default LOCAL circle_extrusion line_base_size 2 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-body coordinate coordinates exterior face all tessellation default LOCAL select_on material trans_pink selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-heart coordinate coordinates exterior face all tessellation default LOCAL line_width 0.1 line line_base_size 0.08 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-heart coordinate coordinates exterior face all tessellation default LOCAL select_on material red selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-lung coordinate coordinates exterior face all tessellation default LOCAL line_width 0.1 line line_base_size 0.15 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-lung coordinate coordinates exterior face all tessellation default LOCAL select_on material lung selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-stomach coordinate coordinates exterior face all tessellation default LOCAL line_width 0.1 line line_base_size 0.08 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-stomach coordinate coordinates exterior face all tessellation default LOCAL select_on material trans_red selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-colon coordinate coordinates exterior face all tessellation default LOCAL line_width 0.1 line line_base_size 0.1 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-colon coordinate coordinates exterior face all tessellation default LOCAL select_on material tissue selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-bladder coordinate coordinates exterior face all tessellation default LOCAL line_width 0.1 line line_base_size 0.1 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-bladder coordinate coordinates exterior face all tessellation default LOCAL select_on material trans_pink 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 5 line line_base_size 0 select_on material grey75 selected_material default_selected render_shaded;
gfx modify g_element "/" lines domain_mesh1d subgroup whole-brainstem coordinate coordinates exterior face all tessellation default LOCAL line_width 0.1 line line_base_size 0.08 select_on material grey50 selected_material default_selected render_shaded;
gfx modify g_element "/" surfaces domain_mesh2d subgroup whole-brainstem coordinate coordinates exterior face all tessellation default LOCAL select_on material trans_red selected_material default_selected render_shaded;

################
### Window   ###
################
gfx create window 1 double_buffer;
gfx modify window 1 image scene "/" filter default infinite_viewer_lighting two_sided_lighting;
gfx modify window 1 image add_light default;
gfx modify window 1 image add_light default_ambient;
gfx modify window 1 layout simple ortho_axes z -y eye_spacing 0.25 width 1716 height 1027;
gfx modify window 1 set current_pane 1;
gfx modify window 1 background colour 0 0 0 texture none;
gfx modify window 1 view perspective eye_point -646.475 -1954.29 1609.33 interest_point -0.624069 -89.443 1203.35 up_vector 0.0560928 0.1938 0.979436 view_angle 40 near_clipping_plane 100.742 far_clipping_plane 4089.06 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1;
gfx modify window 1 set transform_tool current_pane 1 std_view_angle 40 perturb_lines no_antialias depth_of_field 0.0 slow_transparency blend_normal;