- Author:
- Randall Britten <r.britten@auckland.ac.nz>
- Date:
- 2010-09-06 13:29:28+12:00
- Desc:
- Demonstration of FieldML 0.2 ? format by Richard Christie, Caton Little and Randall Britten.
Representation using FieldML 0.2 ? format of heart model's geometry, converted from of original heart.exnode/heart.exelem dog heart model using a custom conversion which sampled the original 60 element model geometric field. This model consists of 60 elements with RC coordinates interpolated using tri-quadratic Lagrange basis, original used prolate spheriodal coordinates, with 60 bi-cubic-hermite by linear elements. The fibre field has not been converted yet.
Files:
heart.xml = the fieldml model
heart_mesh.connectivity = bulk connectivity data (27 local to global node indexes for each element)
heart_mesh.node.coordinates = bulk coordinate parameters (3 RC coordinates per node)
fieldml_heart.cmgui = cmgui command file to show (Note: only runs in as yet unreleased development versions of cmgui.)
fieldml_heart.png = image of the triquadratic heart
- Permanent Source URI:
- https://models.fieldml.org/workspace/heart/rawfile/0b039d5e95fd57f53101623fd2c1c75ea0ff80a8/FieldML/fieldml_heart.cmgui
gfx create region heart;
gfx read region heart.xml region heart;
gfx define faces egroup heart;
gfx create material heart ambient 0.3 0 0.3 diffuse 1 0 0 specular 0.5 0.5 0.5 shininess 0.5;
gfx modify g_element heart general clear;
gfx modify g_element heart lines coordinate heart_mesh.coordinates discretization "8*8*8" select_on material default selected_material default_selected;
gfx modify g_element heart surfaces coordinate heart_mesh.coordinates exterior discretization "8*8*8" select_on material heart selected_material default_selected render_shaded;
gfx modify g_element heart node_points coordinate heart_mesh.coordinates glyph sphere general size "1*1*1" centre 0,0,0 font default select_on material default selected_material default_selected;
gfx create window 1;
gfx modify window 1 set perturb_lines;
gfx modify window 1 view parallel eye_point -111.714 -95.2063 247.979 interest_point 9.6189 6.19689 -5.07412 up_vector -0.909491 0.238502 -0.340504 view_angle 31.6892 near_clipping_plane 2.98396 far_clipping_plane 1066.37 relative_viewport ndc_placement -1 1 2 2 viewport_coordinates 0 0 1 1;